the_open_door
coffee
ESEN
← Cheatsheets

Network enumeration

From host discovery to attacking each network service, with the real invocations that recur across the boxes. Each service by phase: enumerate, find vulnerabilities, exploit.

Discovery

Discovery & scanning24 commands
  • Host discovery
  • Port scanning
  • Services & versions
  • Vulnerabilities
  • Utilities

File transfer & shares

FTP · 2116 commands
  • Enumerate
  • Anonymous access
  • Bruteforce
  • Transfer / exploitation
  • Vulnerabilities
TFTP · 697 commands
  • Scan / banner
  • Download / upload
  • Common files
NFS · 111 / 204910 commands
  • Enumerate
  • Mount
  • UID escalation / no_root_squash
  • Unmount
rsync · 8739 commands
  • Enumerate modules
  • Download
  • Upload
  • Over SSH
SMB · 139 / 44538 commands
  • Enumerate
  • Null session / guest
  • Users & RID
  • Shares: list & browse
  • Shares: recursive / spider
  • Shares: download / upload
  • Shares: your own server
  • Credentials / Pass-the-Hash
  • Execution / RCE
  • NTLM relay
  • Vulnerabilities

Remote access

SSH · 2220 commands
  • Scan / banner
  • Connect
  • Options / legacy bypass
  • Restricted-shell escape
  • SSH keys
  • Bruteforce
  • User enum / CVE
Telnet · 236 commands
  • Scan / banner
  • Login / bruteforce
r-services · 512 / 513 / 5149 commands
  • Enumerate
  • Access (trust)
  • Login / bruteforce
  • Post-access
RDP · 338915 commands
  • Enumerate
  • Access
  • Bruteforce
  • Pass-the-Hash
  • Session hijack / RestrictedAdmin
VNC · 59008 commands
  • Scan / banner
  • Connect
  • Login / bruteforce
  • Stored password
WinRM · 5985 / 598613 commands
  • Enumerate
  • Validate credentials (netexec)
  • Interactive shell (evil-winrm)
  • Execution (WMI/command)
  • TLS / certificate
X11 · 60008 commands
  • Scan / banner
  • Access
  • Screenshot
  • Keylogging / injection

Mail

SMTP · 25 / 58713 commands
  • Enumerate
  • Enumerate users
  • Send mail
  • Bruteforce / spray
IMAP / POP3 · 110 / 143 / 993 / 99511 commands
  • Enumerate
  • Access / read mail
  • Bruteforce

Directory & naming

DNS · 5316 commands
  • Record queries
  • Reverse (PTR)
  • Server version
  • Zone transfer
  • Subdomain bruteforce
  • NSE scripts
LDAP · 389 / 6368 commands
  • Enumerate
  • Anonymous bind
  • Queries
finger · 798 commands
  • Scan / banner
  • Enumerate users

Management & infrastructure

RPC / portmapper · 111 / 1358 commands
  • Portmapper (111)
  • NFS over RPC
  • MSRPC (135)
  • rpcclient (null session)
SNMP · 16116 commands
  • Community strings
  • Walk / dump
  • Useful OIDs
  • SNMPv3
  • Loot / filtering
NTP · 1237 commands
  • Scan / banner
  • Enumerate
  • Clock
IKE / IPsec VPN · 5008 commands
  • Scan / banner
  • Enumerate
  • Aggressive mode (PSK)
  • Crack
IPMI / BMC · 6238 commands
  • Enumerate / hashes
  • Crack
  • ipmitool / cipher-zero
  • Default credentials
IRC · 6667 / 66976 commands
  • Scan / banner
  • Connect
  • Exploitation

Login brute force

Login brute forcing (online)15 commands
  • hydra: services
  • hydra: web (HTTP)
  • netexec / CrackMapExec
  • medusa / patator

Other

Docker API · 2375 / 23765 commands
  • Scan / banner
  • Enumerate
  • Exploitation (escape)
Java RMI / JMX · 10996 commands
  • Scan / banner
  • Enumerate
  • Exploitation (RCE)
Elasticsearch · 92006 commands
  • Scan / banner
  • Enumerate
  • Dump
  • Exploitation (RCE)
Memcached · 112116 commands
  • Scan / banner
  • Enumerate
  • Dump