-
Notifications
You must be signed in to change notification settings - Fork 0
/
JeffTools.py
374 lines (237 loc) · 8.99 KB
/
JeffTools.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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
import os
os.system('clear')
print("------------------------------------------")
print("1) airscript")
print("2) cracker | SSH")
print("3) cracker | http/https")
print("4) AMFinder")
print("5) nmapper")
print("6) sslscan")
print("7) email info harvester")
print("8) snmp checker")
print("------------------------------------------")
tool = input("Enter the tool u want to use(ctrl + C to exit): ")
def Function_airscript():
os.system('airmon-ng check kill')
os.system('clear')
print("Automated Aircrack-ng tool By Jeffrey")
print("-------------------------------------------")
interface = input("Type interface: ")
print("-------------------------------------------")
print("Interface set to: " + interface)
print("-------------------------------------------")
input("Press Enter to continue")
os.system('clear')
input("Press Enter to start monitor mode")
print("-------------------------------------------")
os.system('airmon-ng start ' + interface)
print("-------------------------------------------")
input("Press enter to continue")
os.system('airodump-ng ' + interface + 'mon')
input("Press enter to continue")
os.system('clear')
os.system('airodump-ng --bssid ' + bssid + ' -c ' + channel + ' --write WPAcrack mon0')
print("-------------------------------------------")
input("Press enter to continue")
deauth = input("Enter the number of de-authenticate frames you want to send (example: 100): ")
os.system('aireplay-ng --deauth ' + deauth + ' -a ' + bssid + ' mon0')
os.system('JeffTools')
def Function_cracker_ssh():
import os
def ssh(wrdList, Host):
os.system('hydra -L ' + wrdList + ' -P ' + wrdList + ' ' + Host + ' ssh')
path = input("Enter the path of the Wordlist: ")
print("------------------------------------------")
print("Path set to: " + path)
print("------------------------------------------")
input("Press enter to continue")
os.system('clear')
ip = input("Enter Target ip: ")
print("------------------------------------------")
print("Set ip to: " + ip)
print("------------------------------------------")
input("Press enter to start attack")
os.system('clear')
ssh(path, ip)
os.system('JeffTools')
def Function_AMFinder():
import os
os.system('clear')
print("----------------------------------------------------------------")
print("| Welcome to AdminFinder an automated nikto tool by Jeffrey |")
print("----------------------------------------------------------------")
url = input("Enter Host/url: ")
os.system('clear')
print("----------------------------------------------------------------")
print("| Welcome to AdminFinder an automated nikto tool by Jeffrey |")
print("----------------------------------------------------------------")
print("----------------------------------------------------------------")
print("| Set host to: " + url)
print("----------------------------------------------------------------")
input("Press enter to start scanning: " + url)
os.system('clear')
os.system('nikto -host ' + url)
os.system('JeffTools')
def Function_nmapper():
import os
os.system('clear')
ip = input("Enter Target ip(Ctrl + c to exit): ")
os.system('clear')
print("-----------------------------")
print("Target Ip set to: " + ip)
print("-----------------------------")
os.system('clear')
def Function_IP_protocol(host):
os.system('nmap -sO ' + host)
input("Press enter to go back")
os.system('nmapper')
def Function_Service_Version(host):
os.system('nmap -sV ' + host)
input("Press enter to go back")
os.system('nmapper')
def Function_All_Hosts(host):
os.system('nmap -sV ' + host + ' -Pn')
os.system("Press enter to go back")
os.system('nmapper')
def Function_Exit():
os.system('exit')
def Function_http_enum(host):
os.system('nmap -sV --script=http-enum ' + host)
input("Press enter to go back")
os.system('nmapper')
def Function_OS_Detection(host):
os.system('nmap -O ' + host)
input("Press enter to go back")
os.sytem('nmapper')
def Function_Port_scan(host):
print("Fill in the port u want to scan.")
port = input("JeffTools>")
print("port is set to: " + port)
input("press enter to continue...")
os.system('nmap -p' + port + ' ' + host)
input("Press enter to go back")
os.system('nmapper')
print("Ip: " + ip)
print("--------------------------------")
print("Choose option")
print("--------------------------------")
print("1) Ip Protocol")
print("2) Service/Version")
print("3) All Hosts (slow)")
print("4) Http-enumeration")
print("5) OS Detection")
print("6) Port scan")
print("7) Exit")
print("--------------------------------")
oP = input("Choose option: ")
os.system('clear')
if oP == "1":
Function_IP_protocol(ip)
elif oP == "2":
Function_Service_Version(ip)
elif oP == "3":
Function_All_Hosts(ip)
elif oP == "4":
Function_http_enum(ip)
elif oP == "5":
Function_OS_Detection(ip)
elif oP == "6":
Function_Port_scan(ip)
elif oP == "7":
Function_Exit()
else:
print("This Number is invalid.")
os.system('JeffTools')
def Function_cracker_http():
import os
username = input("Enter username:")
print("---------------------------")
print("Set Username to: " + username)
print("---------------------------")
cmd = 'clear'
os.system(cmd)
ip = input("Enter Ip:")
print("---------------------------")
print("Set ip to: " + ip)
print("---------------------------")
cmd = 'clear'
os.system(cmd)
method = "http-post-form"
location = input("Specify path to attack:")
print("---------------------------")
print("Set path to: " + location)
print("---------------------------")
cmd = 'clear'
os.system(cmd)
fail = input("Enter Failure Message: ")
print("----------------------------")
print("Set message to: " + fail)
print("----------------------------")
os.system(cmd)
wordls = input("Enter the path of the wordlist: ")
print("----------------------------")
print("set wordlist to: " + wordls)
print("----------------------------")
input("Press enter to start attack")
os.system(cmd)
hydra1 = 'sudo hydra -l '
hydra2 = ' -p '
hydra3 = ' "'
hydra4 = ':username='
hydra5 = '&password=^PASS^:'
hydra6 = '"'
os.system(hydra1 + username + hydra2 + wordls + ' ' + ip + ' ' + method + hydra3 + location + hydra4 + username + hydra5 + fail + hydra6)
def Function_sslscan():
def Function_Start_sslscan(ipv, host):
os.system('sslscan ' + ipv + ' ' + host)
if cmd == 'set ipversion':
ipver = input("Choose '-4' for an IPV4 or use '-6' for an IPV6:")
elif cmd == 'set host':
target = input("Host Adress: ")
elif cmd == 'run':
Function_Start_sslscan(ipver, target)
else:
input('Invalid Command')
Function_sslscan()
print("----------------------------------------")
print("|Welcome to the automated sslscan tool |")
print("----------------------------------------")
print("The IPVersion is currently set to: " + ipver)
print("-----------------")
print("The host is currently set to: " + target)
cmd = input("sslscan>")
def Function_snmp():
os.system('clear')
snmp_ip = input("Target>")
os.system('clear')
snmp_port = input("Port>")
os.system('clear')
snmp_comm = input("community(default is 'public')>")
os.system('clear')
snmp_ver = input("snmp version(default is SNMPv1)>")
print("Target: " + snmp_ip + " Port: " + snmp_port + " Community: " + snmp_comm)
input("Press enter to continue")
def snmp_scan(t, p, c, v):
os.system('snmp-check -w ' + t + ' -p ' + p + ' -c ' + c + " -v " + v)
input("press enter to go back")
os.system('JeffTools')
snmp_scan(snmp_ip, snmp_port, snmp_comm, snmp_ver)
if tool == "1":
Function_airscript()
elif tool =="2":
Function_cracker_ssh()
elif tool == "3":
Function_cracker_http()
elif tool == "4":
Function_AMFinder()
elif tool == "5":
Function_nmapper()
elif tool == "6":
Function_sslscan()
elif tool == "7":
Function_Email_Harvester()
elif tool == "8":
Function_snmp()
else:
print("Invalid number pls try again")
os.system('JeffTools')