mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-02 18:59:53 +00:00
onion on http
This commit is contained in:
1 parent
3c5b549db7
commit
30eb7bcd6d
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user