-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTSK.py
executable file
·504 lines (384 loc) · 23.4 KB
/
TSK.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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
#!/usr/bin/python3
# coding=utf-8
##############################################
# The Skeleton Key v.the first [ 9-11-2017 ] #
# Codename - The Patriotic Penguin #
# #
# A project by sandmansandito & derv82 #
# #
# #
# #
# #
# This is a very experimental first version #
# Hopefully it should improve over time #
##############################################
## TODO // Formatting & some code cleanup
import os
import apt
import sys
import time
import locale
import platform
import subprocess
#from dialog import Dialog
#from check_deps import dep_checks
from colorama import init, Fore, Back, Style
from future.builtins import input
locale.setlocale(locale.LC_ALL, '')
# Set size of terminal window
set_window_size = sys.stdout.write("\x1b[8;{rows};{cols}t".format(rows=40, cols=140))
# Set variable shotcuts for colorama colors
FR = Fore.RED; FW = Fore.WHITE; FG = Fore.GREEN; FB = Fore.BLACK; FY = Fore.YELLOW; FM = Fore.MAGENTA; FBL = Fore.BLUE; FLB = Fore.LIGHTBLUE_EX; FLW = Fore.LIGHTWHITE_EX; FLBL = Fore.LIGHTBLACK_EX
BLB = Back.LIGHTBLACK_EX; BR = Back.RED; BW = Back.WHITE; BB = Back.BLUE; BG = Back.GREEN; BM = Back.MAGENTA; BY = Back.YELLOW
SRST = Style.RESET_ALL; SB = Style.BRIGHT; SD = Style.DIM; SN = Style.NORMAL; BRST = Back.RESET; FRST = Fore.RESET
# Are we running inside Kali Linux?
apt_cache = apt.Cache()
linux_distro = platform.linux_distribution()
if 'Kali' in linux_distro:
isKali = True
else:
isKali = False
def help_me_rhonda():
if isKali:
os.system('gnome-terminal -- less README.md');
else:
os.system('gnome-terminal -x less README.md');
def get_line(lines, index, justification=49):
"""
Helper method for print_menu_technicolorama.
Returns the line from `lines` at index `index`, or an empty string if no line exists
Args:
lines (list[str]): List of strings
index (int): Zero-based index of an element in `lines`
justification (int): Optional. How many characters to justify the text (space-padding)
"""
if index < len(lines):
return lines[index].ljust(justification)
else:
return "".ljust(justification)
#####################################################################
# ////////// [BEGIN] TSK RIGHT MENU DECLARATIONS [BEGIN] \\\\\\\\\\ #
#####################################################################
main_menu_lines = [
'',
FG + ' A framework for the creation and ', '',
FG + ' deployment of USB/HID based attacks ', '',
'', '', '',
FG + ' A project by sandmansandito & derv82 ', '',
FG + ' Dreamed up under the wet hot neon lights ', '',
FG + ' of the Las Vegas Strip ', '',
'', '', '',
FG + ' Select a menu option on the left to ', '',
FG + ' view payloads for that device. ', '',
'', '',
FG + ' Please see the README file or HELP Menu ',
FG + ' for more information on using TSK ',
'', '', '',
FLW + ' v1.0 [ The Patriotic Penguin Edition ] '
]
# // Right-side box message(s) when USB Rubber Ducky Menu is displayed // #
ducky_menu_lines = [
'',
FW + ' ' + BY + 'USB Rubber Ducky Payloads Menu' + BRST + ' ', '',
FY + ' Choose a number below for more options ', '',
FY + ' Please see README for detailed info ', '',
'',
FW + ' 1. ' + BY + 'HAK5 Rubber Ducky Payload Collection' + BRST + ' ', '',
FY + ' Select from a list of payloads to edit ', '',
FY + ' and optionally flash to the ducky ', '',
'',
FW + ' 2. ' + BY + 'Launch the simple-ducky payload generator' + BRST + ' ', '',
FY + ' Launch the latest version of simple-ducky ', '',
FY + ' for generating ducky payloads & listeners ',
'',
FW + ' 3. ' + BY + 'Custom Payloads & Extra Resources' + BRST + ' ', '',
FY + ' Select from a custom ducky payload editor ',
FY + ' or other extra resources for getting the ', '',
FY + ' most use out of your USB Rubber Ducky ',
'',
FLBL + ' <<< [P]REV ' + FW + 'Menu 1 / 1' + FLBL +' [N]EXT >>> '
]
# // Right-side box message(s) when USB Rubber Ducky Menu is displayed // #
bunny_menu_lines = [
'',
FW + ' ' + BLB + 'Bash Bunny Payloads Menu' + BRST + ' ', '',
FW + ' Choose a number below for more options ', '',
FW + ' Please see README for detailed info ', '',
'',
FW + ' 1. ' + BLB + 'HAK5 Bash Bunny Payload Collection' + BRST + ' ', '',
FW + ' Select from a list of payloads to edit ', '',
FW + ' and optionally transfer to the bash bunny ', '',
'',
FW + ' 2. ' + BLB + 'Custom & User-Made Payloads' + BRST + ' ', '',
FW + ' Select from a list of user-made payloads ', '',
FW + ' to edit & export to the HDD or bash bunny ',
'',
FW + ' 3. ' + BLB + 'Bash Bunny Firmware & Payload Updater' + BRST + ' ', '',
FW + ' Select from various encoders, decoders, ',
FW + ' firmwares and other miscellaneous useful ', '',
FW + ' payloads for the USB rubber ducky ',
'',
FLBL + ' <<< [P]REV ' + FW + 'Menu 1 / 1' + FLBL +' [N]EXT >>> '
]
# // Right-side box message(s) when Teensy menu is displayed // #
teensy_menu_lines = [
'',
FW + ' ' + BM + 'Teensy & Arduino Payloads Menu' + BRST + ' ', '',
FM + ' Choose a number below for more options ', '',
FM + ' Please see README for detailed info ', '',
'',
FW + ' 1. ' + BM + 'Brutal Framework by Screetsec' + BRST + ' ', '',
FM + ' Deploy various methods of HID attacks to ', '',
FM + ' Teensy For Use In Penetration Testing ', '',
'',
FW + ' 2. ' + BM + 'Kautilya Framework by SamratAshok' + BRST + ' ', '',
FM + ' Deploy various methods of HID attacks to ', '',
FM + ' Teensy For Use In Penetration Testing ', '',
FW + ' 3. ' + BM + 'USBdriveby For Teensy & Arduino Pro Micro' + BRST + ' ', '',
FM + ' The BadUSB type drive-by attack for ',
FM + ' microcontrollers by Samy Kamkar ',
'', '', '' '',
FLBL + ' <<< [P]REV ' + FW + 'Menu 1 / 1' + FLBL +' [N]EXT >>> '
]
# // Right-side box message(s) when USB menu is displayed // #
USB_menu_lines = [
'',
FW + ' ' + BB + 'USB Flash Drive Dropper Menu' + BRST + ' ', '',
FBL + ' Choose a number below for more options ', '',
FBL + ' Please see README for detailed info ', '',
'',
FW + ' 1. ' + BB + 'Extract dropper files to a location' + BRST + ' ', '',
FBL + ' Copies templated dropper files to a ', '',
FBL + ' USB drive or specific location ', '',
'',
FW + ' 2. ' + BB + 'Extract snarfer files to a location' + BRST + ' ', '',
FLB + ' Copies snarf parser & editable config ', '',
FLB + ' file to a USB drive or specific location ', '',
FW + ' 3. ' + BB + 'Configure a \'BadUSB\' type USB Drive' + BRST + ' ', '',
FLB + ' Copies BadUSB Python implementation for ',
FLB + ' Phison 2303 to a specific location ',
'', '', '',
FLBL + ' <<< [P]REV ' + FW + 'Menu 1 / 1' + FLBL +' [N]EXT >>> '
]
#####################################################################
# ////////// [END] TSK RIGHT MENU DECLARATIONS [END] \\\\\\\\\\ #
#####################################################################
# #
#####################################################################
# ////////// [BEGIN] TSK MAIN MENU DECLARATION [BEGIN] \\\\\\\\\\ #
#####################################################################
def print_menu_technicolorama(right_menu_lines = main_menu_lines):
"""
Prints the Main/About menu which are one in the same.
The colors are defined from colorama and given custom shortcuts to cut down on the amount of bloat.
This should also make it easier to change color/style combinations for future updates.
Args:
right_menu_lines (list[str]): List of strings to print in the right-side menu box.
Each line should not exceed 49 characters
Optional. Default is the main menu.
"""
print('\n\n')
print('\t' + FR + SB + 'TTTTTTTTTTTTTTTTTTTTTTT SSSSSSSSSSSSSSS KKKKKKKKK KKKKKKK' + ' ' + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + 'T:::::::::::::::::::::T SS:::::::::::::::SK:::::::K K:::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 0) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + 'T:::::::::::::::::::::TS:::::SSSSSS::::::SK:::::::K K:::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 1) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + 'T:::::TT:::::::TT:::::TS:::::S SSSSSSSK:::::::K K::::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 2) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + 'TTTTTT T:::::T TTTTTTS:::::S KK::::::K K:::::KKK' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 3) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::T S:::::S K:::::K K:::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 4) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::T S::::SSSS K::::::K:::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 5) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::T SS::::::SSSSS K:::::::::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 6) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::T SSS::::::::SS K:::::::::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 7) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::T SSSSSS::::S K::::::K:::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 8) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::T' + FW +' [v1.0]' + FR +' S:::::S K:::::K K:::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 9) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::T S:::::SKK::::::K K:::::KKK' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 10) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' TT:::::::TT SSSSSSS S:::::SK:::::::K K::::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 11) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::::::T S::::::SSSSSS:::::SK:::::::K K:::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 12) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' T:::::::::T S:::::::::::::::SS K:::::::K K:::::K' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 13) + BLB + ' ' + BRST + FRST)
print('\t' + FR + SB + ' TTTTTTTTTTT SSSSSSSSSSSSSSS KKKKKKKKK KKKKKKK' + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 14) + BLB + ' ' + BRST + FRST)
print(' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 15) + BLB + ' ' + BRST + FRST + SRST)
print(FW + SD + ' ========================================================' + ' ' + SB + BLB + ' ' + BRST + get_line(right_menu_lines, 16) + BLB + ' ' + BRST + FRST + SRST)
print(FW + SB + ' THE SKELETON KEY' + ' ' + SB + BLB + ' ' + BRST + get_line(right_menu_lines, 17) + BLB + ' ' + BRST + FRST + SRST)
print(FW + SD + ' ========================================================' + ' ' + SB + BLB + ' ' + BRST + get_line(right_menu_lines, 18) + BLB + ' ' + BRST + FRST + SRST)
print(SB + ' ' + BLB + ' ' + SB + BRST + get_line(right_menu_lines, 19) + BLB + ' ' + BRST + FRST+ SRST)
print('\t' + FW + SB + ' ' + BLB + '*' + ' ' + ' ' + BLB + FW + SB + '*' + BRST + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 20) + BLB + ' ' + BRST + FRST)
print(' ' + BLB + ' ' + BRST + ' ' + BLB + ' ' + BRST + FRST)
print('\t ' + FW + BLB + 'T' + BRST + ' [' + FG + SB + 'H' + FW + ']elp ' + FW + BR + ' Help Me, Rhonda ' + BRST + ' ' + FW + BLB + 'T' + BRST + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 21) + BLB + ' ' + BRST + FRST)
print('\t ' + FW + BLB + 'S' + BRST + ' [' + FG + SB + 'A' + FW + ']bout ' + FB + BW + ' Check It Out!!! ' + BRST + ' ' + FW + BLB + 'S' + BRST + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 22) + BLB + ' ' + BRST + FRST)
print('\t ' + FW + BLB + 'K' + BRST + ' [' + FG + SB + 'Q' + FW + ']uit ' + FW + BB + ' Blow This Joint ' + BRST + ' ' + FW + BLB + 'K' + BRST + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 23) + BLB + ' ' + BRST + FRST)
print(' ' + BLB + ' ' + BRST + ' ' + BLB + ' ' + BRST + FRST)
print('\t ' + FW + BLB + 'M' + BRST + ' [' + FG + SB + 'R' + FW + ']ubber Ducky ' + FY + ' You\'''re The One ' + FW + BLB + 'M' + BRST + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 24) + BLB + ' ' + BRST + FRST)
print('\t ' + FW + BLB + 'E' + BRST + ' [' + FG + SB + 'B' + FW + ']ash Bunny ' + FW + ' Payload Puritania ' + FW + BLB + 'E' + BRST + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 25) + BLB + ' ' + BRST + FRST + SRST)
print(SB + '\t ' + FW + BLB + 'N' + BRST + ' [' + FG + SB + 'T' + FW + ']eensy' + FM + ' Teensy & Arduino Attacks ' + FW + BLB + 'N' + BRST + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 26) + BLB + ' ' + BRST + FRST + SRST)
print(SB + '\t ' + FW + BLB + 'U' + BRST + ' [' + FG + SB + 'U' + FW + ']SB' + FLB + ' USB Dropper Related Vectors ' + FW + BLB + 'U' + BRST + ' ' + BLB + ' ' + BRST + get_line(right_menu_lines, 27) + BLB + ' ' + BRST + FRST + SRST)
print(SB + ' ' + BLB + ' ' + BRST + SRST + get_line(right_menu_lines, 28) + BLB + SB + ' ' + BRST + FRST + SRST)
print('\t' + FW + SB + ' ' + BLB + '*' + ' ' + ' ' + BLB + FW + SB + '*' + BRST + ' ' + BLB + ' ' + BRST + Style.RESET_ALL)
######################################################################
# ////////// [BEGIN] TSK DUCKY MENU DECLARATION [BEGIN] \\\\\\\\\\ #
######################################################################
def ducky_menu(right_menu_lines = ducky_menu_lines):
#os.system('clear')
#print_menu_technicolorama(right_menu_lines)
ducky_menuLoop = True
while ducky_menuLoop == True:
os.system('clear')
print_menu_technicolorama(right_menu_lines)
ducky_choice = input("\n\t Enter your Ducky selection : ")
if ducky_choice == 'R' or ducky_choice == 'r':
print("\t " + SB + BR + "ALREADY HERE!" + BRST)
time.sleep(2)
ducky_menu()
elif ducky_choice == '1':
from menus.ducky_1 import ducky_routines
ducky_routines()
elif ducky_choice == '2':
from menus.ducky_2 import ducky_routines
ducky_routines()
elif ducky_choice == '3':
from menus.ducky_3 import ducky_routines
ducky_routines()
elif ducky_choice == 'B' or ducky_choice == 'b':
bunny_menu()
elif ducky_choice == 'T' or ducky_choice == 't':
teensy_menu()
elif ducky_choice == 'U' or ducky_choice == 'u':
USB_menu()
elif ducky_choice == 'H' or ducky_choice == 'h':
help_me_rhonda()
ducky_menu(right_menu_lines = ducky_menu_lines)
continue
elif ducky_choice == 'A' or ducky_choice == 'a':
main_menu()
elif ducky_choice == 'Q' or ducky_choice == 'q':
print("\n\t Thank you for checking out TSK! [ HACK THE PLANET!!! ]\n")
sys.exit()
else:
input("\n\t No such option " + "\'" + ducky_choice + "\'" + " exists." + " Press ENTER key to try again.")
ducky_menu(right_menu_lines = ducky_menu_lines)
######################################################################
# ////////// [BEGIN] TSK BUNNY MENU DECLARATION [BEGIN] \\\\\\\\\\ #
######################################################################
def bunny_menu(right_menu_lines = bunny_menu_lines):
os.system('clear')
print_menu_technicolorama(right_menu_lines)
bunny_menuLoop = True
while bunny_menuLoop == True:
bunny_choice = input("\n\t Enter your Bunny selection : ")
if bunny_choice == 'R' or bunny_choice == 'r':
ducky_menu()
elif bunny_choice == 'B' or bunny_choice == 'b':
print("\t " + SB + BR + "ALREADY HERE!" + BRST)
time.sleep(2)
bunny_menu()
elif bunny_choice == 'T' or bunny_choice == 't':
teensy_menu()
elif bunny_choice == 'U' or bunny_choice == 'u':
USB_menu()
elif bunny_choice == 'H' or bunny_choice == 'h':
help_me_rhonda()
bunny_menu(right_menu_lines = bunny_menu_lines)
continue
elif bunny_choice == 'A' or bunny_choice == 'a':
main_menu()
elif bunny_choice == 'Q' or bunny_choice == 'q':
print("\n\t Thank you for checking out TSK! [ HACK THE PLANET!!! ]\n")
sys.exit()
else:
input("\n\t No such option " + "\'" + bunny_choice + "\'" + " exists." + " Press ENTER key to try again.")
bunny_menu(right_menu_lines = bunny_menu_lines)
def teensy_menu(right_menu_lines = teensy_menu_lines):
os.system('clear')
print_menu_technicolorama(right_menu_lines)
teensy_menuLoop = True
while teensy_menuLoop == True:
teensy_choice = input("\n\t Enter your Teensy selection : ")
if teensy_choice == 'R' or teensy_choice == 'r':
ducky_menu()
elif teensy_choice == 'B' or teensy_choice == 'b':
bunny_menu()
elif teensy_choice == 'T' or teensy_choice == 't':
print("\t " + SB + BR + "ALREADY HERE!" + BRST)
time.sleep(2)
teensy_menu()
elif teensy_choice == 'U' or teensy_choice == 'u':
USB_menu()
elif teensy_choice == 'H' or teensy_choice == 'h':
help_me_rhonda()
teensy_menu(right_menu_lines = teensy_menu_lines)
continue
elif teensy_choice == 'A' or teensy_choice == 'a':
main_menu()
elif teensy_choice == 'Q' or teensy_choice == 'q':
print("\n\t Thank you for checking out TSK! [ HACK THE PLANET!!! ]\n")
sys.exit()
else:
input("\n\t No such option " + "\'" + teensy_choice + "\'" + " exists." + " Press ENTER key to try again.")
teensy_menu(right_menu_lines = teensy_menu_lines)
def USB_menu(right_menu_lines = USB_menu_lines):
os.system('clear')
print_menu_technicolorama(right_menu_lines)
USB_menuLoop = True
while USB_menuLoop == True:
USB_choice = input("\n\t Enter your USB selection : ")
if USB_choice == 'R' or USB_choice == 'r':
ducky_menu()
elif USB_choice == 'B' or USB_choice == 'b':
bunny_menu()
elif USB_choice == 'T' or USB_choice == 't':
teensy_menu()
elif USB_choice == 'U' or USB_choice == 'u':
USB_menu()
elif USB_choice == 'H' or USB_choice == 'h':
help_me_rhonda()
USB_menu(right_menu_lines = USB_menu_lines)
continue
elif USB_choice == 'A' or USB_choice == 'a':
main_menu()
elif USB_choice == 'Q' or USB_choice == 'q':
print("\n\t Thank you for checking out TSK! [ HACK THE PLANET!!! ]\n")
sys.exit()
else:
input("\n\t No such option " + "\'" + USB_choice + "\'" + " exists." + " Press ENTER key to try again.")
USB_menu(right_menu_lines = USB_menu_lines)
def main_menu():
os.system('clear')
print_menu_technicolorama(right_menu_lines = main_menu_lines)
# While loop for asking for menu input. The choices here are obvious and display appropriate menu selection
while menuLoop == True:
try:
choice = input("\n\t Enter your selection : ")
if choice == 'R' or choice == 'r':
ducky_menu()
elif choice == 'B' or choice == 'b':
bunny_menu()
elif choice == 'T' or choice == 't':
teensy_menu()
elif choice == 'U' or choice == 'u':
USB_menu()
elif choice == 'H' or choice == 'h':
help_me_rhonda()
print_menu_technicolorama(right_menu_lines = main_menu_lines)
continue
elif choice == 'A' or choice == 'a':
main_menu()
elif choice == 'Q' or choice == 'q':
print("\n\t Thank you for checking out TSK! [ HACK THE PLANET!!! ]\n")
sys.exit()
else:
input("\n\t No such option " + "\'" + choice + "\'" + " exists." + " Press ENTER key to try again.")
print_menu_technicolorama(right_menu_lines = main_menu_lines)
except KeyboardInterrupt:
print("\n\n\t Exiting in a HURRY!\n")
sys.exit(0)
if os.getuid() == 0:
# On startup, set the menuLoop variable for menu choices, check dependencies and print the main menu
if isKali:
os.system('clear')
#dep_checks()
set_window_size
menuLoop = True; main_menu();
else:
os.system('clear')
print("This version of TSK is currently designed to run on Kali Linux only!")
else:
os.system('clear')
exit("If you liked it then you should have run it as admin!")
init()