┌──(root㉿kill3r)-[/home/kill3r] └─# ports=$(nmap -p- --min-rate=1000 -T4 192.168.56.100 | grep -oE '(^[0-9][^/tcp]*)' | tr '\n' ',') ┌──(root㉿kill3r)-[/home/kill3r] └─# nmap -p$ports -sV -sC -O 192.168.56.100 -oN nmap.txt Starting Nmap 7.94 ( https://nmap.org ) at 2023-09-09 10:01 CST mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers Nmap scan report for 192.168.56.104 Host is up (0.00054s latency). Not shown: 65532 closed tcp ports (reset) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.1 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 5a:a7:c8:64:2a:54:bc:64:48:16:2b:79:64:69:cc:45 (RSA) | 256 89:8d:6a:9b:44:e3:f1:f1:ef:8c:23:13:7a:84:fc:71 (ECDSA) |_ 256 1d:e6:68:27:52:5b:6d:0d:67:5d:30:4c:03:68:b3:2a (ED25519) 8000/tcp open http Werkzeug httpd 0.14.1 (Python 2.7.15rc1) |_http-server-header: Werkzeug/0.14.1 Python/2.7.15rc1 |_http-title: Site doesn't have a title (text/html; charset=utf-8). 9000/tcp open http Portainer Docker UI 1.19.2 |_http-title: Portainer MAC Address: 08:00:27:C8:E8:21 (Oracle VirtualBox virtual NIC) Device type: general purpose Running: Linux 3.X|4.X OS CPE: cpe:/o:linux:linux_kernel:3 cpe:/o:linux:linux_kernel:4 OS details: Linux 3.2 - 4.9 Network Distance: 1 hop Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel TRACEROUTE HOP RTT ADDRESS 1 0.54 ms 192.168.56.104 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 12.23 seconds
枚举
SMB 枚举
Port: 139 389 445 636
enum4linux -a/-A 127.0.0.1
1
$ enum4linux -A <ip>
MSF-SMB
1 2 3 4 5 6
# 基于SMB协议扫描版本号 msf6 > use auxiliary/scanner/smb/smb_version # 扫描共享文件 msf6 > use auxiliary/scanner/smb/smb_enumshares # 基于SMB进行用户信息枚举 msf6 > use auxiliary/scanner/smb/smb_lookupsid
Web
HTTP Web Server, Port Like: 80 443 81 8080 8443 4443 8081
(admin node) >>> show A + -- 1 (admin node) >>> (admin node) >>> goto 1 node 1 (node 1) >>> socks 9090 a socks5 proxy of the target node has started up on the local port 9090.
# 使用proxychains4 vim /etc/proxychains4.conf socks5 127.0.0.1 9090
┌──(root㉿kill3r)-[/opt/lan] └─# proxychains4 nmap 172.17.0.0/24 -sV -sT -Pn -p80 [proxychains] config file found: /etc/proxychains4.conf [proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4 [proxychains] DLL init: proxychains-ng 4.16 Starting Nmap 7.94 ( https://nmap.org ) at 2023-09-09 17:21 CST mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers [proxychains] Strict chain ... 127.0.0.1:9090 ... 172.17.0.1:80 ... OK [proxychains] Strict chain ... 127.0.0.1:9090 ... 172.17.0.2:80 <--socket error or timeout! [proxychains] Strict chain ... 127.0.0.1:9090 ... 172.17.0.3:80 ... OK [proxychains] Strict chain ... 127.0.0.1:9090 ... 172.17.0.4:80 ... OK [proxychains] Strict chain ... 127.0.0.1:9090 ... 172.17.0.7:80 <--socket error or timeout! [proxychains] Strict chain ... 127.0.0.1:9090 ... 172.17.0.10:80 <--socket error or timeout! [proxychains] Strict chain ... 127.0.0.1:9090 ... 172.17.0.13:80 <--socket error or timeout! [proxychains] Strict chain ... 127.0.0.1:9090 ... 172.17.0.16:80