summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtmap3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmap b/tmap
index 74106d4..2cee096 100755
--- a/tmap
+++ b/tmap
@@ -17,6 +17,7 @@ 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:
@@ -29,7 +30,7 @@ def portScan(host, ports, wait, notor):
for p in ports:
if connScan(host, p, wait, notor):
openPorts += 1
- print("{} open ports on {}.".format(openPorts, host))
+ print("{} open ports on {} .".format(openPorts, host))
def main():
startTime = time.time()