msfadmin
nmap ip addres
nmap ip ip more then one
nmap 192.168.0/24 256 for full range
nmap -iL abc.txt
nmap 192.168.0/24 --exclude 192.168.132.189
nmap -Pn ip dont ping ping kiye bina chaly ga
nmap -sP 192.168.0/24 ping only scan kitne system live hai is se pta chaly ga
nmap --traceroute demo.testfire.net kitne router hain wo batata hai ap k or domain
k drmiyan
advanced scan options
nmap -sS ip tcp sys scan krta hai 3 way handshake
nmap -sT ip tcp connect scan
nmap -sF ip tcp fin scan finish scan
nmap -sX ip Xmass scan jb kuch ni chaly ga tb ye chaln gain
nmap ip -sU udp scan
nmap ip -sA acknodologment scan is se pta chal jaye ga wahn firewall chal rshi
hai ya ni
nmap ip --scan-delay 1s apni scaning dely b kr skrt hain
Port scanning options
nmap -F ip fast scan only 100 ports well know
nmap -p 80 ip scan specific ports single port
nmap ip -p22-30 22 se 30 tk port scan kry ga
nmap ip -p22,80,111 is se ye 3 ports scan kry ga
nmap ip -p http ye service chal rahi hai ya ni
nmap ip -p T:80 ye tcp ka port 80 scan kry ga
nmap ip -p- all scan
nmap ip --top-ports 10 jo top 10 ports hain wo scan kary ga
Operating System & serices detection
nmap -O ip Operating System detection
nmap -sV ip service version detection
Timing Options
nmap -T4 ip to (extremely slow ) t5 very fast and aggressive scan
Evading Firewall bypass firewall
nmap -f ip fragment prbes intp 8 bytes packets
nmap -oX scan.xml ip output save kry ga xml ki file me
nmap -oN ab.txt normal test
nmap ip -oS a script kiddy format
nmap script engine Nse
nmap --script default ip default script run hogi
nmap -6 ipv6