summaryrefslogtreecommitdiff
path: root/tmap
diff options
context:
space:
mode:
Diffstat (limited to 'tmap')
-rwxr-xr-xtmap8
1 files changed, 6 insertions, 2 deletions
diff --git a/tmap b/tmap
index 3585c21..1eee939 100755
--- a/tmap
+++ b/tmap
@@ -30,8 +30,8 @@ def portScan(host, ports, wait, notor):
openports = list()
for p in ports:
if p > 65535:
- pass
- if connScan(host, p, wait, notor):
+ return openports
+ elif connScan(host, p, wait, notor):
openports.append(p)
return openports
@@ -164,6 +164,10 @@ def main():
r = dict()
for h in HOSTS:
r = hostScan(h, PORTS, WAIT_TIME, CLEARNET)
+ if OUTFILE == "empty_outfile":
+ print("Results for: {}".format(h))
+ else:
+ f.write("Results for: {}".format(h))
for i in r.keys():
if len(r[i]) != 0:
if OUTFILE == "empty_outfile":