Nmap (or Network Mapper) is probably the most popular network mapper around. However if you are running a very stable long-term support server, there are chances that your nmap database installation isn’t keep up to that.
Updating Nmap database
Nmap detection database consists of these files:
- nmap-os-db
- nmap-mac-prefixes
- nmap-payloads
- nmap-protocols
- nmap-rpc
- nmap-service-probes
- nmap-services
What you need to do is to download these files from Nmap Github project page and copy it to /usr/share/nmap/ folder.
Alternatively, you can use this script ‘nmap-update.sh’ which I’ve created based on this gist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget -N https://raw.githubusercontent.com/nmap/nmap/master/nmap-mac-prefixes | |
wget -N https://raw.githubusercontent.com/nmap/nmap/master/nmap-os-db | |
wget -N https://raw.githubusercontent.com/nmap/nmap/master/nmap-payloads | |
wget -N https://raw.githubusercontent.com/nmap/nmap/master/nmap-protocols | |
wget -N https://raw.githubusercontent.com/nmap/nmap/master/nmap-rpc | |
wget -N https://raw.githubusercontent.com/nmap/nmap/master/nmap-service-probes | |
wget -N https://raw.githubusercontent.com/nmap/nmap/master/nmap-services | |
Copy all the files to /usr/share/nmap/ once all of them have been downloaded.
(y) (y)