summaryrefslogtreecommitdiff
path: root/tmap
diff options
context:
space:
mode:
authorstevan <stevannestorovic@hotmail.com>2018-10-01 00:19:51 +0200
committerstevan <stevannestorovic@hotmail.com>2018-10-01 00:19:51 +0200
commit3021dcab3fa3789c17325ce0817d29327e6c65b6 (patch)
treeb3c45aa31c91d0f873d17fb6a731d9f8ef6a32ad /tmap
parentb5ca4466e559ca1722a1a1c9543194b7d2df2ea6 (diff)
commit for pull
Diffstat (limited to 'tmap')
-rwxr-xr-xtmap3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmap b/tmap
index ff093d7..46e2aa3 100755
--- a/tmap
+++ b/tmap
@@ -16,6 +16,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:
@@ -28,7 +29,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()