nmap --script scriptname.nse targethost nmap --script /path/to/scriptScriptname.nse targethost nmap --script /path/userdefined NSE-script.nse scanme.nmap.org nmap -sV --script exploit -d3 targethost prerule = function() return nmap.is_privileged() and (stdnse.get_script_args("targets-sniffer.iface") or nmap.get_interface()) postrule = function() return (nmap.registry.sshhostkey ~= nil) end # nmap --script /path/http-vuln-check local targetlhost -p 22,80,443 local string = require "string"