-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
166 lines (142 loc) · 5.88 KB
/
main.py
File metadata and controls
166 lines (142 loc) · 5.88 KB
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
from colorama import init
from time import sleep
from modules.variables import Checker
import keyboard
from modules.config import *
from modules.functions import *
from modules.start import starter,modules_list
import modules.tools.proxychecker as proxychecker
import modules.tools.proxyscraper as proxyscraper
import modules.tools.capture_remove as captureremover
import modules.tools.comboeditor as comboeditor
import modules.tools.domainsorter as domainsorter
def home():
while 1:
change_title("Calani AIO | Home | MickeyYe#9423")
clear()
ascii()
print("\n\n")
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()
if option == "1": modules()
elif option == "2": tools()
elif option == "3": settings()
elif option == "4": info()
elif option == "x": return
def info():
clear()
ascii()
print("\n\n")
print(f" [{cyan}Info{reset}]\n")
print(f""" [{cyan}>{reset}] Created By: Uta#1337
[{pink}>{reset}] Wanna Make A Donation?
BTC: bc1qt6gcll4hp7wwqaap7x3lwunf9srw4enuxxddzn
ETH: 0xd7F5C1AB4765Be15F738367905bF4E7Ea83eC9F7
LTC: LdsjBD8ACvqUinrgbJJvCcELs2AxN5NSpc
[{cyan}>{reset}] If you payed for this application, you were SCAMMED!
Press Enter To Go Back""",end="")
input()
def modules():
selected_modules = []
while 1:
change_title("Calani AIO | Modules | MickeyYe#9423")
clear()
ascii()
print("\n\n")
print(f" [{cyan}Modules{reset}]\n")
for module in modules_list:
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}] 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""")
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:
selects = option.split(",")
for option in selects:
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 option == "s":
if selected_modules:
starter(selected_modules)
selected_modules.clear()
else:
print(f" [{cyan}>{reset}] Must select at least 1 module!")
sleep(1)
elif option == "a":
if len(selected_modules) == len(modules_list): selected_modules.clear()
else:
for module in modules_list:
if module not in selected_modules: selected_modules.append(module)
elif option == "x": return
def settings():
while 1:
load_config()
change_title("Calani AIO | Settings | MickeyYe#9423")
clear()
ascii()
print("\n\n")
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}X{reset}] Back""")
option = input(f" [{cyan}>{reset}] ").lower()
if option == "1": change("proxy_type")
elif option == "2": change("proxy_timeout")
elif option == "3": change("print")
elif option == "4": change("retries")
elif option == "5": change("threads")
elif option == "x": return
def tools():
while 1:
load_config()
change_title("Calani AIO | Tools | MickeyYe#9423")
clear()
ascii()
print("\n\n")
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()
if option == "1": proxychecker.start()
elif option == "2": change_title("Calani AIO | Proxy Scraper | MickeyYe#9423");proxyscraper.start()
elif option == "3": change_title("Calani AIO | Capture Remover | MickeyYe#9423");captureremover.start()
elif option == "4": change_title("Calani AIO | Combo Editor | MickeyYe#9423");comboeditor.start()
elif option == "5": change_title("Calani AIO | Domain Sorter | MickeyYe#9423");domainsorter.start()
elif option == "x": return
if __name__ == "__main__":
init(autoreset=True)
load_config()
keyboard.add_hotkey("s",save_lines)
clear()
ascii()
print("\n\n")
if not check_updates(): home()
else:
print(f" [{red}>{reset}] Your version is outdated!")
print(f" [{cyan}>{reset}] Find the latest version of Calani AIO here: https://github.com/Mickey758/Calani-AIO/releases")
input(f" [{cyan}>{reset}] Press enter to ignore")
home()