diff options
-rwxr-xr-x | tmap | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,9 +17,10 @@ def connScan(host, port, wait, notor): try: sckt.connect((host, port)) print("[+] port {} on {} is open".format(port, host)) - #sckt.shutdown(2) sckt.close() return True + except KeyboardInterrupt: + exit() except: pass |