how to update your NMAP Scripting engine database

Time needed: 2 minutes.

If you have added new NSE scripts or if you have removed some, it is needed to update the script database like the following

  1. Download your NSE script with wget

    download the desired and missing script with the following command:

  2. Copy the script in the NSE folder

    Copy the script in the folder /usr/share/nmap/scripts/ with the command with sudo:
    cp ./http-shellshock.nse /usr/share/nmap/scripts/
    if wou have a different folder you may find it with the command locate .nse

  3. Update nmap scripting engine database

    Run the following command with sudo to update the database with the existing script in your folder: