C:\Users\Yongz\nmap# nmap -sP 192.168.146.0/24 Starting Nmap 7.92 ( https://nmap.org ) at 2022-05-05 17:17 �й���ʱ�� Nmap scan report for 192.168.146.1 Host is up. Nmap scan report for 192.168.146.152 Host is up (0.00s latency). MAC Address: 00:0C:29:0F:ED:74 (VMware) Nmap scan report for 192.168.146.254 Host is up (0.00s latency). MAC Address: 00:50:56:E0:85:FD (VMware) Nmap done: 256 IP addresses (3 hosts up) scanned in 31.43 seconds
判断出 192.168.146.152 为靶机 IP 地址。
1.2 服务探测
1 2 3 4 5 6 7 8 9 10 11 12 13
C:\Users\Yongz\nmap# nmap -sS -sV 192.168.146.152 Starting Nmap 7.92 ( https://nmap.org ) at 2022-05-05 17:21 �й���ʱ�� Nmap scan report for 192.168.146.152 Host is up (0.00099s latency). Not shown: 998 closed tcp ports (reset) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.9p1 Debian 10+deb10u2 (protocol 2.0) 80/tcp open http Apache httpd 2.4.38 ((Debian)) MAC Address: 00:0C:29:0F:ED:74 (VMware) Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 24.15 seconds
..... CREATE TABLE `users` ( `id` int(30) NOT NULL, `name` text NOT NULL, `username` varchar(200) NOT NULL, `password` text NOT NULL, `type` tinyint(1) NOT NULL DEFAULT 3 COMMENT '1=Admin,2=Staff, 3= subscriber' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;