Top Nmap Scans for Pentesting, Bug Bounty & Red Teaming

Cyfotok Admin

Thumbnail

๐Ÿ”ฐ Basic Nmap Scans

nmap target.com

๐Ÿ‘‰ Default scan (top 1000 TCP ports)

nmap 192.168.1.1

๐Ÿ‘‰ Scan an IP address

nmap 192.168.1.1-50

๐Ÿ‘‰ Scan IP range

nmap 192.168.1.0/24

๐Ÿ‘‰ Scan entire subnet


๐Ÿš€ Fast & Stealthy Scans

nmap -T4 target.com

๐Ÿ‘‰ Faster scan (good balance)

nmap -T5 target.com

๐Ÿ‘‰ Very fast (noisy, can be detected)

nmap -sS target.com

๐Ÿ‘‰ SYN scan (stealth scan โ€“ requires root)

sudo nmap -sS target.com

๐Ÿ” Port-Specific Scans

nmap -p 80 target.com

๐Ÿ‘‰ Scan specific port

nmap -p 1-65535 target.com

๐Ÿ‘‰ Scan all ports

nmap -p 21,22,80,443 target.com

๐Ÿ‘‰ Multiple specific ports


๐Ÿง  Service & Version Detection

nmap -sV target.com

๐Ÿ‘‰ Detect service versions

nmap -sV -p 80,443 target.com

๐Ÿ‘‰ Version detection on specific ports


๐Ÿ–ฅ๏ธ OS Detection

sudo nmap -O target.com

๐Ÿ‘‰ Detect operating system

sudo nmap -A target.com

๐Ÿ‘‰ Aggressive scan (OS + services + scripts + traceroute)


๐Ÿ“œ NSE Script Scans (Very Important ๐Ÿ”ฅ)

nmap --script default target.com
nmap --script vuln target.com

๐Ÿ‘‰ Check for known vulnerabilities

nmap --script http-enum target.com

๐Ÿ‘‰ Enumerate web directories

nmap --script ssh-auth-methods target.com

๐Ÿ‘‰ SSH auth methods

nmap --script smb-enum-shares target.com

๐Ÿ‘‰ SMB share enumeration


๐Ÿ•ต๏ธ Firewall / IDS Evasion

nmap -f target.com

๐Ÿ‘‰ Fragment packets

nmap --data-length 50 target.com

๐Ÿ‘‰ Add random data

nmap -D RND:10 target.com

๐Ÿ‘‰ Decoy scan (hide your IP)


๐Ÿ“ค Output Saving (For Reports)

nmap -oN output.txt target.com
nmap -oX output.xml target.com
nmap -oA scan_result target.com

๐Ÿ‘‰ Saves in all formats


๐Ÿงช UDP Scan (Slow but useful)

sudo nmap -sU target.com
sudo nmap -sU -p 53,67,123 target.com