Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import json
- import uuid
- import os
- import time
- def ctoauth():
- if os.path.isfile('key.dat'):
- current_hwid = uuid.getnode()
- f = open('key.dat', 'r')
- auth = f.read()
- data = {
- "a": "auth",
- "k": str(auth),
- "hwid": str(current_hwid)
- }
- checkauth = requests.post('https://cracked.to/auth.php', data=data)
- with checkauth:
- json1 = json.loads(checkauth.text)
- if '"auth":true' in checkauth.text:
- print("Welcome back, " + json1["username"])
- time.sleep(2)
- else:
- print(checkauth.json()['error'].title())
- input()
- os._exit(0)
- else:
- authkey = str(input('Insert Cracked.to Auth Key: '))
- current_hwid = uuid.getnode()
- data = {
- "a": "auth",
- "k": str(authkey),
- "hwid": str(current_hwid)
- }
- checkauth = requests.post('https://cracked.to/auth.php', data=data)
- with checkauth:
- json2 = json.loads(checkauth.text)
- if '"auth":true' in checkauth.text:
- f = open('key.dat', 'w')
- f.write(authkey)
- f.close()
- print("Welcome: " + json2["username"])
- time.sleep(2)
- else:
- print(checkauth.json()['error'].title())
- input()
- os._exit(0)
- ctoauth()
Advertisement
Add Comment
Please, Sign In to add comment