|
5 | 5 | import string |
6 | 6 |
|
7 | 7 | import os |
8 | | -import sys |
9 | 8 | import time |
| 9 | + |
10 | 10 | from threading import Thread, active_count |
11 | 11 |
|
12 | 12 |
|
13 | | -script_version = "1.0.0" |
| 13 | +script_version = "1.1" |
14 | 14 | script_title = "Spotify Account Creator By ALIILAPRO" |
15 | 15 | script_info = f''' |
16 | 16 | ..: {script_title} :.. |
|
28 | 28 |
|
29 | 29 | class Main: |
30 | 30 |
|
31 | | - def clear(self, text): |
32 | | - if os.name == 'posix': |
33 | | - os.system('clear') |
34 | | - print(text) |
35 | | - elif os.name in ('ce', 'nt', 'dos'): |
36 | | - os.system('cls') |
37 | | - print(text) |
38 | | - else: |
39 | | - print("\n") * 120 |
40 | | - |
41 | | - def settitle(self, title_name:str): |
42 | | - os.system("title {0}".format(title_name)) |
43 | | - |
44 | | - def readfile(self, filename, method): |
45 | | - with open(filename,method) as f: |
46 | | - content = [line.strip('\n') for line in f] |
47 | | - return content |
48 | | - |
49 | | - def countfile(self, filename, method): |
50 | | - file = open(filename,method) |
51 | | - Counter = 0 |
52 | | - Content = file.read() |
53 | | - CoList = Content.split("\n") |
54 | | - for i in CoList: |
55 | | - if i: |
56 | | - Counter += 1 |
57 | | - |
58 | | - return Counter |
59 | | - |
60 | | - |
61 | | - def getrandomproxy(self): |
62 | | - proxies_file = self.readfile('proxy.txt','r') |
63 | | - proxies = { |
64 | | - "http":"http://{0}".format(random.choice(proxies_file)), |
65 | | - "https":"https://{0}".format(random.choice(proxies_file)) |
66 | | - } |
67 | | - |
68 | | - return proxies |
69 | | - |
70 | | - |
71 | | - def __init__(self): |
72 | | - self.settitle(script_title) |
73 | | - self.clear(script_info) |
74 | | - self.email = input('[#] Enter Email: ') |
75 | | - self.password = input('[#] Enter Password: ') |
76 | | - self.birth_year = int(input('[#] Enter the birth year (only year): ')) |
77 | | - self.birth_month = int(input('[#] Enter the birth month (1 - 12): ')) |
78 | | - self.birth_day = int(input('[#] Enter the birth day (1 - 28): ')) |
79 | | - self.gender = input('[#] Enter the gender (male or female): ') |
80 | | - self.threads = self.countfile('proxy.txt','r') |
81 | | - |
82 | | - def gencredentailsmethod(self): |
83 | | - credentails = {} |
84 | | - credentails['gender'] = self.gender |
85 | | - credentails['birth_year'] = self.birth_year |
86 | | - credentails['birth_month'] = self.birth_month |
87 | | - credentails['birth_day'] = self.birth_day |
88 | | - credentails['password'] = self.password |
89 | | - username = string.ascii_letters + string.digits |
90 | | - username = ''.join(random.choice(username) for i in range(random.randint(7,11))) |
91 | | - credentails['username'] = username |
92 | | - credentails['email'] = self.email |
93 | | - |
94 | | - return credentails |
95 | | - |
96 | | - def creator(self): |
97 | | - try: |
98 | | - |
99 | | - headers = { |
100 | | - 'User-agent': 'S4A/2.0.15 (com.spotify.s4a; build:201500080; iOS 13.4.0) Alamofire/4.9.0', |
101 | | - 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', |
102 | | - 'Accept': 'application/json, text/plain;q=0.2, */*;q=0.1', |
103 | | - 'App-Platform': 'IOS', |
104 | | - 'Spotify-App': 'S4A', |
105 | | - 'Accept-Language': 'en-TZ;q=1.0', |
106 | | - 'Accept-Encoding': 'gzip;q=1.0, compress;q=0.5', |
107 | | - 'Spotify-App-Version': '2.0.15' |
108 | | - } |
109 | | - |
110 | | - |
111 | | - url = 'https://spclient.wg.spotify.com/signup/public/v1/account' |
112 | | - credentails = self.gencredentailsmethod() |
113 | | - data = 'creation_point=lite_7e7cf598605d47caba394c628e2735a2&password_repeat={0}&platform=Android-ARM&iagree=true&password={1}&gender={2}&key=a2d4b979dc624757b4fb47de483f3505&birth_day={3}&birth_month={4}&email={5}&birth_year={6}'.format(credentails['password'],credentails['password'],credentails['gender'],credentails['birth_day'],credentails['birth_month'],credentails['email'],credentails['birth_year']) |
114 | | - req = requests.post(url=url, data=data, headers=headers, proxies=self.getrandomproxy(), timeout=5) |
115 | | - json_data = json.loads(req.text) |
116 | | - |
117 | | - |
118 | | - if 'status' in json_data: |
119 | | - if json_data['status'] == 1: |
120 | | - username = json_data['username'] |
121 | | - if username != '': |
122 | | - self.clear(script_info) |
123 | | - print('[>] ACCOUNT CREATED SUCCESSFULLY\n[-] Email:{0}\n[-] Password:{1}\n[-] Username:{2}\n[-] Gender:{3}\n[-] Birth year:{4}\n[-] Birth month:{5}\n[-] Birth day:{6}\n'.format(credentails['email'],credentails['password'],credentails['username'],credentails['gender'],credentails['birth_year'],credentails['birth_month'],credentails['birth_day'])) |
124 | | - with open('reg.txt','a') as f: |
125 | | - f.write('[INFO ACCOUNT]\nEmail:{0}\nPassword:{1}\nUsername:{2}\nGender:{3}\nBirth year:{4}\nBirth month:{5}\nBirth day:{6}\n___________________\n\n'.format(credentails['email'],credentails['password'],credentails['username'],credentails['gender'],credentails['birth_year'],credentails['birth_month'],credentails['birth_day'])) |
126 | | - time.sleep(self.threads) |
127 | | - else: |
128 | | - self.creator() |
129 | | - else: |
130 | | - self.creator() |
131 | | - else: |
132 | | - self.creator() |
133 | | - except: |
134 | | - self.creator() |
135 | | - |
136 | | - |
137 | | - def start(self): |
138 | | - while True: |
139 | | - if active_count() <= self.threads: |
140 | | - Thread(target=self.creator).start() |
| 31 | + def clear(self, text): |
| 32 | + os.system('cls' if os.name == 'nt' else 'clear') |
| 33 | + print(text) |
| 34 | + |
| 35 | + def settitle(self, title_name:str): |
| 36 | + os.system("title {0}".format(title_name)) |
| 37 | + |
| 38 | + def readfile(self, filename, method): |
| 39 | + with open(filename,method) as f: |
| 40 | + content = [line.strip('\n') for line in f] |
| 41 | + return content |
| 42 | + |
| 43 | + def countfile(self, filename, method): |
| 44 | + file = open(filename,method) |
| 45 | + Counter = 0 |
| 46 | + Content = file.read() |
| 47 | + CoList = Content.split("\n") |
| 48 | + for i in CoList: |
| 49 | + if i: |
| 50 | + Counter += 1 |
| 51 | + |
| 52 | + return Counter |
| 53 | + |
| 54 | + def getproxy(self): |
| 55 | + r = requests.get('https://xcoder.fun/p.php?r=y') |
| 56 | + |
| 57 | + with open('proxy.txt','w') as fd: |
| 58 | + fd.write(r.text.replace('\n','')) |
| 59 | + |
| 60 | + def getrandomproxy(self): |
| 61 | + proxies_file = self.readfile('proxy.txt','r') |
| 62 | + proxies = { |
| 63 | + "http":"http://{0}".format(random.choice(proxies_file)), |
| 64 | + "https":"https://{0}".format(random.choice(proxies_file)) |
| 65 | + } |
| 66 | + |
| 67 | + return proxies |
| 68 | + |
| 69 | + def __init__(self): |
| 70 | + self.settitle(script_title) |
| 71 | + self.clear(script_info) |
| 72 | + self.getproxy() |
| 73 | + self.email = input('[#] Enter Email: ') |
| 74 | + self.password = input('[#] Enter Password: ') |
| 75 | + self.birth_year = int(input('[#] Enter the birth year (only year): ')) |
| 76 | + self.birth_month = int(input('[#] Enter the birth month (1 - 12): ')) |
| 77 | + self.birth_day = int(input('[#] Enter the birth day (1 - 28): ')) |
| 78 | + self.gender = input('[#] Enter the gender (male or female): ') |
| 79 | + self.threads = self.countfile('proxy.txt','r') |
| 80 | + |
| 81 | + def gencredentailsmethod(self): |
| 82 | + credentails = {} |
| 83 | + credentails['gender'] = self.gender |
| 84 | + credentails['birth_year'] = self.birth_year |
| 85 | + credentails['birth_month'] = self.birth_month |
| 86 | + credentails['birth_day'] = self.birth_day |
| 87 | + credentails['password'] = self.password |
| 88 | + username = string.ascii_letters + string.digits |
| 89 | + username = ''.join(random.choice(username) for i in range(random.randint(7,11))) |
| 90 | + credentails['username'] = username |
| 91 | + credentails['email'] = self.email |
| 92 | + |
| 93 | + return credentails |
| 94 | + |
| 95 | + def creator(self): |
| 96 | + try: |
| 97 | + |
| 98 | + headers = { |
| 99 | + 'User-agent': 'S4A/2.0.15 (com.spotify.s4a; build:201500080; iOS 13.4.0) Alamofire/4.9.0', |
| 100 | + 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', |
| 101 | + 'Accept': 'application/json, text/plain;q=0.2, */*;q=0.1', |
| 102 | + 'App-Platform': 'IOS', |
| 103 | + 'Spotify-App': 'S4A', |
| 104 | + 'Accept-Language': 'en-TZ;q=1.0', |
| 105 | + 'Accept-Encoding': 'gzip;q=1.0, compress;q=0.5', |
| 106 | + 'Spotify-App-Version': '2.0.15' |
| 107 | + } |
| 108 | + |
| 109 | + |
| 110 | + url = 'https://spclient.wg.spotify.com/signup/public/v1/account' |
| 111 | + credentails = self.gencredentailsmethod() |
| 112 | + data = 'creation_point=lite_7e7cf598605d47caba394c628e2735a2&password_repeat={0}&platform=Android-ARM&iagree=true&password={1}&gender={2}&key=a2d4b979dc624757b4fb47de483f3505&birth_day={3}&birth_month={4}&email={5}&birth_year={6}'.format(credentails['password'],credentails['password'],credentails['gender'],credentails['birth_day'],credentails['birth_month'],credentails['email'],credentails['birth_year']) |
| 113 | + req = requests.post(url=url, data=data, headers=headers, proxies=self.getrandomproxy(), timeout=5) |
| 114 | + json_data = json.loads(req.text) |
| 115 | + |
| 116 | + |
| 117 | + if 'status' in json_data: |
| 118 | + if json_data['status'] == 1: |
| 119 | + username = json_data['username'] |
| 120 | + if username != '': |
| 121 | + self.clear(script_info) |
| 122 | + print('[>] ACCOUNT CREATED SUCCESSFULLY\n[-] Email:{0}\n[-] Password:{1}\n[-] Username:{2}\n[-] Gender:{3}\n[-] Birth year:{4}\n[-] Birth month:{5}\n[-] Birth day:{6}\n'.format(credentails['email'],credentails['password'],credentails['username'],credentails['gender'],credentails['birth_year'],credentails['birth_month'],credentails['birth_day'])) |
| 123 | + with open('reg.txt','a') as f: |
| 124 | + f.write('[INFO ACCOUNT]\nEmail:{0}\nPassword:{1}\nUsername:{2}\nGender:{3}\nBirth year:{4}\nBirth month:{5}\nBirth day:{6}\n___________________\n\n'.format(credentails['email'],credentails['password'],credentails['username'],credentails['gender'],credentails['birth_year'],credentails['birth_month'],credentails['birth_day'])) |
| 125 | + time.sleep(self.threads) |
| 126 | + else: |
| 127 | + self.creator() |
| 128 | + else: |
| 129 | + self.creator() |
| 130 | + else: |
| 131 | + self.creator() |
| 132 | + except: |
| 133 | + self.creator() |
| 134 | + |
| 135 | + |
| 136 | + def start(self): |
| 137 | + while True: |
| 138 | + if active_count() <= self.threads: |
| 139 | + Thread(target=self.creator).start() |
141 | 140 |
|
142 | 141 |
|
143 | 142 | if __name__ == "__main__": |
144 | | - main = Main() |
145 | | - main.start() |
| 143 | + main = Main() |
| 144 | + main.start() |
0 commit comments