Reference for the ports that show up most often in a pentest or a CTF: which service usually
sits behind each one, what to look at first, and which page to go to. It is meant to be read
right after the scan and before enumeration.
One warning applies to the whole table: the port number is a convention, not a
guarantee. nmap without -sV prints whatever name its nmap-services file lists for that
number; only version detection tells you what is really there.
flowchart LR
S["Scan<br/>port list"] --> T["This table<br/>what it usually is, what to check"]
T --> V["-sV<br/>confirm the service"]
V --> E["Service page<br/>enumerate"]
RFC 6335 divides the 65,536 ports of TCP, UDP, SCTP and DCCP into three ranges:
Range
Name
Who assigns it
0–1023
System (well known)
IANA; on Unix only root may listen on them
1024–49151
User (registered)
IANA, on request from vendors
49152–65535
Dynamic (ephemeral)
nobody: the OS uses them for outbound connections
The official registry is IANA’s Service Name and Transport Protocol Port Number Registry.
In practice many registered services listen on ports that are not theirs (an HTTP on 8443,
an SSH on 2222, a MySQL on 33060) and ephemeral ports show up open on Windows through
dynamic RPC (49152+). A high open port is enumerated exactly like a low one.
53, 69, 123, 161, 500, 623, 1900 and 5353 only show up with -sU. SNMP and TFTP in
particular hand out complete network-device configurations without credentials; IKE (500)
identifies the VPN and its vendor (see VPN).
Inventory: what this table lists is what an attacker looks at first; the defenders
should know on which hosts each one is open and why.
Internet exposure: Shadowserver and Censys publish continuous counts of databases
reachable without authentication; Censys counted around 39,000 unauthenticated Redis
services out of 350,000 exposed in 2022, and Shadowserver counted close to 79,000
Internet-reachable MongoDB instances in December 2025. None of the ports in the database
section should be reachable from outside.
Management ports (22, 3389, 5985, 623, 161) only from the administration network.
A port out of place (4444, 1337, an HTTP on a high port on a server that did not have
one) is an indicator that deserves its own alert.
RFC 6335, IANA Procedures for the Management of the Service Name and Transport Protocol Port Number Registry (section 6, ranges): https://www.rfc-editor.org/rfc/rfc6335