┌──(root㉿kali)-[~/Desktop/test/Anon] └─# nmap -sP 192.168.56.0/24 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-02-08 07:22 EST Nmap scan report for 192.168.56.1 Host is up (0.00028s latency). MAC Address: 0A:00:27:00:00:09 (Unknown) Nmap scan report for 192.168.56.2 Host is up (0.00023s latency). MAC Address: 08:00:27:42:FA:76 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.56.20 Host is up (0.00047s latency). MAC Address: 08:00:27:D4:18:88 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.56.4 Host is up. Nmap done: 256 IP addresses (4 hosts up) scanned in 28.11 seconds
1 2 3 4 5 6 7 8 9 10 11 12 13
┌──(root㉿kali)-[~/Desktop/test/Anon] └─# nmap -sT -min-rate 10000 -p- 192.168.56.20 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-02-08 07:23 EST Nmap scan report for192.168.56.20 Host is up (0.00088s latency). Not shown: 65532 closed tcp ports (conn-refused) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 873/tcp open rsync MAC Address: 08:00:27:D4:18:88 (Oracle VirtualBox virtual NIC)
┌──(root㉿kali)-[~/Desktop/test/Anon] └─# nmap -sT -A -T4 -O -p 22,80,873 192.168.56.20 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-02-08 07:25 EST Nmap scan report for 192.168.56.20 Host is up (0.00052s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 9.2p1 Debian 2+deb12u4 (protocol 2.0) | ssh-hostkey: | 256 65:bb:ae:ef:71:d4:b5:c5:8f:e7:ee:dc:0b:27:46:c2 (ECDSA) |_ 256 ea:c8:da:c8:92:71:d8:8e:08:47:c0:66:e0:57:46:49 (ED25519) 80/tcp open http Apache httpd 2.4.62 ((Debian)) |_http-server-header: Apache/2.4.62 (Debian) |_http-title: Did not follow redirect to http://bola.nyx 873/tcp open rsync (protocol version 32) MAC Address: 08:00:27:D4:18:88 (Oracle VirtualBox virtual NIC) Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running: Linux 4.X|5.X OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5 OS details: Linux 4.15 - 5.8 Network Distance: 1 hop Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
TRACEROUTE HOP RTT ADDRESS 1 0.52 ms 192.168.56.20
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 21.51 seconds
┌──(root㉿kali)-[~/Desktop/test/Anon] └─# nmap -script=vuln -p 22,80,873 192.168.56.20 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-02-08 07:26 EST Pre-scan script results: | broadcast-avahi-dos: | Discovered hosts: | 224.0.0.251 | After NULL UDP avahi packet DoS (CVE-2011-1002). |_ Hosts are all up (not vulnerable). Nmap scan report for 192.168.56.20 Host is up (0.00037s latency).
PORT STATE SERVICE 22/tcp open ssh 80/tcp open http |_http-stored-xss: Couldn't find any stored XSS vulnerabilities. |_http-dombased-xss: Couldn't find any DOM based XSS. |_http-csrf: Couldn't find any CSRF vulnerabilities. 873/tcp open rsync MAC Address: 08:00:27:D4:18:88 (Oracle VirtualBox virtual NIC)
还没打过873端口,优先级80 > 873 > 22
web渗透
需要将bola.nyx 写入hosts文件,访问主页,没有任何信息
尝试了注册,但是貌似是假的
rsync
rsync 是一个常用的 Linux 应用程序,用于文件同步.它可以在本地计算机与远程计算机之间,或者两个本地目录之间同步文件(但不支持两台远程计算机之间的同步)。它也可以当作文件复制工具,替代cp和mv命令.它名称里面的r指的是 remote,rsync 其实就是”远程同步”(remote sync)的意思
sent 43 bytes received 93,701 bytes 187,488.00 bytes/sec total size is 93,553 speedup is 1.00 ┌──(root㉿kali)-[~/Desktop/test/Bola] └─# rsync -av rsync://192.168.56.20/extensions/password_manager.zip ./ receiving incremental file list password_manager.zip
sent 43 bytes received 30,923 bytes 20,644.00 bytes/sec total size is 30,811 speedup is 0.99
┌──(root㉿kali)-[~] └─# ssh d4t4s3c@192.168.56.20 d4t4s3c@192.168.56.20's password: Linux bola 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Feb 6 09:33:51 2025 from 192.168.1.50 d4t4s3c@bola:~$
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
d4t4s3c@bola:~$ id uid=1000(d4t4s3c) gid=1000(pijusmagnifikus) groups=1000(pijusmagnifikus),1003(d4t4s3c) d4t4s3c@bola:~$ uname -a Linux bola 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux d4t4s3c@bola:~$ ip add 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: enp0s17: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 08:00:27:d4:18:88 brd ff:ff:ff:ff:ff:ff inet 192.168.56.20/24 brd 192.168.56.255 scope global dynamic enp0s17 valid_lft 496sec preferred_lft 496sec inet6 fe80::a00:27ff:fed4:1888/64 scope link valid_lft forever preferred_lft forever d4t4s3c@bola:~$