原因是開了代理會報錯
error “only ethernet devices can be used for raw scans on Windows”
在掃描參數后加 -sT -Pn,但會導致結果太多
例如:nmap -sT -T4 -A -v -Pn 10.44.2.0/24
如果你只是想找沒人用的IP,你不需要搞復雜的原始層掃描,不依賴 ARP 的 ping 掃描也夠用:
nmap -sn 10.44.2.0/24
或者強制用 TCP ping(避免 ICMP 被禁):
nmap -sn -PS80,443 10.44.2.0/24