nmap用法

Ping 扫描

nmap-easily-ping-scan-all-addresses-in-my-subnet

nmap -sP 192.168.122.0/24

 DHCP 扫描

Nmap扫描教程之网络基础服务DHCP服务类  

sudo nmap -sU -p 67 --script=dhcp-discover 192.168.122.0/24

 

ip r
sudo nmap --script broadcast-dhcp-discover -e enp1s0 

 

抓包

interface=ens18 
sudo tcpdump -i $interface not port ssh -w /home/pxe_logs.pcap

 

Problem using the dhcp-discover script for Nmap

nmap  scan dhcp 

posted @ 2023-07-31 18:59  lvmxh  阅读(12)  评论(0编辑  收藏  举报