I notice that nmap -sn
is no longer provide the MAC address for remote host as discussed in Can I use nmap to discover IPs and mac addresses?
I would like to get something like netdiscover
output. Just IP & MAC Address only.
Nmap version 7.80
wolf@linux:~$ nmap -V
Nmap version 7.80 ( https://nmap.org )
Platform: x86_64-pc-linux-gnu
e.g.
wolf@linux:~$ nmap -sn -oG - 10.10.10.*
# Nmap 7.80 scan initiated Wed May 20 12:38:57 2020 as: nmap -sn -oG - 10.10.10.*
Host: 10.10.10.1 () Status: Up
Host: 10.10.10.2 () Status: Up
Host: 10.10.10.3 () Status: Up
# Nmap done at Wed May 20 12:38:59 2020 -- 256 IP addresses (3 hosts up) scanned in 2.25 seconds
wolf@linux:~$
Best Answer
1st of all, you won't be able to see MAC Address if
-oG -
being used (even with root/sudo).2nd, even after
-oG -
being removed, you still won't be able to see the MAC Address.Run it as root or with sudo so that nmap can send raw packets in order to get remote MAC