summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexej996 <aleksej@spidermail.tk>2018-10-28 00:49:37 +0200
committeralexej996 <aleksej@spidermail.tk>2018-10-28 00:49:37 +0200
commit3f78328c9b5fdc7b4151bb887ac73e1173ad7dbb (patch)
tree41cae67d14234943aa6c1ead0d666d70f69ab7f8
parentb895581919113880f3e08d59558e84432ff98250 (diff)
check if Tor is running
-rwxr-xr-xtmap7
1 files changed, 7 insertions, 0 deletions
diff --git a/tmap b/tmap
index 29bb971..ca1d40b 100755
--- a/tmap
+++ b/tmap
@@ -94,6 +94,13 @@ def main():
if args.clearnet:
CLEARNET=True
+ if CLEARNET == False:
+ if connScan("127.0.0.1", args.torPort, 3, True):
+ pass
+ else:
+ print("Tor is not running on port {}.".format(args.torPort))
+ exit()
+
## Scan each host in HOSTS list
for h in HOSTS:
if len(h.split("/")) == 2: