From 27ea19261bfd34d3dba90e87070a364e35a371d0 Mon Sep 17 00:00:00 2001 From: exploits <74730206+exploits@users.noreply.github.com> Date: Wed, 1 Dec 2021 10:15:02 +0000 Subject: [PATCH] Update main.py --- main.py | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index 01bddc5..1be9453 100644 --- a/main.py +++ b/main.py @@ -1,12 +1,15 @@ import requests, os from colorama import Fore, init -def pse(): - os.system('pause') -pse() +import random +import string + +source = string.ascii_letters + string.digits + init() -username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}') -email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}') -password = input(f'{Fore.LIGHTMAGENTA_EX}Password: {Fore.RESET}') + +username = ''.join((random.choice(source) for i in range(12))) +email = (f'{username}') + "@" + "gmail.com" +password = ''.join((random.choice(source) for i in range(16))) resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={ "birth_day": "1", @@ -40,13 +43,15 @@ resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", }) if "login_token" in resp.text: - print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTMAGENTA_EX}{username}:{Fore.LIGHTMAGENTA_EX}{password}\nResponse: {resp.text}') - pse() + with open('logins.txt', 'a') as f: + f.write(f'{email}:{username}:{password}') + f.write('\n') + print(f'{Fore.LIGHTGREEN_EX}Account Created\n ') elif "That email is already" or "Invalid Email" in resp.text: print(f'{Fore.LIGHTRED_EX}You got an error! Please try using a different email\nResponse: {resp.text}') - pse() + exit() else: print(f'{Fore.LIGHTRED_EX}You got an error! Try with a different username and/or disable your proxy/VPN. If that doesn\'t work, please open issue on GitHub \nResponse: {resp.text} \n {resp.status_code}') - pse() + exit()