I would like to know if it's possible to use Nmap in order to scan hosts according to their mac address.
Or if it's not possible to do it directly, is there an option (i didn't find) to select only hosts with a specific mac address?
Information Security Stack Exchange is a question and answer site for information security professionals. It only takes a minute to sign up.Sign up to join this community
Keep in mind that nmap is an IP based scanner. Based on the information that you have provided, I would suggest using nmap to perform a host discovery i.e. identifying active hosts in a network. This step will give you a list of active IP addresses.
You can use ARP to resolve the IP addresses (Obtained during host discovery) to MAC addresses (Assuming its all in the same local area network). Once you have identified the MAC addresses that you wish to scan, feed the corresponding IP addresses to nmap for scanning.
Host Discovery > IP to MAC conversion > Identify target IP addresses using MAC > Port scanning
Refer this for more information on using nmap.
nmap, you do scan for services at the IP layer (3) of the ISO/OSI model. Mac addresses are layer 2.
This would not keep you from resolving mac addresses to IP addresses using
and working your way from there, though.
no, NMAP is a OSI Layer 3 scanner and it needs IP address, see official docs