nmap-completion
nmap-completion copied to clipboard
Tab-complete filenames/paths for --script
Right now, --script will tab-complete names of scripts that can be found in Nmap's search path ($NMAPDIR/scripts/*.nse and ~/.nmap/scripts/*.nse) but doesn't work for absolute or relative paths to scripts in other locations.
You may want to use --datadir if set. The Nmap man page also references an NMAPDATADIR too (although it looks deprecated).
@batrick Yes, that's a "known bug" in the README. I haven't looked into how to examine more of the command line than the current and immediately preceding argument.