Nmap Fundamentals
Finding live hosts in your network
nmap -sn scanme.namp.org Listing open ports on a target host
nmap scanme.nmap.org Fingerprinting OS and services running on a target host
nmap -sV scanme.nmap.org To enable OS detection
nmap -O scanme.nmap.org Using NSE(Nmap Scripting Engine) scripts against a target host
nmap -sC scanme.nmap.org Excluding a host list from your scans
nmap --excludefile excluding_file.txt 192.168.1.0/24Scanning an IP address ranges
nmap -p 8080,80 -O -T4 192.168.1.0/24 scanme.nmap.org/24 Scanning random targets on the Internet
nmap -iR 100 Collecting signatures of web servers
nmap -p80,443 -Pn -T4 --open --script http-headers,http-title,ssl-cert scanme.nmap.orgCrafting ICMP echo replies with Nping
nping --tcp-connect [target host]nping --tcp-connect [target host] -p 3389 -c 1
nping --udp [target host] -p 53 --data-length 100nping --tcp [target host] --rate 50 -c 500nping --arp [target host]nping --arp 192.168.1.0/24nping [target host] --icmp --icmp-type echo
nping [target host] --icmp --icmp-type echo-reply