From c49e3b37aaa875c40dfbc132fd634835cb628e74 Mon Sep 17 00:00:00 2001 From: stevan Date: Mon, 1 Oct 2018 01:00:04 +0200 Subject: CTRL-C now works properly --- tmap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tmap') 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 -- cgit v1.2.3