diff options
author | stevan <stevannestorovic@hotmail.com> | 2018-10-01 01:00:04 +0200 |
---|---|---|
committer | stevan <stevannestorovic@hotmail.com> | 2018-10-01 01:00:04 +0200 |
commit | c49e3b37aaa875c40dfbc132fd634835cb628e74 (patch) | |
tree | 618c6ea1d48bec5c308af4d7747126af0a51fb92 /tmap | |
parent | 948ea80075e644bc96684edac9f27b622c218d1e (diff) |
CTRL-C now works properly
Diffstat (limited to 'tmap')
-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 |