summaryrefslogtreecommitdiff
path: root/tmap
diff options
context:
space:
mode:
authorAleksej Jocic <aleksej@spidermail.tk>2019-06-12 14:22:01 +0200
committerAleksej Jocic <aleksej@spidermail.tk>2019-06-12 14:22:01 +0200
commit7d9af5b7f207c29492f79a51b73400958aa87c95 (patch)
tree4080e84e5842fcdf50e43ebb951422f4be0844b7 /tmap
parent6bd1ec22519551cf6f901db066e95de9f1a597d9 (diff)
Set JOBS=1 for onion hosts
Diffstat (limited to 'tmap')
-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