Skip to content

Instantly share code, notes, and snippets.

@powerexploit
Last active March 11, 2021 05:35
Show Gist options
  • Save powerexploit/1540b3e81bf5284c7a72971ddc4f0ddb to your computer and use it in GitHub Desktop.
Save powerexploit/1540b3e81bf5284c7a72971ddc4f0ddb to your computer and use it in GitHub Desktop.
Onion address routing script
import requests
import argparse
from colorama import Fore
def oni(address):
proxies = {
'http': 'socks5h://127.0.0.1:9050',
'https': 'socks5h://127.0.0.1:9050'
}
r = requests.get("http://%s" %(address), proxies=proxies).text
with open('Onion_site.html', 'w') as f:
f.write(r)
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--address',help='onion address')
args = parser.parse_args()
print(Fore.RED + '''
)
( /(
)\()) (
((_)\ ( )\ ( ( (
((_) )\ |(_) )\ )\ ) )\
/ _ \ _(_/((_)((_)_(_/( ((_)
| (_) | ' \)) / _ \ ' \)) _ \
\___/|_||_||_\___/_||_|\___/
> I am BACK for good cause, aka Powerexploit
''')
if args.address:
print(Fore.BLUE + "[+] Saving onion site html page in Onion_site.html file.....")
oni(args.address)
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment