Download the Ethernet MAC address database (which is a file) from the IEEE server that publishes it, compare it with an existing nmap
MAC address database (which is a file) and generate a new nmap
MAC address database containing any entries missing in the existing one.
This is a modified version of a script by Alain Kelder's, which can be found here.
- Old but serviceable!
- 2018-10-27: The script passes ShellCheck
The original script is licensed under Creative Commons Attribution 3.0 United States License, and thus so is the present modified script.
- Start script with no arguments
- Script will create a working directory underneath
/tmp
,cd
to it, download the IEEE file usingcurl
, copy the local nmap file to the working directory, compare the IEEE file to the original nmap file, generate a new complete file for nmap with any missing entries found in the IEEE file added, then exit. - You have to copy the generated completed file to the correct nmap location manually.
- If anything goes wrong after the download, you can restart the script while passing it the path to the working directory created in the previous run. It will then use the already downloaded IEEE file and not attempt to download it again.
- Cleanup of the working directory is left to you and your command line skills.