package core // PortService is the well-known service of a probed port ("" when unknown). func PortService(proto string, port uint16) string { if proto == "udp" { return udpServices[port] } return tcpServices[port] } var tcpServices = map[uint16]string{ 21: "ftp", 22: "ssh", 23: "telnet", 25: "smtp", 53: "dns", 80: "http", 110: "pop3", 111: "rpcbind", 135: "msrpc", 139: "netbios", 143: "imap", 389: "ldap", 443: "https", 445: "smb", 465: "smtps", 587: "submission", 993: "imaps", 995: "pop3s", 1433: "mssql", 1521: "oracle", 1723: "pptp", 2049: "nfs", 2375: "docker", 3306: "mysql", 3389: "rdp", 5432: "postgres", 5900: "vnc", 5901: "vnc", 6379: "redis", 8080: "http-alt", 8443: "https-alt", 9200: "elasticsearch", 11211: "memcached", 27017: "mongodb", 2323: "telnet", } var udpServices = map[uint16]string{ 53: "dns", 69: "tftp", 123: "ntp", 161: "snmp", 389: "cldap", 500: "ike", 1900: "ssdp", 5060: "sip", 11211: "memcached", }