Services by Port — Enumeration & Attacks
A quick reference for what to do based on the port/service that shows up in an Nmap scan: what to try first, which tool to reach for, and how likely that service is to be the way in. Meant to be consulted during a machine's recon, not read top to bottom.
| Type | Reference table |
| Use | Quick lookup during recon |
Full port table
| Port | Service | Attacks / tests | Tools | Priority |
|---|---|---|---|---|
| 21 | FTP | Anonymous login, brute force, vulnerable versions (RCE) | ftp, hydra, nmap --script ftp-* | 🔥 High |
| 22 | SSH | Password spraying, brute force (with prior credentials) | ssh, hydra, ncrack | ⚠️ Medium |
| 23 | Telnet | Banner grabbing, brute force — plaintext, insecure | telnet, hydra | 🟡 Low |
| 25 | SMTP | User enumeration, Open Relay, spoofing | telnet, swaks, nmap --script smtp-* | 🔥 High |
| 53 | DNS | Zone transfer (AXFR), subdomain fuzzing | dig, nslookup, dnsenum, fierce | 🔥 High |
| 67-68 | DHCP | Rogue DHCP (MITM) | — | ⚠️ Low |
| 69 | TFTP | Download/read accessible files | tftp, tftp-hpa | 🔥 High if readable/writable |
| 80 / 443 | HTTP / HTTPS | Fuzzing, LFI, RCE, RFI, SQLi — most exploitable in CTF | gobuster, feroxbuster, whatweb, nikto | 🔥🔥 Very high |
| 110 / 143 | POP3 / IMAP | Password spraying, extracting emails | hydra, telnet, openssl | Medium |
| 135 | RPC | Enumerating exposed modules (lots of Windows info) | rpcclient, nmap --script rpcinfo | 🔥 High |
| 137-139 | NetBIOS | Share enumeration (pairs with SMB) | nbtscan, enum4linux | Medium |
| 389 / 636 | LDAP | User enumeration/dumping | ldapsearch, enum4linux | High |
| 445 | SMB | Full enumeration, EternalBlue, relay, brute force | enum4linux, netexec, smbclient | 🔥🔥 Very high |
| 1433 | MSSQL | Login, xp_cmdshell (can give RCE) | hydra, mssqlclient.py | 🔥 High |
| 1521 | Oracle | Enumeration, brute force | odat | Medium |
| 2049 | NFS | List and mount exports — bad permissions = direct read | showmount, mount | 🔥 High |
| 2181 | Zookeeper | Reading data without auth | nc, zkCli.sh | Medium |
| 3306 | MySQL | Weak passwords, database dumps | mysql, mysqldump, hydra | High |
| 3389 | RDP | Password spraying, BlueKeep if vulnerable | xfreerdp, hydra | Medium |
| 5900 | VNC | Brute force — sometimes no password at all | vncviewer, hydra | Medium |
| 5985 / 5986 | WinRM | Password spraying, direct remote execution | evil-winrm, netexec | 🔥 Very high |
| 6379 | Redis | No auth usually gives a direct shell (write SSH keys) | redis-cli | 🔥 Very high |
| 8000-9000 | Dev servers | App enumeration, exploit frameworks | whatweb, gobuster | High |
| 9200 | Elasticsearch | RCE in many vulnerable versions | curl, public PoCs | High |
| 11211 | Memcached | Memory dump — reading keys/users | memcdump | High |
Detail on the most common services
SMB (445) — one of the most important
Historically one of the most vulnerable services. Enumerate shares and users, try password spraying, and if the version is old, check for EternalBlue. enum4linux and netexec are the usual starting point.
WinRM (5985/5986)
If you have valid credentials (or a hash for Pass-the-Hash), WinRM gives direct remote execution via evil-winrm — usually the final step after obtaining credentials on a Windows domain.
DNS (53)
Always check whether it allows zone transfer (AXFR) — misconfigured, it reveals the entire internal domain structure at once. Otherwise, subdomain fuzzing with dnsenum/fierce.
MSSQL (1433)
If you get a login, xp_cmdshell is the stored procedure that lets you run OS commands directly from SQL — RCE if enabled (or if you have permissions to enable it).
RDP (3389)
Full graphical connection once you have credentials. Vulnerable to BlueKeep (CVE-2019-0708) on unpatched versions — pre-authentication RCE.
NFS (2049)
showmount -e <IP> lists which folders it exports. If permissions are misconfigured (no_root_squash, no IP restriction), you can mount and read/write directly with no authentication at all.