Tasks we had in mind when creating the system include network discovery, more sophisticated version detection, vulnerability detection. NSE can even be used for vulnerability exploitation.
each script contains a field associating it with one or more categories.
categories are auth, broadcast, default. discovery, dos, exploit, external, fuzzer, intrusive, malware, safe, version, and vuln
nmap --script "not intrusive" Loads every script except for those in the intrusive category.
nmap --script "default or safe" 等于 nmap --script "default,safe"
nmap --script "default and safe" Loads those scripts that are in both the default and safe categories.
nmap --script "(default or safe or intrusive) and not http-*" Loads scripts in the default, safe, or intrusive categories, except for those whose names start with http-.