Vulnerability scanning using NSE in Nmap. Note: I have written this tutorial taking the fact into consideration that the user is well versed with basic NMAP commands. For basic NMAP commands please refer the cheat-sheet given below: Basic Scanning Techniques • Scan a single target : nmap [target] • Scan multiple targets: nmap [target1,target2,etc] • Scan a list of targets nmap -iL [list.txt] • Scan a range of hosts nmap [range of IP addresses] • Scan an entire subnet nmap [IP address/cdir] • Scan random hosts nmap -iR [number] • Excluding targets from a scan
Attack is the best defence.