A Hacker's Guide to Common Ports
A no-fluff guide to the ports you'll actually run into during a pentest. Forget the textbook definitions - this is about what they are, why they're interesting, and how to poke at them with Nmap.
Port 21: FTP (File Transfer Protocol)
# Check for anonymous login and common FTP vulnerabilities nmap -p 21 --script ftp-anon,ftp-vuln-* <target>
Port 22: SSH (Secure Shell)
# See what authentication methods are allowed and grab the host key nmap -p 22 --script ssh-auth-methods,ssh-hostkey <target>
Port 23: Telnet
Port 25: SMTP (Simple Mail Transfer Protocol)
Port 53: DNS (Domain Name System)
Port 80: HTTP (Hypertext Transfer Protocol)
Port 111 & 2049: RPCbind & NFS (Network File System)
Port 139 & 445: SMB (Server Message Block)
Port 161: SNMP (Simple Network Management Protocol)
Port 389: LDAP (Lightweight Directory Access Protocol)
Port 443: HTTPS (HTTP Secure)
Port 1433: MS-SQL Server
Port 3306: MySQL / MariaDB
Port 3389: RDP (Remote Desktop Protocol)
Port 5900: VNC (Virtual Network Computing)
Port 8080 / 8000 / 8888: HTTP-Alt
Last updated