Skip to content

Instantly share code, notes, and snippets.

@jonocarroll
Last active May 21, 2016 14:21
Show Gist options
  • Save jonocarroll/0c2326c30269e1f7178fa32d81253e55 to your computer and use it in GitHub Desktop.
Save jonocarroll/0c2326c30269e1f7178fa32d81253e55 to your computer and use it in GitHub Desktop.
Port map lookup from Wikipedia
# Bob Rudis
# @hrbrmstr
# Lazy cyber tweet: what prod/dev has this port combo?
# 110,111,143,21,22,23,25,3389,389,443,465,587,5900,8080,8081,8443,8888,9100,990,993,995
# install.packages("rvest")
library(rvest)
html <- read_html("https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers")
ports1 <- html_table(html_nodes(html, "table")[5])[[1]]
ports2 <- html_table(html_nodes(html, "table")[6])[[1]]
ports <- dplyr::bind_rows(ports1, ports2)
bobports <- strsplit("110,111,143,21,22,23,25,3389,389,443,465,587,5900,8080,8081,8443,8888,9100,990,993,995", ",")[[1]]
ports[ports$Port %in% bobports, ]
# Port TCP UDP Description Status
# 21 TCP\nSCTP UDP FTP control (command) Official
# 22 TCP\nSCTP UDP Secure Shell (SSH), secure logins, file transfers (scp, sftp) and port forwarding Official
# 23 TCP UDP Telnet protocol—unencrypted text communications Official
# 25 TCP UDP Simple Mail Transfer Protocol (SMTP), used for e-mail routing between mail servers Official
# 110 TCP UDP Post Office Protocol v3 (POP3) Official
# 111 TCP UDP ONC RPC (Sun RPC) Official
# 143 TCP Internet Message Access Protocol (IMAP), management of email messages Official
# 389 TCP UDP Lightweight Directory Access Protocol (LDAP) Official
# 443 TCP\nSCTP UDP Hypertext Transfer Protocol over TLS/SSL (HTTPS) Official
# 443 UDP QUIC (from Chromium) for HTTPS Unofficial
# 465 TCP URL Rendezvous Directory for SSM (Cisco protocol) Official
# 465 TCP Simple Mail Transfer Protocol over TLS/SSL (SMTPS) Unofficial
# 587 TCP e-mail message submission[24] (SMTP) Official
# 990 TCP UDP FTPS Protocol (control), FTP over TLS/SSL Official
# 993 TCP Internet Message Access Protocol over TLS/SSL (IMAPS) Official
# 995 TCP Post Office Protocol 3 over TLS/SSL (POP3S) Official
# 3389 TCP UDP Microsoft Terminal Server (RDP) officially registered as Windows Based Terminal (WBT)[66] Official
# 5900 TCP UDP Remote Frame Buffer protocol (RFB), Virtual Network Computing (VNC) remote desktop protocol[113] Official
# 8080 TCP HTTP alternate (http_alt)—commonly used for Web proxy and caching server, or for running a Web server as a non-root user Official
# 8080 TCP Apache Tomcat Unofficial
# 8080 TCP M2MLogger WebFRONT Cloud connector Unofficial
# 8080 TCP Atlassian Jira (default port) [134] Unofficial
# 8080 UDP FilePhile Master/Relay Unofficial
# 8080 TCP Vermont Systems / RecTrac Vermont Systems RecTrac (WebTrac) network installer Unofficial
# 8081 TCP HTTP alternate, VibeStreamer, e.g. McAfee ePolicy Orchestrator (ePO) Unofficial
# 8443 TCP SW Soft Plesk Control Panel, Apache Tomcat SSL, Promise WebPAM SSL, McAfee ePolicy Orchestrator (ePO) Unofficial
# 8888 TCP HyperVM HTTPS Official
# 8888 TCP Freenet HTTP Unofficial
# 8888 TCP UDP NewsEDGE server Official
# 8888 TCP Sun Answerbook dwhttpd server (deprecated by docs.sun.com) Unofficial
# 8888 TCP GNUmp3d HTTP music streaming and Web interface Unofficial
# 8888 TCP LoLo Catcher HTTP Web interface (www.optiform.com) Unofficial
# 8888 TCP D2GS Admin Console Telnet administration console for D2GS servers (Diablo 2) Unofficial
# 8888 TCP Earthland Realms 2 Server (AU1_2)[citation needed] Unofficial
# 8888 TCP Default for IPython / Jupyter Notebooks[147] Unofficial
# 8888 UDP FortiGuard Antispam or Web Filtering rating lookup[148] Unofficial
# 9100 TCP PDL Data Stream Official
# 9100 TCP UDP LPR - RAW Printing Official
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment