How to automate nmap scans. Nmap can scan all 65,535 ports using the -p- option.