diff options
author | stevan <stevannestorovic@hotmail.com> | 2018-10-01 00:19:51 +0200 |
---|---|---|
committer | stevan <stevannestorovic@hotmail.com> | 2018-10-01 00:19:51 +0200 |
commit | 3021dcab3fa3789c17325ce0817d29327e6c65b6 (patch) | |
tree | b3c45aa31c91d0f873d17fb6a731d9f8ef6a32ad /tmap | |
parent | b5ca4466e559ca1722a1a1c9543194b7d2df2ea6 (diff) |
commit for pull
Diffstat (limited to 'tmap')
-rwxr-xr-x | tmap | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |