Think before you speak, read before you think.

nmap 探测局域网有没有 dhcp server

by

in

家里有时候会有多个 dhcp server,探测 dhcpserver 把没用的关掉

nmap --script broadcast-dhcp-discover
Starting Nmap 6.40 ( http://nmap.org ) at 2019-11-17 16:43 CST
Pre-scan script results:
| broadcast-dhcp-discover:
|   IP Offered: 192.168.1.60
|   DHCP Message Type: DHCPOFFER
|   Server Identifier: 192.168.1.123
|   IP Address Lease Time: 0 days, 0:02:00
|   Renewal Time Value: 0 days, 0:01:00
|   Rebinding Time Value: 0 days, 0:01:45
|   Subnet Mask: 255.255.255.0
|   Broadcast Address: 192.168.1.255
|   Router: 192.168.1.123
|   Domain Name Server: 192.168.1.123
|_  Domain Name: lan
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 3.37 seconds

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *