Skip to content

Latest commit

 

History

History
36 lines (34 loc) · 884 Bytes

README.md

File metadata and controls

36 lines (34 loc) · 884 Bytes

About

Nmap scripts that aren't merged to upstream. The scripts have prefix (a.e. 0001-), it's a "Pull Request" number.

Usage

  1. Copy nse scripts to nmap directory:
for nse in *.nse; do
    cp -n $nse /usr/share/nmap/scripts/${nse#*-}
done
  1. Update the database:
sudo nmap --script-updatedb

Use update-scriptdb.sh in case you get the following error:

# Starting Nmap 7.90 ( https://nmap.org ) at 2020-10-09 18:17 EEST
# NSE: Updating rule database.
# NSE: failed to initialize the script engine:
# /usr/bin/../share/nmap/nse_main.lua:631: portrule must be a function!
# stack traceback:
#   [C]: in function 'assert'
#   /usr/bin/../share/nmap/nse_main.lua:631: in field 'new'
#   /usr/bin/../share/nmap/nse_main.lua:1296: in main chunk
#   [C]: in ?
#
# QUITTING!

Example:

sh update-scriptdb.sh /usr/share/nmap/scripts/script.db