使用 sudo 时 Nmap 出现问题

使用 sudo 时 Nmap 出现问题

最近我遇到了一个问题,每次使用sudofor nmapwith--spoof-mac都会给我一个主机已关闭的输出,这实际上是不正确的,因为我知道它已经启动。

为什么会发生这种情况?

这里举一个例子,说明我在终端上发送此命令时发生的情况:

$ sudo nmap --spoof-mac Apple  192.168.1.1 -Pn
Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.
Starting Nmap 7.91 ( https://nmap.org ) at 2021-01-02 05:12 CST
Spoofing MAC address 00:03:93:03:E5:58 (Apple)
Nmap done: 1 IP address (0 hosts up) scanned in 1.68 seconds

相关内容