From 30eb7bcd6d5591e0811a79a7952bdb86c75e11a5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Mar 2020 14:51:30 +0000 Subject: [PATCH] onion on http --- epicyon.py | 1 + utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/epicyon.py b/epicyon.py index 24f65c4b..177974c5 100644 --- a/epicyon.py +++ b/epicyon.py @@ -968,6 +968,7 @@ if args.actor: if args.http or domain.endswith('.onion'): httpPrefix='http' port=80 + useTor=True else: httpPrefix='https' port=443 diff --git a/utils.py b/utils.py index 1ee9cae3..ac24d21e 100644 --- a/utils.py +++ b/utils.py @@ -67,7 +67,7 @@ def loadJsonOnionify(filename: str,domain: str,onionDomain: str,delaySec=2) -> { with open(filename, 'r') as fp: data=fp.read() if data: - data=data.replace(domain,onionDomain) + data=data.replace(domain,onionDomain).replace('https:','http:') jsonObject=json.loads(data) break except: