Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import base64
- import requests
- b = base64.b32encode(bytes("aaaaaaaaaw", 'utf-8'))[:16].lower()
- proxies = {
- 'http': 'http://localhost:8118'
- }
- r = requests.get("http://jh32yv5zgayyyts3.onion/", proxies=proxies)
- r.content
- r.status_code
- //curl --proxy http://localhost:8118 http://jh32yv5zgayyyts3.onion/
- //Addresses in the .onion TLD are generally opaque, non-mnemonic, 16-character alpha-semi-numeric hashes which are automatically generated based on a public key when a hidden service is configured. These 16-character hashes can be made up of any letter of the alphabet, and decimal digits from 2 to 7, thus representing an 80-bit number in base32.
- validhash = open("hashes.data")
- invalidhash = open("invalidhashes.data")
- validhash.write("To write or not to write\nthat is the question!\n")
- validhash.close()
- hashchars = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','2','3','4','5','6','7']
- chartracker = {'1':0,'2':0,'3':0,'4':0,'5':0,'6':0,'7':0,'8':0,'9':0,'10':0,'11':0,'12':0,'13':0,'14':0,'15':0,'16':0}
- def buildHash(){
- //find what digit to change
- }
- def permute(xs, low=0):
- if low + 1 >= len(xs):
- yield xs
- else:
- for p in permute(xs, low + 1):
- yield p
- for i in range(low + 1, len(xs)):
- xs[low], xs[i] = xs[i], xs[low]
- for p in permute(xs, low + 1):
- yield p
- xs[low], xs[i] = xs[i], xs[low]
- for p in permute(hashchars):
- print(p)
Add Comment
Please, Sign In to add comment