PRO_GAMER_ROBLOX

AUTO ROTATING ROBLOX COOKIE GENERATOR

Jul 13th, 2021 (edited)
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.52 KB | None | 0 0
  1. import requests, threading, random, subprocess, string, time
  2.  
  3. proxies = []
  4.  
  5.  
  6. def rotate_proxies():
  7.     global proxies
  8.     while True:
  9.         proxi_ = ''
  10.         for chunk in requests.get('https://api.proxyscrape.com/v2/?request=getproxies&protocol=http&timeout=10000&country=all&ssl=all&anonymity=all').iter_content(chunk_size=5000):
  11.             if chunk:
  12.                 proxi_ += chunk.decode()
  13.         proxies +=  proxi_.splitlines()
  14.         time.sleep(1000)
  15.  
  16. def generate_username():
  17.     while True:
  18.         user = ''.join(random.choices(string.ascii_lowercase + string.ascii_uppercase + string.digits + '_', k=random.randint(4, 7)))
  19.         username = requests.get(f'https://auth.roblox.com/v1/usernames/validate?birthday=2006-09-21T07:00:00.000Z&context=Signup&username={user}')
  20.         if username.json()['message'] == "Username is valid":
  21.             return user
  22.  
  23. def generate_cookie():
  24.     try:
  25.         with requests.session() as session:
  26.             proxy = {
  27.                 'http':random.choice(proxies),
  28.                 'https':random.choice(proxies)
  29.             }
  30.             agents = ['Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36', 'Mozilla/5.0 (iPad; CPU OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12F69 Safari/600.1.4']
  31.             session.headers['user-agent'] = random.choice(agents)
  32.             session.headers['x-csrf-token'] = session.post(f"https://auth.roblox.com/v2/signup", proxies=proxy).headers['x-csrf-token']
  33.             gender = random.randint(1,3)
  34.             username = generate_username()
  35.             password = f''.join(random.choices(string.ascii_letters, k=10))
  36.             forum = {'birthday':'21 Oct 2006', 'captchaProvider':'', 'captchaToken':'', 'isTosAgreementBoxChecked':True, 'gender':gender, 'displayAvatarV2':False, 'displayContextV2':False, 'password':password, 'username':username}
  37.             create = session.post('https://auth.roblox.com/v2/signup', data=forum, proxies=proxy)
  38.             if create.status_code == 200:
  39.                 cookie = session.cookies['.ROBLOSECURITY']
  40.                 with open('generated_cookies.txt', 'a') as gen:
  41.                     gen.write(f'{username}:{password}:{cookie}\n')
  42.                 print(f'- Generated Cookie | {create.status_code} | {username} | {proxy}')
  43.     except:
  44.         pass
  45.  
  46. threading.Thread(target=rotate_proxies,).start()
  47. time.sleep(3)
  48. while True:
  49.     threading.Thread(target=generate_cookie,).start()
Add Comment
Please, Sign In to add comment