Network Recon Cheat Sheet
by coffeefueled via cheatography.com/25996/cs/7096/
Nmap Base Syntax Scan Options (cont) Output Options
# nmap [Scan Type] [Options] UDP Scan -v|vv|vvv verbosity
{targets} UDP
-sU -d<0-9> debugging
SCTP Scan Types --reason explain port and host
Target Specification
states
-sY INIT
Single IPv4: 192.168.1.1 File Outputs
-sZ COOKIE ECHO
Single IPv6: AAAA::FF -oN <file> normal
Protocol Scan
FQDN: host.local oX <file> XML
-sO IP Protocol Scan
IPv4 Range: 192.168.1.27-78 -oS <file> script kiddie
CIDR Block: 192.168.1.0/16 -p - Port Options -oG <file> grepable
File: -iL targets.txt Exclude ports -oA all
--exclude ports <port ranges> <basename>
Host Discovery Options
Protocol specification
-sL list hosts and reverse DNS Scripting Engine Options
T21-25 - TCP ports 21 to 25
-sn discovery probes only U53,111,137 - UDP ports 53, 111, 137 Use default scripts
-Pn skip discovery stage S22 - SCTP port 22 -sC
P - IP Protocol --script=default
-n disable reverse DNS resolution
Fast port scan Run scripts (individual or list)
-R force reverse DNS resolution
-F - scan top 100 ports (default 1000) --script
--dns-servers <list>
<filename> - script filename
Sequential port scan
<category> - category of scripts
Scan Options -r - sequential scan (default random)
<directory> - scripts in directory
TCP Scan Types Ports in nmap-services file <expression> - boolean expression
-sS SYN [1-65535] - ports in nmap-services [,...] - continue comma separated list
-sT Connect --port-ratio - ports with greater ratio Script arguments
--top-ports <n> - n highest ratio
-sN NULL --script-args
<n1>=<v1>
-sF FIN
-o - OS Detection Options <n2>={<n3>=<v3>}
-sX Xmas (FIN, PSH, URG)
--osscan-limit only live machines <n4>={<v4>,<v5>}
-sA ACK
--fuzzy low-probability guesses Load script args from a file
-sW Window
--script-args-file <filename>
-sM FIN/ACK
Debug information
-sI <zombie use zombie
--script-trace
host>
Update script database
--scanflags URG/ACK/PSH/RST/SY
--script-updatedb
[flags] N/FIN
By coffeefueled Published 11th February, 2016. Sponsored by Readability-Score.com
cheatography.com/coffeefueled/ Last updated 13th May, 2016. Measure your website readability!
Page 1 of 2. https://readability-score.com
Network Recon Cheat Sheet
by coffeefueled via cheatography.com/25996/cs/7096/
-sV - Version Detection Options DNS Enumeration Service Enumeration (cont)
send less common probes (default 7) dnsrecon -a all simple
enumeration
--version intensity <0-9> --domain domain to target
-u user -p authenticated
light version scanning (intensity 2) --range IP range for reverse
pass
lookup
--version light
--name_server DNS server SMTP TCP 25, 110
full version scanning (intensity 9)
--dictionary dictionary of targets nc -nv <address> 25
--version-all
<file> VRFY verify address
debug information
--type type of enumeration EXPN query mail list
--version-trace
std standard
SNMP UDP 161
Google sub-
goo
Miscellaneous Options domains onesixtyone
axfr
test for zone
tld -c <file> community strings
-6 IPv6 transfers
test against IANA -i <file> targets
-A Aggressive -O -sV -sC --
TLDs -o <file> output file
traceroute
-w deep whois analysis
snmpwalk [opt] agent [OID]
-T Timing options
slowest scan --csv export to CSV
paranoid|0 -c <string> community string
sneaky|1 slower scan dnsenum
-v{1|2c|3} version
slow scan
polite|2 --dnsserver target dns server
default snmpcheck enumeration tool
normal|3 <server>
faster scan -t <address> target
aggressive|4 fastest scan community string
--subfile output file -c
insane|5 detect write access
<file> -w
Runtime Commands
SQL TCP 1433,3306
v|V +|- verbosity Service Enumeration
sqlmap
d|D +|- debugging Useful command lines
--url="url" target
p|P on|off packet tracing nmap -v -p <ports> -oG <file>
--dbms=<DBMS> force dbms
<address range>
-a retrieve all
ls -l
/usr/share/nmap/scripts/<protocol>* --dump dump data
SMB TCP 139,445 --os-shell retrieve shell
nbtscan --crawl crawl site
<depth>
-r use port 137
<address range> targets
enum4linux
By coffeefueled Published 11th February, 2016. Sponsored by Readability-Score.com
cheatography.com/coffeefueled/ Last updated 13th May, 2016. Measure your website readability!
Page 2 of 2. https://readability-score.com