SlideShare a Scribd company logo
SecurityByDefault.com
Target specification
IP address, hostnames, networks, etc
Example: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254
-iL file input from list -iR n choose random targets, 0 never ending
--exclude --excludefile file exclude host or list from file
Port scanning techniques
-sS tcp syn scan -sT tcp connect scan -sU udp scan
-sY sctp init scan -sZ sctp cookie echo -sO ip protocol
-sW tcp window -sN –sF -sX null, fin, xmas –sA tcp ack
Port specification and scan order
-p n-m range -p- all ports -p n,m,z individual
-p U:n-m,z T:n,m U for udp T for tcp -F fast, common 100
--top-ports n scan the highest-ratio ports -r don’t randomize
Host discovery
-PS n tcp syn ping -PA n tcp ack ping -PU n udp ping
-PM netmask req -PP timestamp req -PE echo req
-sL list scan -PO protocol ping -PN no ping
-n no DNS -R DNS resolution for all targets
--traceroute: trace path to host (for topology map)
-sP ping same as –PP –PM –PS443 –PA80
Service and version detection
-sV: version detection --all-ports dont exclude ports
--version-all try every single probe
--version-trace trace version scan activity
-O enable OS detection --fuzzy guess OS detection
--max-os-tries set the maximum number of tries against a target
Firewall/IDS evasion
-f fragment packets -D d1,d2 cloak scan with decoys
-S ip spoof source address –g source spoof source port
--randomize-hosts order --spoof-mac mac change the src mac
Timing and performance
-T0 paranoid -T1 sneaky -T2 polite
-T3 normal -T4 aggresive -T5 insane
--min-hostgroup --max-hostgroup
--min-rate --max-rate
--min-parallelism --max-parallelism
--min-rtt-timeout --max-rtt-timeout --initial-rtt-timeout
--max-retries --host-timeout --scan-delay
Output
-oN normal -oX xml -oG grepable –oA all outputs
Verbosity and debugging options
-v Increase verbosity level --reason host and port reason
-d (1-9) set debugging level --packet-trace trace packets
Miscellaneous options
--resume file resume aborted scan (from oN or oG output)
-6 enable ipv6 scanning
-A agressive same as -O -sV -sC --traceroute
Interactive options
v/V increase/decrease verbosity level
d/D increase/decrease debugging level
p/P turn on/off packet tracing
Examples
Quick scan nmap -T4 -F
Fast scan (port80) nmap -T4 --max_rtt_timeout 200 --initial_rtt_timeout 150 --min_hostgroup 512 --max_retries 0 -n -P0 -p80
Pingscan nmap -sP -PE -PP -PS21,23,25,80,113,31339 -PA80,113,443,10042 --source-port 53 -T4
Slow comprehensive nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all
Quick traceroute: nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute
Scripts
-sC perform scan with default scripts --script file run script (or all)
--script-args n=v provide arguments
--script-trace print incoming and outgoing communication

More Related Content

PPTX
Nmap not only a port scanner by ravi rajput comexpo security awareness meet
PDF
How to Leverage Go for Your Networking Needs
PDF
Introduction to tcpdump
ODP
SIP URI @ fscons 2009
PDF
Pf: the OpenBSD packet filter
PDF
Vm ware fuzzing - defcon russia 20
PDF
2 netcat enum-pub
PPT
Александр Зайцев - Port Knocking, short notes
Nmap not only a port scanner by ravi rajput comexpo security awareness meet
How to Leverage Go for Your Networking Needs
Introduction to tcpdump
SIP URI @ fscons 2009
Pf: the OpenBSD packet filter
Vm ware fuzzing - defcon russia 20
2 netcat enum-pub
Александр Зайцев - Port Knocking, short notes

What's hot (20)

