Just simple 10 lines Python code to explain the beauty of Port Scanner Get link Facebook X Pinterest Email Other Apps Just simple 10 lines Python code to explain the beauty of Port Scanner #!/usr/bin/python import socket def main(): ip = raw_input("ENTER THE TARGET IP ADDRESS: ") for port in range(1, 65535): s = socket.socket try: s = s(socket.AF_INET, socket.SOCK_STREAM) except Exception as er: print " Error: ", str(er) if s.connect_ex((ip, port)): continue else: print "Port", port, " is open !" if __name__ == '__main__': main() Comments
Comments
Post a Comment