
Grep " open " results.nmap | sed -r ‘s/ +/ /g’ | sort | uniq -c | sort -rn | less Nmap -iR 10 -n -oX out2.xml | grep "Nmap" | cut -d " " -f5 > live-hosts.txt Nmap -iR 10 -n -oX out.xml | grep "Nmap" | cut -d " " -f5 > live-hosts.txt Scan for web servers and grep to show which IPs are running web servers Increase debugging level (use -dd or more for greater effect)ĭisplay the reason a port is in a particular state, same output as -vv Increase the verbosity level (use -vv or more for greater effect) Output in the three major formats at once Nmap -S Scan Facebook from Microsoft (-e eth0 -Pn may be required) Nmap -D decoy-ip1,decoy-ip2,your-own-ip,decoy-ip3,decoy-ip4 remote-host-ip Requested scan (including ping scans) use tiny fragmented IP packets. Nmap -p80 -script http-sql-injection įirewall / IDS Evasion and Spoofing SWITCH Nmap -p80 -script http-unsafe-output-escaping ĭetect cross site scripting vulnerabilities Nmap -n -Pn -p 80 -open -sV -vvv -script banner,http-title -iR 1000īrute forces DNS hostnames guessing subdomains Nmap -script snmp-sysdescr -script-args snmpcommunity=admin 192.168.1.1 Scan default, but remove intrusive scripts

Specify the maximum number of port scan probe retransmissions min-rtt-timeout/max-rtt-timeout/initial-rtt-timeout Insane (5) speeds scan assumes you are on an extraordinarily fast network Polite (2) slows down the scan to use less bandwidth and use less target machine resourcesĪggressive (4) speeds scans assumes you are on a reasonably fast and reliable network

Sneaky (1) Intrusion Detection System evasion Paranoid (0) Intrusion Detection System evasion Set the maximum number x of OS detection tries against a target If at least one open and one closed TCP port are not found it will not try OS detection against host Remote OS detection using TCP/IP stack fingerprinting SlowerĮnables OS detection, version detection, script scanning, and traceroute Higher number increases possibility of correctnessĮnable light mode. Leaving off initial port in range makes the scan start at port 1Īttempts to determine the version of the service running on port TCP connect port scan (Default without root privilege)

Frequently Asked Questions Target Specification SWITCH.
