-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.py
84 lines (72 loc) · 3.79 KB
/
app.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
'''
Functions & Tools by Zian25
Program by Ahosall (Feh's)
'''
# Imports
import sys
import random
from time import sleep as wait
from src.utils import functions, languages, colorFunc, configs
from src.tools import infoGathering, DoS, phishing, exploit, bruteForce, panels
# Vars
# Main Function
def main():
functions.banner()
tips = languages.lang()['tips']
items = [
'{} ╔═════════════{} MENU {}'.format('_RED_', '_WHITE_', '_RESET_'),
'{} ║ {}'.format('_RED_', '_RESET_'),
'{} ╠══════{} {} {}'.format('_RED_', '_WHITE_', languages.lang()['mainMenu']['tools']['subtitle'], '_RESET_'),
'{} ║ {}'.format('_RED_', '_RESET_'),
'{} ╠══{}[1]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['tools']['value'][0], '_RESET_'),
'{} ╠══{}[2]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['tools']['value'][1], '_RESET_'),
'{} ╠══{}[3]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['tools']['value'][2], '_RESET_'),
'{} ╠══{}[4]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['tools']['value'][3], '_RESET_'),
'{} ╠══{}[5]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['tools']['value'][4], '_RESET_'),
'{} ║ {}'.format('_RED_', '_RESET_'),
'{} ╠══════{} {} {}'.format('_RED_', '_WHITE_', languages.lang()['mainMenu']['others']['subtitle'], '_RESET_'),
'{} ║ {}'.format('_RED_', '_RESET_'),
'{} ╠══{}[6]{}: {} {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['others']['value'][0], '_YELLOW_DEV', '_RESET_'),
'{} ╠══{}[7]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['others']['value'][1], '_RESET_'),
'{} ╠══{}[8]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['others']['value'][2], '_RESET_'),
'{} ╠══{}[9]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['others']['value'][3], '_RESET_'),
'{} ╚══{}[0]{}: {} {}'.format('_RED_', '_BLUE_', '_WHITE_', languages.lang()['mainMenu']['others']['value'][4], '_RESET_'),
'',
'{} [{}{}{}]{}: {} {}\n'.format('_CYAN_', '_GREEN_', tips['title'], '_CYAN_', '_WHITE_', random.choice(tips['mainMenu']), '_RESET_'),
]
for item in items:
print(colorFunc.colorTreatment(item))
wait(0.01)
choice = input(' ' + languages.lang()['input'])
if choice.replace(' ', '') != '' and choice.isnumeric():
choice = int(choice)
functions.banner()
if choice == 0: return 'exit'
elif choice == 1: return infoGathering.menu()
elif choice == 2: return DoS.menu()
elif choice == 3: return phishing.menu()
elif choice == 4: return exploit.menu()
elif choice == 5: return bruteForce.menu()
elif choice == 6: return panels.menu()
elif choice == 7: return configs.menu()
elif choice == 8: return functions.checkUpdates()
elif choice == 9: return functions.credit()
else: return 'error'
else: return 'error'
# --- Check Lang
functions.checkLang()
# Init
while True:
try:
if __name__ == '__main__':
func = main()
if func == 'error':
functions.error(' _RED_[Err]_RESET_: ' + languages.lang()['errors']['errChoice'])
elif func == 'exit':
functions.banner()
print(' ', languages.lang()['exit'])
sys.exit(1)
except KeyboardInterrupt:
functions.banner()
print(' ', languages.lang()['exit'])
sys.exit(1)