// REF. 18 / RECON

Recon cheat sheet

The documented flags for the usual reconnaissance tools, pulled straight from their man pages and READMEs. Every line here runs against a target, so every line needs written authorization first.

This is a sheet for authorized testing and CTF practice. Know your scope, throttle your scans, and keep a log of what you ran. No scope, no scan.

↓ Download the printable PDF free · letter size · no email needed

NMAP scans

nmap <target>
default scan of ~1000 tcp ports
-sS
tcp syn scan, needs root
-sT
tcp connect scan, no root needed
-sU
udp scan
-sn
ping scan, disable the port scan
-Pn
treat hosts as up, skip discovery

NMAP detect

-sV
probe open ports for service version
-O
os detection
-A
os, version, scripts and traceroute
-sC
run the default scripts
-p-
scan all 65535 ports
--top-ports N
scan the n most common ports

NMAP output

-oA base
save normal, xml and grepable at once
-oN file
normal output to a file
-oG file
grepable output to a file
--open
show only open ports
--reason
say why a port is in its state
-v / -vv
increase verbosity

NMAP scripts

--script default
run the default script set
--script vuln
run vuln-detection scripts
--script <name>
run a named nse script
--script-help <x>
show help for a script

DNS & OSINT

dig <name> <type>
query dns, type defaults to a
dig +short <name>
terse answer, just the values
dig <name> ANY
ask for all record types
dig <zone> AXFR
attempt a zone transfer
dig -x <ip>
reverse lookup for an ip
dig @server <name>
query a specific name server
whois <domain>
registration and ownership lookup

Web fuzzing

ffuf -u .../FUZZ -w
fuzz where FUZZ sits, from a wordlist
ffuf -mc / -fc
match / filter by status code
ffuf -fs / -fw
filter by response size / words
ffuf -e .php,.html
append extensions to FUZZ
ffuf -H 'Host: FUZZ'
fuzz virtual hosts, filter by size
gobuster dir -u -w
brute force dirs and files
gobuster dns -do -w
brute force subdomains

Web

curl -I URL
fetch response headers only
curl -sSL URL
quiet fetch, show errors, follow redirs
nikto -h URL
scan a web server for known issues
nikto -ssl -h URL
force ssl, then scan
nikto -Tuning x
tune which checks run

SQL injection

sqlmap -u 'URL'
test a url for sql injection
--batch
no prompts, use defaults
--dbs
enumerate databases
--tables
enumerate tables
--dump
dump table contents
--level / --risk
raise test depth 1-5 / risk 1-3
-p param
test a specific parameter

Scope & rules

authorization
only with written permission, in scope
scope
stay inside agreed hosts and ranges
rate limits
throttle, do not knock services over
logging
record what you ran and when
data handling
never exfiltrate or keep real data
Recon Field Manual Desk Mat

// KEEP IT UNDER YOUR KEYBOARD

Recon Field Manual Desk Mat

from $34 · printed to order in the USA

See the desk mat