kali@kali [~] ➜ sudo nmap -sT -p- --min-rate 1000 192.168.178.173 [21:27:48] Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-03-21 21:29 CST Nmap scan report for 192.168.178.173 Host is up (0.0022s latency). Not shown: 65532 closed tcp ports (conn-refused) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 4444/tcp open krb524 MAC Address: 08:00:27:EC:6C:26 (Oracle VirtualBox virtual NIC)
开放了三个端口
端口渗透
1 2
kali@kali [~] ➜ curl http://192.168.178.173 [21:31:49] If you dont see Command: prompt in the XXXX port, please restart the VM.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
kali@kali [~] ➜ gobuster dir --wordlist=/usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt -u http://192.168.178.173 [21:32:21] =============================================================== Gobuster v3.6 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Url: http://192.168.178.173 [+] Method: GET [+] Threads: 10 [+] Wordlist: /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt [+] Negative Status codes: 404 [+] User Agent: gobuster/3.6 [+] Timeout: 10s =============================================================== Starting gobuster in directory enumeration mode =============================================================== Progress: 220561 / 220562 (100.00%) =============================================================== Finished ===============================================================
charlie@echoed:~$ sudo -l Matching Defaults entries for charlie on echoed: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User charlie may run the following commands on echoed: (ALL : ALL) NOPASSWD: /usr/bin/xdg-open
kali@kali [~] ➜ ssh -i y root@192.168.178.173 [22:36:02] Linux echoed 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) 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 Dec 17 02:25:52 2020 root@echoed:~#