This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
main.py
executable file
·212 lines (177 loc) · 7.4 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
from time import sleep
from modules.updater import check_update
from modules.variables import Checker, discord_name, discord_server
from modules.config import *
from modules.functions import *
from modules.start import starter,modules_list
import modules.tools.proxy_check as proxy_check
import modules.tools.proxy_scrape as proxy_scrape
import modules.tools.capture_remove as captureremover
import modules.tools.combo_edit as combo_edit
import modules.tools.domain_sort as domain_sort
import os
import tkinter.messagebox
if is_win():
import win32api
def home():
while 1:
change_title(f"Calani AIO | Home | {discord_name}")
clear()
ascii()
print(f""" [{cyan}Main Menu{reset}]
[{cyan}1{reset}] Modules
[{cyan}2{reset}] Tools
[{cyan}3{reset}] Settings
[{cyan}4{reset}] Info
[{cyan}X{reset}] Exit""")
option = input(f" [{cyan}>{reset}] ").lower()
match option:
case "1": modules()
case "2": tools()
case "3": settings()
case "4": info()
case "x": exit_program()
def info():
clear()
ascii()
print(f" [{cyan}Info{reset}]\n")
print(f""" [{cyan}>{reset}] Created By: {discord_name}
[{cyan}>{reset}] Discord Server: https://discord.gg/PEhWnFcuhq
[{cyan}>{reset}] Wanna Make A Donation?
BTC: bc1qt6gcll4hp7wwqaap7x3lwunf9srw4enuxxddzn
ETH: 0xd7F5C1AB4765Be15F738367905bF4E7Ea83eC9F7
LTC: LdsjBD8ACvqUinrgbJJvCcELs2AxN5NSpc
[{cyan}>{reset}] If you paid for this application, you were SCAMMED!
Press Enter To Go Back""",end="")
input()
def modules():
selected_modules = []
if Checker.api_key:
balance = get_solver_balance()
while 1:
change_title(f"Calani AIO | Modules | {discord_name}")
clear()
ascii()
print(f" [{cyan}Modules{reset}]\n")
disabled = []
for module in modules_list:
if module in selected_modules and module.split(' ')[0] in ['discord']:
if not Checker.api_key or not balance or 'Invalid' in balance:
selected_modules.remove(module)
disabled.append(module.split(' ')[0])
index = list(modules_list).index(module)+1
selected = f"{cyan}+{reset}" if module in selected_modules else " "
print(f" [{selected}] [{cyan}{index}{reset}] {module.title()}")
print(f"""
[{cyan}>{reset}] Use CTRL+F To Search For A Module
[{cyan}>{reset}] Choose A Number To Select/Deselect A Module
[{cyan}>{reset}] Seperate Numbers With ',' To Select Multiple Modules Faster
[{cyan}>{reset}] Selected Modules: {len(selected_modules)}/{len(modules_list)}
[{cyan}A{reset}] Select/Deselect All
[{cyan}S{reset}] Start Checking
[{cyan}X{reset}] Back""")
if disabled:
disabled = "\n".join([module for module in disabled])
tkinter.messagebox.showinfo('Modules Disabled',f'The following modules were disabled because the api key was invalid or the solver setting was disabled.\n\n{disabled.title()}')
option = input(f" [{cyan}>{reset}] ").lower()
if option.isdigit():
if int(option) <= len(modules_list) and int(option):
module = list(modules_list)[int(option)-1]
selected_modules.append(module) if module not in selected_modules else selected_modules.remove(module)
elif "," in option:
for module in option.split(","):
if module.isdigit() and int(module) <= len(modules_list) and int(module):
module = list(modules_list)[int(module)-1]
selected_modules.append(module) if module not in selected_modules else selected_modules.remove(module)
match option:
case "s":
if not selected_modules:
print(f" [{cyan}>{reset}] Must select at least 1 module!")
sleep(1)
continue
starter(selected_modules)
selected_modules.clear()
case "a":
if selected_modules:
selected_modules.clear()
continue
for module in modules_list:
if module not in selected_modules: selected_modules.append(module)
case "x": return
def settings():
while 1:
load_config()
change_title(f"Calani AIO | Settings | {discord_name}")
clear()
ascii()
if Checker.api_key:
print(f' [{cyan}Getting API Key Balance{reset}]')
status = get_solver_balance()
clear()
ascii()
else:
status = f'{red}Disabled{reset}'
print(f""" [{cyan}Settings{reset}]
[{cyan}1{reset}] Proxy Type: {Checker.proxy_type.title()}
[{cyan}2{reset}] Proxy Timeout: {Checker.timeout}s
[{cyan}3{reset}] Print Mode: {"CUI" if Checker.cui else "LOG"}
[{cyan}4{reset}] Retries: {Checker.retries}
[{cyan}5{reset}] Threads: {Checker.threads}
[{cyan}6{reset}] Solver Service: {Checker.solver_serice.title()}
[{cyan}7{reset}] Solver API Key: {Checker.api_key if Checker.api_key else None} | Status: {status}
[{cyan}8{reset}] Discord Webhook: {Checker.discord_webhook.replace("https://discord.com/api/webhooks","...") if 'https://discord.com/api/webhooks/' in Checker.discord_webhook else None}
[{cyan}ENTER{reset}] Reload Config
[{cyan}O{reset}] Open Config File
[{cyan}X{reset}] Back""")
option = input(f" [{cyan}>{reset}] ").lower()
match option:
case "1": change("proxy_type")
case "2": change("proxy_timeout")
case "3": change("print")
case "4": change("retries")
case "5": change("threads")
case "6": change("solver_service")
case "7": change("api_key")
case "8": change("discord_webhook")
case "o": os.startfile(os.path.join(os.getcwd(),'Data/config.json'))
case "x": return
def tools():
while 1:
load_config()
change_title(f"Calani AIO | Tools | {discord_name}")
clear()
ascii()
print(f""" [{cyan}Tools{reset}]
[{cyan}1{reset}] Proxy Checker
[{cyan}2{reset}] Proxy Scraper
[{cyan}3{reset}] Capture Remover
[{cyan}4{reset}] Combo Editor
[{cyan}5{reset}] Domain Sorter
[{cyan}X{reset}] Back""")
option = input(f" [{cyan}>{reset}] ").lower()
match option:
case "1": proxy_check.start()
case "2": proxy_scrape.start()
case "3": captureremover.start()
case "4": combo_edit.start()
case "5": domain_sort.start()
case "x": return
if __name__ == "__main__":
if is_win():
win32api.SetConsoleCtrlHandler(exit_program, True)
load_config()
clear()
ascii()
set_title('Info')
input(f""" [{cyan}Creator Info{reset}]
[{cyan}Discord{reset}] {discord_name}
[{cyan}Cracked.io{reset}] MickeyYe
[{cyan}Github{reset}] Mickey758
[{cyan}Calani AIO Download Page{reset}] https://calani.mickey-ye.lol
[{cyan}Calani AIO Discord Server{reset}] {discord_server}
Feel Free To Report Bugs & Request Modules
[{cyan}Continue{reset}] Enter""")
clear()
ascii()
check_update()
home()