Python Port Scanner
Looking into some python recently and going through many code books, gonna start keeping up with useful bits here! #!/usr/bin/python import optparse from socket import * from threading import * screenLock = Semaphore(value=1) def connScan(targetHost, targetPort): try: connSkt = socket(AF_INET, SOCK_STREAM) connSkt.connect((targetHost, targetPort)) connSkt.send(‘grab\r\n’) results Read More …