PDF
Tcpdump
PDF
3 scanning-ger paoctes-pub
PPTX
Humantalk Angers 14 Mars
PDF
Building Network Functions with eBPF & BCC
PDF
0xdec0de01 crypto CTF solutions
PDF
Zn task - defcon russia 20
PDF
Ngrep commands
PPT
Nmap(network mapping)
PPTX
Hacking cryptography: 0xdec0de01 cryptoCTF solutions and a bit more - Владими...
PDF
[DSC] Introduction to Binary Exploitation
PPTX
Defeating the entropy downgrade attack
PDF
Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...
PDF
Проблемы использования TCP в мобильных приложениях. Владимир Кириллов
PPTX
Tcpdump
PDF
Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...
PPTX
PDF
Performance testing of microservices in Action
PDF
Reverse engineering Swisscom's Centro Grande Modem
PDF
maXbox Starter 39 GEO Maps Tutorial
PDF
Linux Commands - Cheat Sheet
Tcpdump
3 scanning-ger paoctes-pub
Humantalk Angers 14 Mars
Building Network Functions with eBPF & BCC
0xdec0de01 crypto CTF solutions
Zn task - defcon russia 20
Ngrep commands
Nmap(network mapping)
Hacking cryptography: 0xdec0de01 cryptoCTF solutions and a bit more - Владими...
[DSC] Introduction to Binary Exploitation
Defeating the entropy downgrade attack
Пример отчета по анализу вредоносного кода Zeus, подготовленного Cisco AMP Th...
Проблемы использования TCP в мобильных приложениях. Владимир Кириллов
Tcpdump
Пример отчета по анализу вредоносного кода TeslaCrypt, подготовленного Cisco ...
Performance testing of microservices in Action
Reverse engineering Swisscom's Centro Grande Modem
maXbox Starter 39 GEO Maps Tutorial
Linux Commands - Cheat Sheet
Ad

Viewers also liked (7)

PPTX
Mac spoof avoider
PPTX
IP/MAC Addressing
PDF
Top 3 MAC Spoofing Challenges You Cannot Afford to Ignore
PDF
Wlan mac-spoof
PPTX
Kendel Avaya-Fabric connect - Demo Lab Guide – Spoof Detect & SLPP-6
PPT
Wireless Intrusion Prevention Systems or WIPS
DOC
A wireless intrusion detection system and a new attack model (synopsis)
Mac spoof avoider
IP/MAC Addressing
Top 3 MAC Spoofing Challenges You Cannot Afford to Ignore
Wlan mac-spoof
Kendel Avaya-Fabric connect - Demo Lab Guide – Spoof Detect & SLPP-6
Wireless Intrusion Prevention Systems or WIPS
A wireless intrusion detection system and a new attack model (synopsis)
Ad

Similar to Nmap5.cheatsheet.eng.v1 (20)

PPTX
Network scanning
PDF
Complete Nmap Scanning Commands CheatSheet by Hackopedia Utkarsh Thakur
PDF
eLea4555555555555555555555555555555rnSecurity .pdf
PDF
nmap-150817055204-lva1-app6891_٠٩٥٩٣٥ (1).pdf
DOCX
Backtrack Manual Part3
DOCX
Lab3 advanced port scanning 30 oct 21
PPTX
Understanding NMAP
PPTX
Using metasploit
PPTX
Null Delhi chapter - Feb 2019
PPTX
Recon with Nmap
PPTX
N map presentation
PPTX
06- 1 Active Information Gathering part 1.pptx
PDF
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
PDF
O PODER DO NMAP ATRAVÉS DE SEUS COMANDOS.pdf
PDF
Nmap Hacking Guide
PDF
Network Mapper (NMAP)
PPTX
PPTX
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
PPTX
Exploring Kali Linux Tools for Website Scanning via IP Address
Network scanning
Complete Nmap Scanning Commands CheatSheet by Hackopedia Utkarsh Thakur
eLea4555555555555555555555555555555rnSecurity .pdf
nmap-150817055204-lva1-app6891_٠٩٥٩٣٥ (1).pdf
Backtrack Manual Part3
Lab3 advanced port scanning 30 oct 21
Understanding NMAP
Using metasploit
Null Delhi chapter - Feb 2019
Recon with Nmap
N map presentation
06- 1 Active Information Gathering part 1.pptx
Network Penetration Testing Toolkit - Nmap, Netcat, and Metasploit Basics
O PODER DO NMAP ATRAVÉS DE SEUS COMANDOS.pdf
Nmap Hacking Guide
Network Mapper (NMAP)
Nmap project presentation : Unlocking Network Secrets: Mastering Port Scannin...
Exploring Kali Linux Tools for Website Scanning via IP Address

