-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodigo.py
241 lines (229 loc) · 11.4 KB
/
codigo.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
import menu
import platform
import webbrowser
import sys
import os
from colorama import Fore, init
init(autoreset=True)
def pentesting():
try:
print('''
[1] - Nmap
[2] - Nikto
[3] - UnicornScan
[4] - Wpscan
[5] - Wireshark
[6] - Ghost
[7] - Lazzy
[0] - menu inicial
''')
answer = input("Seleciona uma opção: ")
answers = [str(x) for x in range(12)]
while answer not in answers:
print(f"{Fore.RED}Seleciona uma opção valida")
answer = input()
####################################################################################################################
if answer == '1':
if platform.system() == 'Windows':
print(f"Sua Plataforma é: {platform.system()}, você deve instalar no site:\nLink: https://nmap.org/download.html")
answer = input("Voltar ao Menu: [S/N] ")
while answer.lower() not in ['S', 'N', '']:
print("Seleciona uma valida:")
answer = input()
if answer.lower() == 'S':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'N':
sys.exit("te vejo em breve!")
elif platform.system() == 'Linux':
print(os.system("sudo apt install nmap -y"))
os.system("clear")
print(f"{Fore.BLUE}[!] NMAP instalado com sucesso!")
print('\n')
answer = input("Voltar ao Menu: [S/N] ")
while answer.lower() not in ['S', 'N', '']:
print("Seleciona uma valida:")
answer = input()
if answer.lower() == 'S':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'N':
sys.exit(" te vejo em breve!")
########################################################################################################################################################################################################################################
elif answer == '2':
if platform.system() == 'Windows':
print(f"Sua plataforma é: {platform.system()}, você tem que baixar no site:\n https://gitlab.com/kalilinux/packages/nikto")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("Seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
elif platform.system() == 'Linux':
print(os.system("git clone https://gitlab.com/kalilinux/packages/nikto.git tools/nikto"))
os.system("clear")
print(f"{Fore.RED}[!] nikto baixado com sucesso abra a pasta tools.")
print("\n")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
####################################################################################################################
elif answer == '3':
if platform.system() == 'Windows':
print(f"Sua plataforma é: {platform.system()}, você tem que baixar no site:\n https://gitlab.com/kalilinux/packages/unicornscan")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("Seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
elif platform.system() == 'Lhttps://gitlab.com/kalilinux/packages/unicornscaninux':
print(os.system("git clone https://gitlab.com/kalilinux/packages/unicornscan.git tools/unicornscan"))
os.system("clear")
print(f"{Fore.RED}[!] unicornscan baixado com sucesso abra a pasta tools.")
print("\n")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'N', '']:
print("seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
####################################################################################################################
elif answer == '4':
if platform.system() == 'Windows':
print(f"Sua plataforma é: {platform.system()}, você tem que baixar no site:\n https://github.com/wpscanteam/wpscan")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("Seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
elif platform.system() == 'Linux':
print(os.system("git clone https://github.com/wpscanteam/wpscan tools/wpscan"))
os.system("clear")
print(f"{Fore.RED}[!] wpscan baixado com sucesso abra a pasta tools.")
print("\n")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
####################################################################################################################
elif answer == '5':
if platform.system() == 'Windows':
print(f"Sua plataforma é: {platform.system()}, você tem que baixar no site:\n https://gitlab.com/kalilinux/packages/wireshark")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("Seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
elif platform.system() == 'Linux':
print(os.system("git clone https://gitlab.com/kalilinux/packages/wireshark.git tools/wireshark"))
os.system("clear")
print(f"{Fore.RED}[!] wireshark baixado com sucesso abra a pasta tools.")
print("\n")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
####################################################################################################################
elif answer == '6':
if platform.system() == 'Windows':
print(f"Sua plataforma é: {platform.system()}, você tem que baixar no site:\n https://gitlab.com/kalilinux/packages/ghost-phisher")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("Seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
elif platform.system() == 'Linux':
print(os.system("git clone https://gitlab.com/kalilinux/packages/ghost-phisher.git tools/ghost"))
os.system("clear")
print(f"{Fore.RED}[!] ghost baixado com sucesso abra a pasta tools.")
print("\n")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
####################################################################################################################
elif answer == '7':
if platform.system() == 'Windows':
print(f"Sua plataforma é: {platform.system()}, você tem que baixar no site:\n https://github.com/Gameye98/Lazymux")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("Seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
elif platform.system() == 'Linux':
print(os.system("git clone https://github.com/Gameye98/Lazymux tools/lazzy"))
os.system("clear")
print(f"{Fore.RED}[!] lazzy baixado com sucesso abra a pasta tools.")
print("\n")
answer = input("Voltar ao menu: [Y/n] ")
while answer.lower() not in ['y', 'n', '']:
print("seleciona uma valida: ")
answer = input()
if answer.lower() == 'y':
return menu.home()
elif bool(answer) == False:
return menu.home()
elif answer.lower() == 'n':
sys.exit("te vejo em breve!")
except KeyboardInterrupt:
sys.exit("\n\nU pressed CTRL + C (ノಠ益ಠ)ノ彡┻━┻ ")