From 3f78328c9b5fdc7b4151bb887ac73e1173ad7dbb Mon Sep 17 00:00:00 2001 From: alexej996 Date: Sun, 28 Oct 2018 00:49:37 +0200 Subject: check if Tor is running --- tmap | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- cgit v1.2.3