Service-to-port map for enumeration. Ports are TCP unless the row says UDP. Services move, so always check with -sV (Enumeration with Nmap). A port is only what the banner proves it is.
Always check first
The high-value set worth prioritising on any target.
snmpwalk with public. Leaks users, processes, ARP.
162
UDP
SNMP trap
Trap receiver.
199
TCP
SMUX
SNMP multiplexer.
623
UDP
IPMI / BMC
Hash dump (ipmi-dumphashes).
2000
TCP
Cisco SCCP
VoIP signalling.
4786
TCP
Cisco Smart Install
Config theft, RCE.
5060 / 5061
TCP/UDP
SIP
VoIP, user enumeration.
Messaging, orchestration, and misc
Port
Proto
Service
Notes
79
TCP
Finger
User enumeration on old Unix.
113
TCP
ident
Returns service owner.
123
UDP
NTP
ntpq, monlist amplification.
179
TCP
BGP
Routing, rare on HTB-like boxes.
500
UDP
IKE / IPsec
ike-scan, VPN fingerprint.
502
TCP
Modbus
ICS/SCADA.
515
TCP
LPD
Printing service.
631
TCP
IPP / CUPS
Printer admin.
1099
TCP
Java RMI
Deserialization RCE.
1723
TCP
PPTP
VPN, hash capture.
1883
TCP
MQTT
IoT messaging, often unauth.
2181
TCP
ZooKeeper
Config leak, envi command.
2375 / 2376
TCP
Docker API
Unauth 2375 = host RCE.
3632
TCP
distcc
Command execution (CVE-2004-2687).
4369
TCP
EPMD (Erlang)
Cookie auth, RabbitMQ pairing.
5222
TCP
XMPP
Chat, user enumeration.
5353
UDP
mDNS
Local service discovery.
5355
UDP
LLMNR
Poison for hash capture (responder).
5671 / 5672
TCP
AMQP / RabbitMQ
Message broker, default creds.
6443
TCP
Kubernetes API
Cluster control, token abuse.
8140
TCP
Puppet
Config management.
8161
TCP
ActiveMQ
Web console, CVE-2016-3088.
9092
TCP
Kafka
Broker, topic access.
9100
TCP
JetDirect
Raw printing, PJL abuse.
15672
TCP
RabbitMQ mgmt
Web console, guest:guest.
44818
TCP/UDP
EtherNet/IP
ICS/SCADA.
Common backdoor and shell ports
Ports that often mean an attacker already touched the box, or a listener you set.
Port
Meaning
1080
SOCKS proxy, sometimes a pivot.
1337
Common custom backdoor.
4444
Metasploit default handler.
6666 / 6667
IRC, historic botnet C2.
12345
NetBus.
31337
Back Orifice, “elite” backdoor.
Fast lookups
Nmap prints the service guess from /etc/services. Read the real name of a numeric port:
grep -w6379/etc/services# service name for a port
Search a service by name to find its default port:
grep -iwredis/etc/services# default port for a service
Do not trust the default map. Run -sV and read the banner. A service on a non-standard port is common on HTB-like boxes and is exactly what a quick scan misses.