This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Ident lookup for incoming connections | |
# RFC 1413 - Identification Protocol | |
import socket | |
def lookup_ident(host, server_port, client_port): | |
s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) | |
s.settimeout(1) | |
try: | |
s.connect((host, 113)) |
NewerOlder