┌──(root㉿kali)-[~] └─# nmap -p- 192.168.0.104 Starting Nmap 7.92 ( https://nmap.org ) at 2023-02-28 09:56 EST Nmap scan report for 192.168.0.104 Host is up (0.0013s latency). Not shown: 65532 filtered tcp ports (no-response) PORT STATE SERVICE 25/tcp open smtp 80/tcp open http 110/tcp open pop3
Nmap done: 1 IP address (1 host up) scanned in 140.03 seconds
扫描端口对应服务:
1 2 3 4 5 6 7 8 9 10 11 12 13
──(root㉿kali)-[~] └─# nmap -p 25,80,110 -sV 192.168.0.104 Starting Nmap 7.92 ( https://nmap.org ) at 2023-02-28 09:59 EST Nmap scan report for 192.168.0.104 Host is up (0.13s latency).
PORT STATE SERVICE VERSION 25/tcp open tcpwrapped 80/tcp open http Apache httpd 2.4.29 ((Ubuntu)) 110/tcp open tcpwrapped
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 22.59 seconds
bassam@bassam-aziz:~$ sudo -l sudo -l [sudo] password for bassam: Password123!@#
Matching Defaults entries for bassam on bassam-aziz: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin
User bassam may run the following commands on bassam-aziz: (ALL : ALL) /usr/bin/find
root@bassam-aziz:~# cd /root cd /root root@bassam-aziz:/root# ls ls flag.txt root@bassam-aziz:/root# cat flag.txt cat flag.txt THM{root-Is_Better-Than_All-of-THEM-31337}