import socket from IPy import IP def get_banner(s): return s.recv(1024) def scan_port(address, port): try: sock = socket.socket() sock.settimeo