┌──(root㉿kali)-[/miaosec] └─# nmap -sn 192.168.2.0/24 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-12-24 15:16 CST Nmap scan report for 192.168.2.1 Host is up (0.00092s latency). MAC Address: 0A:00:27:00:00:07 (Unknown) Nmap scan report for 192.168.2.2 Host is up (0.00085s latency). MAC Address: 08:00:27:5C:1B:0E (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.29 Host is up (0.00082s latency). MAC Address: 08:00:27:DB:04:74 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.4 Host is up. Nmap done: 256 IP addresses (4 hosts up) scanned in 2.09 seconds
靶机IP:192.168.2.29
2、端口扫描
1.全端口扫描
1 2 3 4 5 6 7 8 9 10 11 12 13
┌──(root㉿kali)-[/miaosec] └─# nmap --min-rate 10000 -p- 192.168.2.29 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-12-24 15:16 CST Nmap scan report for 192.168.2.29 Host is up (0.0012s latency). Not shown: 65532 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 3000/tcp open ppp MAC Address: 08:00:27:DB:04:74 (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 48.85 seconds
┌──(root㉿kali)-[/miaosec] └─# nmap --min-rate 10000 -sT -sV -sC -O -p22,80,3000 192.168.2.29 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-12-26 11:31 CST Nmap scan report for 192.168.2.29 Host is up (0.00087s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.4p1 Debian 5+deb11u3 (protocol 2.0) | ssh-hostkey: | 3072 f6:a3:b6:78:c4:62:af:44:bb:1a:a0:0c:08:6b:98:f7 (RSA) | 256 bb:e8:a2:31:d4:05:a9:c9:31:ff:62:f6:32:84:21:9d (ECDSA) |_ 256 3b:ae:34:64:4f:a5:75:b9:4a:b9:81:f9:89:76:99:eb (ED25519) 80/tcp open http Apache httpd 2.4.62 ((Debian)) |_http-server-header: Apache/2.4.62 (Debian) |_http-title: Maze\xE4\xB8\x8A\xE4\xBC\xA0 3000/tcp open ppp? | fingerprint-strings: | GetRequest: | HTTP/1.1 200 OK | Server: Werkzeug/3.1.4 Python/3.9.2 | Date: Fri, 26 Dec 2025 03:31:28 GMT | Content-Type: text/html; charset=utf-8 | Content-Length: 61 | Connection: close | Upload Review server: Please use the API for operations(/api) | HTTPOptions: | HTTP/1.1 200 OK | Server: Werkzeug/3.1.4 Python/3.9.2 | Date: Fri, 26 Dec 2025 03:31:33 GMT | Content-Type: text/html; charset=utf-8 | Allow: GET, OPTIONS, HEAD | Content-Length: 0 | Connection: close | Help: | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | "http://www.w3.org/TR/html4/strict.dtd"> | <html> | <head> | <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | <title>Error response</title> | </head> | <body> | <h1>Error response</h1> | <p>Error code: 400</p> | <p>Message: Bad request syntax ('HELP').</p> | <p>Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax or unsupported method.</p> | </body> | </html> | RTSPRequest: | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | "http://www.w3.org/TR/html4/strict.dtd"> | <html> | <head> | <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | <title>Error response</title> | </head> | <body> | <h1>Error response</h1> | <p>Error code: 400</p> | <p>Message: Bad request version ('RTSP/1.0').</p> | <p>Error code explanation: HTTPStatus.BAD_REQUEST - Bad request syntax or unsupported method.</p> | </body> |_ </html> 1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service : SF-Port3000-TCP:V=7.94SVN%I=7%D=12/26%Time=694E0191%P=x86_64-pc-linux- MAC Address: 08:00:27:DB:04:74 (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 90.04 seconds
www-data@Kuai:/opt$ git show f268d01060bba2e565791d8127eb88d28d546e0d WARNING: terminal is not fully functional - (press RETURN)commit f268d01060bba2e565791d8127eb88d28d546e0d Author: Your Name <you@example.com> Date: Tue Dec 23 05:12:32 2025 -0500
1
diff --git a/app.py b/app.py index 61c33fe..612613f 100644 --- a/app.py +++ b/app.py @@ -2,10 +2,12 @@ from flask import Flask, jsonify