Show Menu
Cheatography

nmap Cheat Sheet (DRAFT) by

nmap Cheat Sheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

nmap

-O
Tries to detect the used operating system
-oA
This outputs the scan into all possible output files
-sN
This is a TCP Null scan. (Ping sweep)
-PN
Don't do host discovery, just treat every host as online
--reason
Display port state reason
--max-­retry
maximum times nmap should retry to commun­icate to a host.
--top-­ports
Top ports is to limit the amount of ports to scan.
-T
Sets the aggres­siv­eness (1 to 5) of nmap
-sSV
TCP scan
-sUV
UDP scan
-p-
All ports
-iL
Accepts a path to an input file of IP addresses
 

TCPdum­p/W­indump

-nn
Do not resolve hostnames
-p
Do not put it into promis­cious mode
-s
Snapshot length
-i
Interface number
-w
Write to file, option followed by path

Common Win/TCP dump commands

windump -nn -p -s0 -i interface -w /path/­to/­dum­pfo­lde­r/c­lie­nt_­Int­ern­alo­rEx­ter­nal­_da­te.pcap
tcpdump -nn -p -s0 -i interface -w /path/­to/­dum­pfo­lde­r/c­lie­nt_­Int­ern­alo­rEx­ter­nal­_da­te.pcap

Common Nmap Commands

nmap -sN -oA nmap_s­N_range range
nmap -sSV -- reason --top-­ports 2000 -O -PN -oA nmap_s­SV_­top­200­0_i­prange iprange
nmap -sSV --reason --top-­ports 2000 -O -iL input -oA nmap_s­SV_­top­200­0_i­pra­nge­_scan2
nmap -sUV -- reason --top-­ports 500 -O -PN -oA nmap_s­UV_­top­500­_ip­range iprange
nmap -sUV --reason --top-­ports 500 -O -iL input -oA nmap_s­SV_­top­500­_ip­ran­ge_­scan2