This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
main.py
260 lines (220 loc) · 9.26 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# -------------------------------------------------------------------------------- SETUP & IMPORTS -------------------------------------------------------------------------------- #
import random
import threading
import time
from colorama import Fore, Style, init
from bonzay_pkg.reusable import loadProxies, logMessage, readFile
from bonzay_pkg.solebox import SoleboxGen
init(autoreset=True)
print_lock = threading.Lock()
print("\n" * 50)
print(
Fore.YELLOW
+ r'''
____ _ _ _____ _
/ ___| ___ | | ___| |__ _____ __ |_ _|__ ___ | |
\___ \ / _ \| |/ _ \ '_ \ / _ \ \/ / | |/ _ \ / _ \| |
___) | (_) | | __/ |_) | (_) > < | | (_) | (_) | |
|____/ \___/|_|\___|_.__/ \___/_/\_\ |_|\___/ \___/|_|'''
)
print('\n')
print(
r"""--------------------------------------------------------
· https://github.com/rtunazzz/Solebox-Tool
· developed by: rtuna#4321 | @rtunazzz
· for personal use only
--------------------------------------------------------"""
)
# -------------------------------------------------------------------------------- FUNCTIONS -------------------------------------------------------------------------------- #
print_lock = threading.Lock()
PROXY_LIST = None
SUCCESS_COUNT = 0
def initialize_gen():
if not PROXY_LIST:
logMessage(
"ERROR",
"You did not load proxies. Put your proxies into the proxies.txt file before running.",
)
exit()
return SoleboxGen(PROXY_LIST)
def SoleboxGenerateAccount():
global SUCCESS_COUNT
gen = initialize_gen()
create_status = gen.generateAccount(print_lock)
if create_status:
s = gen.updateShippingAddress(print_lock, new_account=True)
if s:
SUCCESS_COUNT += 1
def SoleboxGenerateAccountNoShipping():
global SUCCESS_COUNT
gen = initialize_gen()
create_status = gen.generateAccount(print_lock, no_shipping=True)
if create_status:
SUCCESS_COUNT += 1
def SoleboxCheckAccount(email, passwd):
gen = initialize_gen()
gen.checkAccount(print_lock, email, passwd)
def SoleboxCheckShippingAddress(email, passwd):
gen = initialize_gen()
gen.checkShippingAddress(print_lock, email=email, passwd=passwd)
def SoleboxUpdateShippingExistingAccount(email, passwd):
gen = initialize_gen()
gen.updateShippingAddress(print_lock, new_account=False, email=email, passwd=passwd)
def SoleboxCheckOrder(email, passwd):
gen = initialize_gen()
gen.checkOrder(email, passwd, print_lock)
def start():
print(Style.BRIGHT + Fore.CYAN + "Welcome to the Solebox Tool™!")
print(Fore.MAGENTA + "Please select an option:")
print(
Fore.LIGHTYELLOW_EX
+ "[1] - Generate Solebox accounts (with a shipping address)"
)
print(
Fore.LIGHTYELLOW_EX
+ "[2] - Generate Solebox accounts (with "
+ Style.BRIGHT
+ Fore.LIGHTYELLOW_EX
+ "NO shipping address"
+ Style.NORMAL
+ Fore.LIGHTYELLOW_EX
+ ")"
)
print(Fore.LIGHTYELLOW_EX + "[3] - Check Solebox accounts' shipping addresses")
print(Fore.LIGHTYELLOW_EX + "[4] - Check valid Solebox accounts")
print(Fore.LIGHTYELLOW_EX + "[5] - Check Solebox orders")
print("--------------------------------------------------------")
# ----- Get input (which option) ----- #
while 1:
option = input()
try:
option = int(option)
if type(option) is int and option in range(1, 6):
break
else:
print(
f"{option} is not a valid option. Try again with a number from 1 to 5:"
)
except:
print("Not an integer. Try again:")
# ---------------------------------------- [1] - Solebox Account Generator (with a shipping address) ---------------------------------------- #
if option == 1:
# print("\n"*100)
print(Style.BRIGHT + Fore.CYAN + "SOLEBOX ACCOUNT GENERATOR")
# ----- Get input (how many accs to generate) ----- #
how_many = None
while 1:
try:
how_many = int(input("How many accounts would you like to create?\n"))
except ValueError:
print("That is not an integer. Try again...")
if type(how_many) == int:
break
print(Style.BRIGHT + "Starting to generate Solebox accounts...")
threads = []
for _ in range(how_many):
t = threading.Thread(target=SoleboxGenerateAccount)
threads.append(t)
t.start()
time.sleep(random.randint(3, 6))
for t in threads:
t.join()
print("\nFinished generating Solebox accounts.")
print(Style.BRIGHT + f"\nGenerated {SUCCESS_COUNT}/{how_many} accounts!")
# ---------------------------------------- [1] - Solebox Account Generator (with NO shipping address) ---------------------------------------- #
if option == 2:
# print("\n"*100)
print(Style.BRIGHT + Fore.CYAN + "SOLEBOX ACCOUNT GENERATOR")
# ----- Get input (how many accs to generate) ----- #
how_many = None
while 1:
try:
how_many = int(input("How many accounts would you like to create?\n"))
except ValueError:
print("That is not an integer. Try again...")
if type(how_many) == int:
break
print(Style.BRIGHT + "Starting to generate Solebox accounts...")
threads = []
for _ in range(how_many):
t = threading.Thread(target=SoleboxGenerateAccountNoShipping)
threads.append(t)
t.start()
time.sleep(random.randint(3, 6))
for t in threads:
t.join()
print("\nFinished generating Solebox accounts.")
print(Style.BRIGHT + f"\nGenerated {SUCCESS_COUNT}/{how_many} accounts!")
# ---------------------------------------- [3] - Solebox Shipping Address Checker ---------------------------------------- #
elif option == 3:
print(Style.BRIGHT + Fore.CYAN + "SOLEBOX SHIPPING ADDRESS CHECKER")
# ----- Load all accounts with shipping ----- #
print("Loading accounts from solebox-valid.txt")
f = readFile("./accounts/solebox-valid.txt")
accounts = f.split("\n")
print(Style.BRIGHT + "Starting to check Solebox account's shipping addresses.")
# ----- Create one thread for each account ----- #
threads = []
for account in accounts:
if account.strip() == "":
continue
username, password = account.split(":")
t = threading.Thread(
target=SoleboxCheckShippingAddress, args=(username, password)
)
threads.append(t)
t.start()
time.sleep(random.randint(3, 6))
for t in threads:
t.join()
print(
Style.BRIGHT + "\nFinished checking Solebox account's shipping addresses."
)
# ---------------------------------------- [4] - Solebox Valid Account Checker ---------------------------------------- #
elif option == 4:
print(Style.BRIGHT + Fore.CYAN + "SOLEBOX VALID ACCOUNT CHECKER")
# ----- Load all accounts with shipping ----- #
print("Loading accounts from ./accounts/solebox-valid.txt")
f = readFile("./accounts/solebox-valid.txt")
accounts = f.split("\n")
print(Style.BRIGHT + "Starting to check valid Solebox accounts...")
# ----- Create one thread for each account ----- #
threads = []
for account in accounts:
if account.strip() == "":
continue
# check if there's no newline in password
username, password = account.split(":")
t = threading.Thread(target=SoleboxCheckAccount, args=(username, password))
threads.append(t)
t.start()
time.sleep(random.randint(3, 6))
for t in threads:
t.join()
print(Style.BRIGHT + "\nFinished checking Solebox accounts.")
elif option == 5:
print(Style.BRIGHT + Fore.CYAN + "SOLEBOX ORDER CHECKER")
# ----- Load all accounts with shipping ----- #
print("Loading accounts from ./accounts/accounts-orders.txt")
f = readFile("./accounts/accounts-orders.txt")
accounts = f.split("\n")
print(Style.BRIGHT + "Starting to check Solebox orders...")
# ----- Create one thread for each account ----- #
threads = []
for account in accounts:
if account.strip() == "":
continue
# check if there's no newline in password
email, password = account.split(":")
t = threading.Thread(target=SoleboxCheckOrder, args=(email, password))
threads.append(t)
t.start()
time.sleep(random.randint(3, 6))
for t in threads:
t.join()
print(Style.BRIGHT + "\nFinished checking Solebox accounts.")
# -------------------------------------------------------------------------------- RUNNING -------------------------------------------------------------------------------- #
if __name__ == "__main__":
PROXY_LIST = loadProxies("./proxies.txt")
print("--------------------------------------------------------")
start()