A port-by-port “what to do next” reference — for scan mechanics themselves (scan types, timing, NSE scripts, evasion), see nmap-cheatsheet-professional.md. This document picks up once a port is confirmed open and walks through enumeration → common misconfigurations/vulnerabilities → the exploitation path, service by service.
All techniques below are for use in authorized environments only — this playbook assumes an authorized lab, exam, or engagement.
Quick enumeration:
nmap -sV -sC -p21 <ip>
ftp <ip> # try anonymous:anonymous or anonymous:<blank>
Common vulnerabilities / misconfigurations:
Exploitation path:
web-shells-cheatsheet-professional.md).searchsploit (see exploitation-techniques-cheatsheet-professional.md).Quick enumeration:
nmap -sV -sC -p22 <ip>
ssh -v <ip> # banner grab, algorithm negotiation details
Common vulnerabilities / misconfigurations:
Exploitation path:
hydra-cheatsheet-professional.md.Quick enumeration:
nmap -sV -sC -p23 <ip>
telnet <ip>
Common vulnerabilities / misconfigurations:
Exploitation path:
Quick enumeration:
nmap -sV -sC -p25 <ip>
nc -nv <ip> 25
VRFY root # username enumeration if VRFY is enabled
Common vulnerabilities / misconfigurations:
VRFY/EXPN/RCPT TO timing differencesExploitation path:
VRFY — feeds directly into brute-force targets for SSH/RDP/other services found on the same host.social-engineering-set-cheatsheet-professional.md).Quick enumeration:
dig axfr @<ip> <domain> # attempt zone transfer
nslookup
dnsrecon -d <domain> -t axfr
Common vulnerabilities / misconfigurations:
Exploitation path:
osint-cheatsheet.md) and vhost enumeration (see gobuster-cheatsheet-professional.md).Quick enumeration:
nmap -sV -sC -p80,443,8080,8443 <ip>
whatweb <ip>
gobuster dir -u http://<ip> -w <wordlist>
Common vulnerabilities / misconfigurations:
Exploitation path:
This service gets its own full set of cheat sheets rather than a summary here — start with web-http-protocol-fundamentals-cheatsheet-professional.md, then web-enumeration-common-vulns-cheatsheet-professional.md, burp-suite-cheatsheet-professional.md, sqlmap-cheatsheet-professional.md, and web-shells-cheatsheet-professional.md once an upload/write path is found.
Quick enumeration:
nmap -sV -sC -p88 <ip>
Common vulnerabilities / misconfigurations:
Exploitation path:
Go directly to active-directory-enumeration-cheatsheet-professional.md and the full active-directory-attack-chain-playbook.md — Kerberoasting and AS-REP Roasting both hinge on this port being open.
Quick enumeration:
nmap -sV -sC -p110,143 <ip>
nc -nv <ip> 110
Common vulnerabilities / misconfigurations:
Exploitation path:
Quick enumeration:
nmap -sV -sC -p135 <ip>
rpcclient -U "" <ip> # null session attempt
Common vulnerabilities / misconfigurations:
Exploitation path:
smb-windows-enumeration-cheatsheet-professional.md.Quick enumeration:
nmap -sV -sC -p139,445 --script smb-enum-shares,smb-os-discovery <ip>
smbclient -L //<ip>/ -N
crackmapexec smb <ip>
Common vulnerabilities / misconfigurations:
Exploitation path:
crackmapexec-cheatsheet-professional.md and smb-windows-enumeration-cheatsheet-professional.md for full detail.Quick enumeration:
nmap -sU -sV -sC -p161 <ip>
snmpwalk -c public -v1 <ip>
onesixtyone <ip> community_strings.txt
Common vulnerabilities / misconfigurations:
public/private) exposing extensive system/config info, sometimes including plaintext credentials in the config MIBExploitation path:
snmpwalk a successful string fully; look specifically for the Windows/Cisco config-dump OIDs that sometimes leak credentials.Quick enumeration:
nmap -sV -sC -p389,636 <ip>
ldapsearch -x -H ldap://<ip> -b "dc=domain,dc=com"
Common vulnerabilities / misconfigurations:
Exploitation path:
active-directory-enumeration-cheatsheet-professional.md.Quick enumeration:
nmap -sV -sC -p1433 <ip>
crackmapexec mssql <ip> -u <user> -p <pass>
Common vulnerabilities / misconfigurations:
sa account with a weak/blank passwordxp_cmdshell enabled (or enable-able with sufficient privilege) — direct path to OS command executionExploitation path:
sa/blank or common default credentials.xp_cmdshell is enabled; if not and you have sysadmin, re-enable it — this is a direct route to a shell on the underlying host.metasploit-cheatsheet-professional.md MSSQL modules for a scripted path to the same result.Quick enumeration:
showmount -e <ip>
mount -t nfs <ip>:/<share> /mnt/nfs
Common vulnerabilities / misconfigurations:
no_root_squash — a mounted share lets a local root user act as remote root on the file content* instead of specific hosts)Exploitation path:
no_root_squash is set, plant a SUID binary from a local root context to escalate on the target — see the NFS section of privilege-escalation-linux-windows-cheatsheet.md.Quick enumeration:
nmap -sV -sC -p3306 <ip>
mysql -h <ip> -u root -p
Common vulnerabilities / misconfigurations:
root passwordFILE privilege granted — allows reading/writing arbitrary files on the host via LOAD_FILE()/INTO OUTFILEExploitation path:
root/blank first.FILE privilege is available and the web root is known/guessable, write a web shell directly via SELECT ... INTO OUTFILE (see web-shells-cheatsheet-professional.md).Quick enumeration:
nmap -sV -sC -p3389 <ip>
xfreerdp /v:<ip> /u:<user> /p:<pass>
Common vulnerabilities / misconfigurations:
Exploitation path:
Quick enumeration:
nmap -sV -sC -p5432 <ip>
psql -h <ip> -U postgres
Common vulnerabilities / misconfigurations:
postgres credentialsCOPY ... TO/FROM PROGRAM (superuser) — direct OS command execution from within a SQL sessionExploitation path:
COPY ... FROM PROGRAM to execute OS commands directly — often faster than chasing a separate RCE.Quick enumeration:
nmap -sV -sC -p5900 <ip>
vncviewer <ip>
Common vulnerabilities / misconfigurations:
Exploitation path:
Quick enumeration:
nmap -sV -sC -p5985,5986 <ip>
crackmapexec winrm <ip> -u <user> -p <pass>
evil-winrm -i <ip> -u <user> -p <pass>
Common vulnerabilities / misconfigurations:
Exploitation path:
evil-winrm for an interactive PowerShell session once valid credentials are confirmed — a clean, stable alternative to a raw reverse shell.Quick enumeration:
nmap -sV -sC -p6379 <ip>
redis-cli -h <ip>
Common vulnerabilities / misconfigurations:
Exploitation path:
CONFIG SET dir / SAVE abuse for code execution — verify this is a known, working technique for the specific Redis version before relying on it.nmap-cheatsheet-professional.md.Scan mechanics: nmap-cheatsheet-professional.md. Credential validation at scale: crackmapexec-cheatsheet-professional.md · hydra-cheatsheet-professional.md. Category identification: attack-types-identification-cheatsheet-professional.md.