Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
4.0 kB
8
Indexable
Never
import requests
import names
import random
import time
import secrets
import re
from eth_account import Account

fname = names.get_first_name()
lname = names.get_last_name()
username = fname + lname 
fixed_digits = 2
angka = random.randrange(11, 99, fixed_digits)
username = username.lower() + str(angka)
priv = secrets.token_hex(32)
private_key = "0x" + priv
acct = Account.from_key(private_key)
wallet = acct.address

email = input('Email : ')
headers = {
    'Host': 'byrjycocvluocdgliyvg.supabase.co',
    'authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJ5cmp5Y29jdmx1b2NkZ2xpeXZnIiwicm9sZSI6ImFub24iLCJpYXQiOjE2Njc0MDY3NzksImV4cCI6MTk4Mjk4Mjc3OX0.SLAgTxtgawJoxTXXtxfI85Q3Xz-ecBI9XkjZyKvl794',
    'apikey': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJ5cmp5Y29jdmx1b2NkZ2xpeXZnIiwicm9sZSI6ImFub24iLCJpYXQiOjE2Njc0MDY3NzksImV4cCI6MTk4Mjk4Mjc3OX0.SLAgTxtgawJoxTXXtxfI85Q3Xz-ecBI9XkjZyKvl794',
    'x-client-info': 'supabase-js/2.0.5',
    'content-type': 'application/json;charset=UTF-8',
    'user-agent': 'okhttp/4.9.2',
}

data = {
  "email": email,
  "data": {},
  "create_user": True,
  "gotrue_meta_security": {}
}

pe = requests.post('https://byrjycocvluocdgliyvg.supabase.co/auth/v1/otp', headers=headers, json=data)
print(pe.text)

otp = input('OTP : ')
headers = {
    'Host': 'byrjycocvluocdgliyvg.supabase.co',
    'authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJ5cmp5Y29jdmx1b2NkZ2xpeXZnIiwicm9sZSI6ImFub24iLCJpYXQiOjE2Njc0MDY3NzksImV4cCI6MTk4Mjk4Mjc3OX0.SLAgTxtgawJoxTXXtxfI85Q3Xz-ecBI9XkjZyKvl794',
    'apikey': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJ5cmp5Y29jdmx1b2NkZ2xpeXZnIiwicm9sZSI6ImFub24iLCJpYXQiOjE2Njc0MDY3NzksImV4cCI6MTk4Mjk4Mjc3OX0.SLAgTxtgawJoxTXXtxfI85Q3Xz-ecBI9XkjZyKvl794',
    'x-client-info': 'supabase-js/2.0.5',
    'content-type': 'application/json;charset=UTF-8',
    'user-agent': 'okhttp/4.9.2',
}

data = {
  "email": email,
  "token": otp,
  "type": "signup",
  "gotrue_meta_security": {}
}

co = requests.post('https://byrjycocvluocdgliyvg.supabase.co/auth/v1/verify', headers=headers, json=data).json()
token = co['access_token']
refresh = co['refresh_token']
reff = input('Reff : ')
cookies = {
    'sb-access-token': token,
    'sb-refresh-token': refresh,
}

headers = {
    'Host': 'byrjycocvluocdgliyvg.supabase.co',
    'x-client-info': 'supabase-js/2.0.5',
    'content-profile': 'public',
    'apikey': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJ5cmp5Y29jdmx1b2NkZ2xpeXZnIiwicm9sZSI6ImFub24iLCJpYXQiOjE2Njc0MDY3NzksImV4cCI6MTk4Mjk4Mjc3OX0.SLAgTxtgawJoxTXXtxfI85Q3Xz-ecBI9XkjZyKvl794',
    'authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhdXRoZW50aWNhdGVkIiwiZXhwIjoxNjcxMTEwMzIxLCJzdWIiOiI1MGZkZDAxYy00YmIyLTQ3NDktOTJiZC01YjY4YTY4NjJmM2UiLCJlbWFpbCI6InBhbmppZ2VyMDEyQGdtYWlsLmNvbSIsInBob25lIjoiIiwiYXBwX21ldGFkYXRhIjp7InByb3ZpZGVyIjoiZW1haWwiLCJwcm92aWRlcnMiOlsiZW1haWwiXX0sInVzZXJfbWV0YWRhdGEiOnt9LCJyb2xlIjoiYXV0aGVudGljYXRlZCIsImFhbCI6ImFhbDEiLCJhbXIiOlt7Im1ldGhvZCI6Im90cCIsInRpbWVzdGFtcCI6MTY3MDUwNTUyMX1dLCJzZXNzaW9uX2lkIjoiODFjNTBlOTgtZDkyNC00YmU1LTkxYmEtNWQ5ZjA0Nzg0MTc2In0.xBrzE_RzE0HH0-YWC-Sjna-Lsxq1w6_9QeqvEzS-GGo',
    'content-type': 'application/json',
    'user-agent': 'okhttp/4.9.2',
}

data = {
  "code": reff,
}

be = requests.post('https://byrjycocvluocdgliyvg.supabase.co/rest/v1/rpc/set_referred_by', cookies=cookies, headers=headers, json=data)
print(be.text)

data1 = {
  "username": username,
}
ce = requests.post('https://byrjycocvluocdgliyvg.supabase.co/rest/v1/rpc/set_username', cookies=cookies, headers=headers, json=data1)
print(ce.text)

data2 = {
  "eth_address": wallet,
}
de = requests.post('https://byrjycocvluocdgliyvg.supabase.co/rest/v1/rpc/set_wallet', cookies=cookies, headers=headers, json=data2)
print(de.text)
file = open('primal.txt', 'a')
file.write(email + '|' + wallet + '|' + private_key + '\n')
file.close()