你应该知道的 50 个常见端口
端口号是一个 16 位的数值,范围从 0 到 65535。知名端口(0-1023)、注册端口(1024-49151)和动态端口是端口号空间的三种类型。 (49152-65535)。
这些端口可以被软件应用程序和操作系统服务打开和使用,以通过采用某些协议(例如 TCP、UDP)的网络(LAN 或 WAN)发送和接收数据。
例如,我们在日常工作中使用 80 用于基于 HTTP-web 的纯文本浏览,使用 443 用于基于 HTTPS-web 的加密网站。
总而言之,端口是一种逻辑形式,用于识别用于创建本地或基于网络的通信的系统活动或各种网络服务。
端口的作用是什么?
通过 Internet 进行交互时,TCP 和 UDP 协议会建立连接,在传输后重新编译数据包,然后将它们交付给接收方设备上的应用程序。要使此切换正常工作,操作系统必须安装并打开网关以进行传输。每扇门都有一个唯一的代码。传输后,接收系统使用端口号来确定数据应该发送到哪里。发送方和接收方的端口号始终包含在数据包中。
端口被分配了从 0 到 65536 的序列号。其中一些代码是标准化的,这意味着它们被分配给某些用途。由于代码编号是普遍认可和永久分配的,因此这些标准端口也称为众所周知的端口。注册端口是组织或软件开发人员为其应用程序注册的端口。注册由互联网号码分配机构 (IANA) 处理。还可以选择多种动态分配的端口号。例如,在查看网站时,浏览器会使用这些端口。之后,电话号码再次免费。
为什么了解这些端口很重要?
任何安全研究人员、漏洞赏金猎人或任何使用服务配置的人都将从中受益。了解如何对仍在基础架构中运行的古老服务进行更彻底的扫描(例如版本检测或已知漏洞),尤其是在使用 Nmap 等工具时,在了解这些协议和服务时非常方便。
此处列出了最重要的 50 个端口:
以下是一些最常见的服务名称、传输协议名称和端口号,用于区分使用 TCP、UDP、DCCP 和 SCTP 的特定服务。 Hypertext Transfer Protocol (HTTP) uses TCP in versions 1.x and 2. HTTP/3 uses QUIC, a transport protocol on top of UDPPort Number Service name Transport protocol Description 7 Echo TCP, UDP Echo service 20 FTP-data TCP, SCTP File Transfer Protocol data transfer 21 FTP TCP, UDP, SCTP File Transfer Protocol (FTP) control connection 22 SSH-SCP TCP, UDP, SCTP Secure Shell, secure logins, file transfers (scp, sftp), and port forwarding 23 Telnet TCP Telnet protocol—unencrypted text communications 25 SMTP TCP Simple Mail Transfer Protocol, used for email routing between mail servers 53 DNS TCP, UDP Domain Name System name resolver 69 TFTP UDP Trivial File Transfer Protocol 80 HTTP TCP, UDP, SCTP 88 Kerberos TCP, UDP Network authentication system 102 Iso-tsap TCP ISO Transport Service Access Point (TSAP) Class 0 protocol 110 POP3 TCP Post Office Protocol, version 3 (POP3) 135 Microsoft EPMAP TCP, UDP Microsoft EPMAP (End Point Mapper), also known as DCE/RPC Locator service, used to remotely manage services including DHCP server, DNS server, and WINS. Also used by DCOM 137 NetBIOS-ns TCP, UDP NetBIOS Name Service, used for name registration and resolution 139 NetBIOS-ssn TCP, UDP NetBIOS Session Service 143 IMAP4 TCP, UDP Internet Message Access Protocol (IMAP), management of electronic mail messages on a server 381 HP Openview TCP, UDP HP data alarm manager 383 HP Openview TCP, UDP HP data alarm manager 443 HTTP over SSL TCP, UDP, SCTP Hypertext Transfer Protocol Secure (HTTPS) uses TCP in versions 1.x and 2. HTTP/3 uses QUIC, a transport protocol on top of UDP. 464 Kerberos TCP, UDP Kerberos Change/Set password 465 SMTP over TLS/SSL, SSM TCP Authenticated SMTP over TLS/SSL (SMTPS), URL Rendezvous Directory for SSM (Cisco protocol) 587 SMTP TCP Email message submission 593 Microsoft DCOM TCP, UDP HTTP RPC Ep Map, Remote procedure call over Hypertext Transfer Protocol, often used by Distributed Component Object Model services and Microsoft Exchange Server 636 LDAP over TLS/SSL TCP, UDP Lightweight Directory Access Protocol over TLS/SSL 691 MS Exchange TCP MS Exchange Routing 902 VMware Server unofficial VMware ESXi 989 FTP over SSL TCP, UDP FTPS Protocol (data), FTP over TLS/SSL 990 FTP over SSL TCP, UDP FTPS Protocol (control), FTP over TLS/SSL 993 IMAP4 over SSL TCP Internet Message Access Protocol over TLS/SSL (IMAPS) 995 POP3 over SSL TCP, UDP Post Office Protocol 3 over TLS/SSL 1025 Microsoft RPC TCP Microsoft operating systems tend to allocate one or more unsuspected, publicly exposed services (probably DCOM, but who knows) among the first handful of ports immediately above the end of the service port range (1024+). 1194 OpenVPN TCP, UDP OpenVPN 1337 WASTE unofficial WASTE Encrypted File Sharing Program 1589 Cisco VQP TCP, UDP Cisco VLAN Query Protocol (VQP) 1725 Steam UDP Valve Steam Client uses port 1725 2082 cPanel unofficial cPanel default 2083 radsec, cPanel TCP, UDP Secure RADIUS Service (radsec), cPanel default SSL 2483 Oracle DB TCP, UDP Oracle database listening for insecure client connections to the listener, replaces port 1521 2484 Oracle DB TCP, UDP Oracle database listening for SSL client connections to the listener 2967 Symantec AV TCP, UDP Symantec System Center agent (SSC-AGENT) 3074 XBOX Live TCP, UDP Xbox LIVE and Games for Windows – Live 3306 MySQL TCP MySQL database system 3724 World of Warcraft TCP, UDP Some Blizzard games, Unofficial Club Penguin Disney online game for kids 4664 Google Desktop unofficial Google Desktop Search 5432 PostgreSQL TCP PostgreSQL database system 5900 RFB/VNC Server TCP, UDP virtual Network Computing (VNC) Remote Frame Buffer RFB protocol 6665 IRC TCP Internet Relay Chat 6669 IRC TCP Internet Relay Chat 6881 BitTorrent unofficial BitTorrent is part of the full range of ports used most often 6999 BitTorrent unofficial BitTorrent is part of the full range of ports used most often 6970 Quicktime unofficial QuickTime Streaming Server 8086 Kaspersky AV TCP Kaspersky AV Control Center 8087 Kaspersky AV UDP Kaspersky AV Control Center 8222 VMware Server TCP, UDP VMware Server Management User Interface (insecure Web interface). 9100 PDL TCP PDL Data Stream, used for printing to certain network printers[1 10000 BackupExec unofficial Webmin, Web-based Unix/Linux system administration tool (default port) 12345 NetBus unofficial NetBus remote administration tool (often Trojan horse). 27374 Sub7 unofficial Sub7 default 18006 Back Orifice unofficial Back Orifice 2000 remote administration tools