summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtmap6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmap b/tmap
index 0d9da66..19b28ae 100755
--- a/tmap
+++ b/tmap
@@ -257,7 +257,11 @@ def main():
## Scan each host in HOSTS list
r = dict()
for h in HOSTS:
- r = hostScan(h, PORTS, WAIT_TIME, CLEARNET, JOBS)
+ if h[-6:] == '.onion':
+ ## Onion hosts need to be scanned one port at a time,for some reason
+ r = hostScan(h, PORTS, WAIT_TIME, CLEARNET, 1)
+ else:
+ r = hostScan(h, PORTS, WAIT_TIME, CLEARNET, JOBS)
for i in r.keys():
if len(r[i]) == 0:
continue