summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtmap3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmap b/tmap
index 2cee096..d670994 100755
--- a/tmap
+++ b/tmap
@@ -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