summaryrefslogtreecommitdiff
path: root/tmap
diff options
context:
space:
mode:
authorstevan <stevannestorovic@hotmail.com>2018-10-01 01:00:04 +0200
committerstevan <stevannestorovic@hotmail.com>2018-10-01 01:00:04 +0200
commitc49e3b37aaa875c40dfbc132fd634835cb628e74 (patch)
tree618c6ea1d48bec5c308af4d7747126af0a51fb92 /tmap
parent948ea80075e644bc96684edac9f27b622c218d1e (diff)
CTRL-C now works properly
Diffstat (limited to 'tmap')
-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