More from Arduino Aficionado (15)

PDF
Garagino doc
PDF
PDF
Scala cheatsheet
PDF
Xm lquickref
PDF
Html xhtml tag-sheet
PDF
Unix command quickref
PDF
Ruby on rails_cheat_sheet
PDF
Pqrc 2.4-a4-latest
PDF
Matlab quickref
PDF
Java quickref
RTF
Eclipse emacskeybindings 3_1
PDF
Refcard en-a4
PDF
Cpp reference sheet
PDF
Core c sharp and .net quick reference
Garagino doc
Scala cheatsheet
Xm lquickref
Html xhtml tag-sheet
Unix command quickref
Ruby on rails_cheat_sheet
Pqrc 2.4-a4-latest
Matlab quickref
Java quickref
Eclipse emacskeybindings 3_1
Refcard en-a4
Cpp reference sheet
Core c sharp and .net quick reference

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
KodekX | Application Modernization Development
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Cloud computing and distributed systems.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Modernizing your data center with Dell and AMD
Encapsulation theory and applications.pdf
KodekX | Application Modernization Development
Unlocking AI with Model Context Protocol (MCP)
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
20250228 LYD VKU AI Blended-Learning.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Review of recent advances in non-invasive hemoglobin estimation
Cloud computing and distributed systems.
Chapter 3 Spatial Domain Image Processing.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Big Data Technologies - Introduction.pptx
Modernizing your data center with Dell and AMD

Nmap5.cheatsheet.eng.v1

  • 1. SecurityByDefault.com Target specification IP address, hostnames, networks, etc Example: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254 -iL file input from list -iR n choose random targets, 0 never ending --exclude --excludefile file exclude host or list from file Port scanning techniques -sS tcp syn scan -sT tcp connect scan -sU udp scan -sY sctp init scan -sZ sctp cookie echo -sO ip protocol -sW tcp window -sN –sF -sX null, fin, xmas –sA tcp ack Port specification and scan order -p n-m range -p- all ports -p n,m,z individual -p U:n-m,z T:n,m U for udp T for tcp -F fast, common 100 --top-ports n scan the highest-ratio ports -r don’t randomize Host discovery -PS n tcp syn ping -PA n tcp ack ping -PU n udp ping -PM netmask req -PP timestamp req -PE echo req -sL list scan -PO protocol ping -PN no ping -n no DNS -R DNS resolution for all targets --traceroute: trace path to host (for topology map) -sP ping same as –PP –PM –PS443 –PA80 Service and version detection -sV: version detection --all-ports dont exclude ports --version-all try every single probe --version-trace trace version scan activity -O enable OS detection --fuzzy guess OS detection --max-os-tries set the maximum number of tries against a target Firewall/IDS evasion -f fragment packets -D d1,d2 cloak scan with decoys -S ip spoof source address –g source spoof source port --randomize-hosts order --spoof-mac mac change the src mac Timing and performance -T0 paranoid -T1 sneaky -T2 polite -T3 normal -T4 aggresive -T5 insane --min-hostgroup --max-hostgroup --min-rate --max-rate --min-parallelism --max-parallelism --min-rtt-timeout --max-rtt-timeout --initial-rtt-timeout --max-retries --host-timeout --scan-delay Output -oN normal -oX xml -oG grepable –oA all outputs Verbosity and debugging options -v Increase verbosity level --reason host and port reason -d (1-9) set debugging level --packet-trace trace packets Miscellaneous options --resume file resume aborted scan (from oN or oG output) -6 enable ipv6 scanning -A agressive same as -O -sV -sC --traceroute Interactive options v/V increase/decrease verbosity level d/D increase/decrease debugging level p/P turn on/off packet tracing Examples Quick scan nmap -T4 -F Fast scan (port80) nmap -T4 --max_rtt_timeout 200 --initial_rtt_timeout 150 --min_hostgroup 512 --max_retries 0 -n -P0 -p80 Pingscan nmap -sP -PE -PP -PS21,23,25,80,113,31339 -PA80,113,443,10042 --source-port 53 -T4 Slow comprehensive nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all Quick traceroute: nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute Scripts -sC perform scan with default scripts --script file run script (or all) --script-args n=v provide arguments --script-trace print incoming and outgoing communication