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.
Referencia rápida de qué hacer según el puerto/servicio que aparece en un escaneo de Nmap: qué probar primero, con qué herramienta, y qué tan probable es que ese servicio sea el camino de entrada. Pensada para consultar durante el reconocimiento de una máquina, no para leer de un tirón.
| Tipo | Tabla de referencia |
| Uso | Consulta rápida durante recon |
Tabla completa por puerto
| Puerto | Servicio | Ataques / pruebas | Herramientas | Prioridad |
|---|---|---|---|---|
| 21 | FTP | Login anónimo, fuerza bruta, versiones vulnerables (RCE) | ftp, hydra, nmap --script ftp-* | 🔥 Alta |
| 22 | SSH | Password spraying, fuerza bruta (con credenciales previas) | ssh, hydra, ncrack | ⚠️ Media |
| 23 | Telnet | Banner grabbing, fuerza bruta — texto plano, inseguro | telnet, hydra | 🟡 Baja |
| 25 | SMTP | Enumeración de usuarios, Open Relay, spoofing | telnet, swaks, nmap --script smtp-* | 🔥 Alta |
| 53 | DNS | Zone transfer (AXFR), fuzzing de subdominios | dig, nslookup, dnsenum, fierce | 🔥 Alta |
| 67-68 | DHCP | Rogue DHCP (MITM) | — | ⚠️ Baja |
| 69 | TFTP | Descargar/leer archivos accesibles | tftp, tftp-hpa | 🔥 Alta si es legible/escribible |
| 80 / 443 | HTTP / HTTPS | Fuzzing, LFI, RCE, RFI, SQLi — el más explotable en CTF | gobuster, feroxbuster, whatweb, nikto | 🔥🔥 Muy alta |
| 110 / 143 | POP3 / IMAP | Password spraying, extracción de correos | hydra, telnet, openssl | Media |
| 135 | RPC | Enumeración de módulos expuestos (mucha info en Windows) | rpcclient, nmap --script rpcinfo | 🔥 Alta |
| 137-139 | NetBIOS | Enumeración de shares (va con SMB) | nbtscan, enum4linux | Media |
| 389 / 636 | LDAP | Enumeración/dump de usuarios | ldapsearch, enum4linux | Alta |
| 445 | SMB | Enumeración total, EternalBlue, relay, fuerza bruta | enum4linux, netexec, smbclient | 🔥🔥 Muy alta |
| 1433 | MSSQL | Login, xp_cmdshell (puede dar RCE) | hydra, mssqlclient.py | 🔥 Alta |
| 1521 | Oracle | Enumeración, fuerza bruta | odat | Media |
| 2049 | NFS | Listar y montar exportaciones — permisos mal puestos = lectura directa | showmount, mount | 🔥 Alta |
| 2181 | Zookeeper | Lectura de datos sin auth | nc, zkCli.sh | Media |
| 3306 | MySQL | Contraseñas débiles, dump de bases | mysql, mysqldump, hydra | Alta |
| 3389 | RDP | Password spraying, BlueKeep si es vulnerable | xfreerdp, hydra | Media |
| 5900 | VNC | Fuerza bruta — a veces sin contraseña | vncviewer, hydra | Media |
| 5985 / 5986 | WinRM | Password spraying, ejecución remota directa | evil-winrm, netexec | 🔥 Muy alta |
| 6379 | Redis | Sin auth suele dar shell directa (escribir SSH keys) | redis-cli | 🔥 Muy alta |
| 8000-9000 | Dev servers | Enumeración de apps, frameworks de exploit | whatweb, gobuster | Alta |
| 9200 | Elasticsearch | RCE en muchas versiones vulnerables | curl, PoCs públicos | Alta |
| 11211 | Memcached | Dump de memoria — lectura de claves/usuarios | memcdump | Alta |
Detalle de los servicios más frecuentes
SMB (445) — uno de los más importantes
Históricamente uno de los servicios más vulnerables. Enumera shares y usuarios, prueba password spraying, y si la versión es antigua, comprueba EternalBlue. enum4linux y netexec son el punto de partida habitual.
WinRM (5985/5986)
Si tienes credenciales válidas (o un hash para Pass-the-Hash), WinRM da ejecución remota directa con evil-winrm — normalmente el último paso tras conseguir credenciales en un dominio Windows.
DNS (53)
Comprueba siempre si permite zone transfer (AXFR) — mal configurado, revela toda la estructura interna del dominio de golpe. Si no, fuzzing de subdominios con dnsenum/fierce.
MSSQL (1433)
Si consigues login, xp_cmdshell es el procedimiento almacenado que permite ejecutar comandos del sistema operativo directamente desde SQL — RCE si está habilitado (o si tienes permisos para habilitarlo).
RDP (3389)
Conexión gráfica completa una vez tienes credenciales. Vulnerable a BlueKeep (CVE-2019-0708) en versiones sin parchear — RCE previo a autenticación.
NFS (2049)
showmount -e <IP> lista qué carpetas exporta. Si los permisos están mal configurados (no_root_squash, sin restricción de IP), puedes montar y leer/escribir directamente sin ninguna autenticación.