Repository navigation
Expand file tree
/
Copy pathkatoolin.py
More file actions
1731 lines (1630 loc) · 70 KB
/
Copy pathkatoolin.py
File metadata and controls
1731 lines (1630 loc) · 70 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
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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/python3
import os
import sys
import traceback
FAILED_TOOLS = []
def safe_install(tool_cmd, tool_name=None):
"""Try to install a tool using apt-get, catch failures, and log them."""
if tool_name is None:
tool_name = tool_cmd.split()[-1]
print(f"\033[1;34m[*] Installing {tool_name}...\033[1;m")
# Force noninteractive installs + safe dependency fixing
full_cmd = f"DEBIAN_FRONTEND=noninteractive sudo {tool_cmd} --no-install-recommends"
exit_code = os.system(full_cmd)
if exit_code != 0:
print(f"\033[1;31m[!] Failed to install {tool_name} (exit code {exit_code})\033[1;m")
print("\033[1;34m[*] Attempting dependency auto-fix...\033[1;m")
# Automatically attempt dependency repair
fix_code = os.system("sudo apt-get -f install -y --no-install-recommends")
if fix_code == 0:
print(f"\033[1;33m[+] Dependency fix applied. Re-attempting install of {tool_name}...\033[1;m")
retry_code = os.system(full_cmd)
if retry_code != 0:
print(f"\033[1;31m[!] {tool_name} still failed after dependency fix.\033[1;m")
FAILED_TOOLS.append(tool_name)
return
else:
print(f"\033[1;32m[+] {tool_name} installed successfully after dependency fix.\033[1;m")
return
else:
print(f"\033[1;31m[!] Dependency fix failed. Marking {tool_name} as failed.\033[1;m")
FAILED_TOOLS.append(tool_name)
else:
print(f"\033[1;32m[+] {tool_name} installed successfully.\033[1;m")
def install_kali_defaults():
"""Safely install kali-defaults without diverting system files."""
print("\033[1;34m[*] Installing kali-defaults safely...\033[1;m")
exit_code = os.system("apt-get install -y kali-defaults")
if exit_code != 0:
print(f"\033[1;31m[!] Failed to install kali-defaults (exit code {exit_code})\033[1;m")
FAILED_TOOLS.append("kali-defaults")
else:
print("\033[1;32m[+] kali-defaults installed successfully.\033[1;m")
def setup():
if os.geteuid() != 0:
print(
"You need to have root privileges to run this script.\nPlease try again, this time using 'sudo'. Exiting.")
sys.exit()
else:
os.system("clear")
def help_menu():
print("****************** +Commands+ ******************\n")
print("\033[1;32mback\033[1;m \033[1;33mGo back\033[1;m")
print("\033[1;32mgohome\033[1;m \033[1;33mGo to the main menu\033[1;m")
print("\033[1;32mhelp\033[1;m \033[1;33mShow this help menu\033[1;m")
print("\033[1;32mExit\033[1;m \033[1;33mExit the script\033[1;m")
def print_banner():
print("")
print(" $$\ $$\ $$\ $$\ $$\ $$$$$$\ ")
print(" $$ | $$ | $$ | $$ |\__| $$ ___$$\ ")
print(" $$ |$$ / $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$ |$$\ $$$$$$$\ \_/ $$ |")
print(" $$$$$ / \____$$\\_$$ _| $$ __$$\ $$ __$$\ $$ |$$ |$$ __$$\ $$$$$ / ")
print(" $$ $$< $$$$$$$ | \033[1;34mKali-Linux tools installer\033[1;m |$$ |$$ |$$ | $$ | \___$$\ ")
print(" \033[1;34m$$ |\$$\ $$ __$$ | $$ |$$\ $$ | $$ |$$ | $$ |$$ |$$ |$$ | $$ |$$\ $$ |")
print(" $$ | \$$\\$$$$$$$ | \$$$$ |\$$$$$$ |\$$$$$$ |$$ |$$ |$$ | $$ |\$$$$$$ |")
print(" \__| \__|\_______| \____/ \______/ \______/ \__|\__|\__| \__| \______/ V3.0\033[1;m")
print("")
print("")
print(" \033[1;32m+ -- -- +=[ Original Script by: LionSec | Homepage: www.neodrix.com \033[1;m")
print(" \033[1;32m+ -- -- +=[ Rewrites and maintained by: Nysioko\033[1;m")
print(" \033[1;32m+ -- -- +=[ Latest update: 17/05/2022\033[1;m")
print("")
print("")
print("\033[1;91m[W] Before updating and upgrading your system, please remove all Kali-linux repositories to "
"avoid any kind of problem.\033[1;m")
print("\033[1;91m[W] In some cases, Kali-Linux repositories can destabilize your system or worse, completely "
"destroy it.\033[1;m")
print("")
def main_menu():
while True:
print("1) Add Kali repositories & Update")
print("2) View Categories")
print("3) Install classicmenu indicator")
print("4) Install Kali menu")
print("5) Help")
print("")
choice = input("\033[1;36mkat > \033[1;m")
match choice:
case "exit" | "quit":
sys.exit()
case "1":
repo_menu()
case "2":
view_categories()
case "3":
print('''
ClassicMenu Indicator is a notification area applet (application indicator) for the top panel of Ubuntu's Unity desktop environment.
It provides a simple way to get a classic GNOME-style application menu for those who prefer this over the Unity dash menu.
Like the classic GNOME menu, it includes Wine games and applications if you have those installed.
For more information , please visit : http://www.florian-diesch.de/software/classicmenu-indicator/
''')
repo = input(
"\033[1;32mDo you want to install classicmenu indicator ? [y/n]> \033[1;m")
if repo == "y":
os.system(
"add-apt-repository ppa:diesch/testing && apt-get update")
os.system(
"sudo apt-get install classicmenu-indicator")
case "4":
repo = input(
"\033[1;32mDo you want to install Kali menu ? [y/n]> \033[1;m")
if repo == "y":
os.system("apt-get install kali-menu")
case "5":
help_menu()
case _:
print(
"\033[1;31mSorry, that was an invalid command!\033[1;m")
def repo_menu():
while True:
print("")
print("1) Add kali linux repositories")
print("2) Update")
print("3) Remove all kali linux repositories")
print("4) View the contents of sources.list file")
print("0) Back to main menu")
print("")
repo = input(
"\033[1;32mWhat do you want to do ?> \033[1;m")
match repo:
case "exit" | "quit":
sys.exit()
case "1":
os.system(
"curl -fsSL https://archive.kali.org/archive-key.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/kali-archive-keyring.gpg > /dev/null")
os.system(
"echo 'deb http://http.kali.org/kali kali-rolling main contrib non-free' | sudo tee -a /etc/apt/sources.list.d/kali.list")
case "2":
os.system("apt-get update -m")
case "3":
infile = '/etc/apt/sources.list'
outfile = "/etc/apt/sources.list"
delete_list = ["# Kali linux repositories | Added by Katoolin\n",
"deb http://http.kali.org/kali kali-rolling main contrib non-free\n"]
fin = open(infile)
os.remove("/etc/apt/sources.list")
out = open(outfile, "w+")
for line in fin:
for word in delete_list:
line = line.replace(word, "")
out.write(line)
fin.close()
out.close()
print(
"\033[1;31m\nAll kali linux repositories have been deleted !\n\033[1;m")
case "4":
file = open('/etc/apt/sources.list', 'r')
print(file.read())
case "0" | "back" | "gohome":
return
case _:
print(
"\033[1;31mSorry, that was an invalid command!\033[1;m")
def view_categories():
while True:
print('''
\033[1;36m**************************** All Categories *****************************\033[1;m
1) Information Gathering 8) Exploitation Tools
2) Vulnerability Analysis 9) Forensics Tools
3) Wireless Attacks 10) Stress Testing
4) Web Applications 11) Password Attacks
5) Sniffing & Spoofing 12) Reverse Engineering
6) Maintaining Access 13) Hardware Hacking
7) Reporting Tools 14) Extra
0) All
''')
print(
"\033[1;32mSelect a category or press (0) to install all Kali linux tools .\n\033[1;m")
opcion1 = input("\033[1;36mkat > \033[1;m")
match opcion1:
case "exit" | "quit":
sys.exit()
case "back" | "gohome":
return
case "help":
print("Available commands:\n"
"back\t\tGo back to main menu\n"
"gohome\t\tGo to the main menu\n"
"exit\t\tExit the program\n"
"help\t\tShow this help menu\n")
case "0":
os.system(
"apt-get -f install acccheck ace-voip amap automater braa casefile cdpsnarf cisco-torch cookie-cadger copy-router-config dmitry dnmap dnsenum dnsmap dnsrecon dnstracer dnswalk dotdotpwn enum4linux enumiax exploitdb fierce firewalk fragroute fragrouter ghost-phisher golismero goofile lbd maltego-teeth masscan metagoofil miranda nmap p0f parsero recon-ng set smtp-user-enum snmpcheck sslcaudit sslsplit sslstrip sslyze thc-ipv6 theharvester tlssled twofi urlcrazy wireshark wol-e xplico ismtp intrace hping3 bbqsql bed cisco-auditing-tool cisco-global-exploiter cisco-ocs cisco-torch copy-router-config doona dotdotpwn greenbone-security-assistant hexorbase jsql lynis nmap ohrwurm openvas-cli openvas-manager openvas-scanner oscanner powerfuzzer sfuzz sidguesser siparmyknife sqlmap sqlninja sqlsus thc-ipv6 tnscmd10g unix-privesc-check yersinia aircrack-ng asleap bluelog blueranger bluesnarfer bully cowpatty crackle eapmd5pass fern-wifi-cracker ghost-phisher giskismet gqrx kalibrate-rtl killerbee kismet mdk3 mfcuk mfoc mfterm multimon-ng pixiewps reaver redfang spooftooph wifi-honey wifitap wifite apache-users arachni bbqsql blindelephant burpsuite cutycapt davtest deblaze dirb dirbuster fimap funkload grabber jboss-autopwn joomscan jsql maltego-teeth padbuster paros parsero plecost powerfuzzer proxystrike recon-ng skipfish sqlmap sqlninja sqlsus ua-tester uniscan vega w3af webscarab websploit wfuzz wpscan xsser zaproxy burpsuite dnschef fiked hamster-sidejack hexinject iaxflood inviteflood ismtp mitmproxy ohrwurm protos-sip rebind responder rtpbreak rtpinsertsound rtpmixsound sctpscan siparmyknife sipp sipvicious sniffjoke sslsplit sslstrip thc-ipv6 voiphopper webscarab wifi-honey wireshark xspy yersinia zaproxy cryptcat cymothoa dbd dns2tcp http-tunnel httptunnel intersect nishang polenum powersploit pwnat ridenum sbd u3-pwn webshells weevely casefile cutycapt dos2unix dradis keepnote magictree metagoofil nipper-ng pipal armitage backdoor-factory cisco-auditing-tool cisco-global-exploiter cisco-ocs cisco-torch crackle jboss-autopwn linux-exploit-suggester maltego-teeth set shellnoob sqlmap thc-ipv6 yersinia beef-xss binwalk bulk-extractor chntpw cuckoo dc3dd ddrescue dumpzilla extundelete foremost galleta guymager iphone-backup-analyzer p0f pdf-parser pdfid pdgmail peepdf volatility xplico dhcpig funkload iaxflood inviteflood ipv6-toolkit mdk3 reaver rtpflood slowhttptest t50 termineter thc-ipv6 thc-ssl-dos acccheck burpsuite cewl chntpw cisco-auditing-tool cmospwd creddump crunch findmyhash gpp-decrypt hash-identifier hexorbase john johnny keimpx maltego-teeth maskprocessor multiforcer ncrack oclgausscrack pack patator polenum rainbowcrack rcracki-mt rsmangler statsprocessor thc-pptp-bruter truecrack webscarab wordlists zaproxy apktool dex2jar python-distorm3 edb-debugger jad javasnoop jdim ollydbg smali valgrind yara android-sdk apktool arduino dex2jar sakis3g smali && wget http://www.morningstarsecurity.com/downloads/bing-ip2hosts-0.4.tar.gz && tar -xzvf bing-ip2hosts-0.4.tar.gz && cp bing-ip2hosts-0.4/bing-ip2hosts /usr/local/bin/")
case "1":
install_information_gathering()
case "2":
install_vulnerability_analysis()
case "3":
install_wireless_attacks()
case "4":
install_web_applications()
case "5":
install_sniffing_spoofing()
case "6":
install_maintaining_access()
case "7":
install_reporting_tools()
case "8":
install_exploitation_tools()
case "9":
install_forensics_tools()
case "10":
install_stress_testing()
case "11":
install_password_attacks()
case "12":
install_reverse_engineering()
case "13":
install_hardware_hacking()
case "14":
install_extra()
case _:
print("\033[1;31mSorry, that was an invalid command!\033[1;m")
def install_information_gathering():
print('''
\033[1;36m=+[ Information Gathering\033[1;m
1) acccheck 30) lbd
2) ace-voip 31) Maltego Teeth
3) Amap 32) masscan
4) Automater 33) Metagoofil
5) bing-ip2hosts 34) Miranda
6) braa 35) Nmap
7) CaseFile 36) ntop
8) CDPSnarf 37) p0f
9) cisco-torch 38) Parsero
10) Cookie Cadger 39) Recon-ng
11) copy-router-config 40) SET
12) DMitry 41) smtp-user-enum
13) dnmap 42) snmpcheck
14) dnsenum 43) sslcaudit
15) dnsmap 44) SSLsplit
16) DNSRecon 45) sslstrip
17) dnstracer 46) SSLyze
18) dnswalk 47) THC-IPV6
19) DotDotPwn 48) theHarvester
20) enum4linux 49) TLSSLed
21) enumIAX 50) twofi
22) exploitdb 51) URLCrazy
23) Fierce 52) Wireshark
24) Firewalk 53) WOL-E
25) fragroute 54) Xplico
26) fragrouter 55) iSMTP
27) Ghost Phisher 56) InTrace
28) GoLismero 57) hping3
29) goofile
0) Install all Information Gathering tools
''')
print(
"\033[1;32mInsert the number of the tool to install it .\n\033[1;m")
while True:
option2 = input("\033[1;36mkat > \033[1;m")
match option2:
case "exit" | "quit":
sys.exit()
case "back" | "gohome":
return
case "help":
print("Available commands:\n"
"back\t\tGo back to category menu\n"
"gohome\t\tGo to the main menu\n"
"exit\t\tExit the program\n"
"help\t\tShow this help menu\n")
case "0":
tools = [
"acccheck", "ace-voip", "amap", "automater", "braa", "casefile", "cdpsnarf", "cisco-torch",
"cookie-cadger", "copy-router-config", "dmitry", "dnmap", "dnsenum", "dnsmap", "dnsrecon",
"dnstracer", "dnswalk", "dotdotpwn", "enum4linux", "enumiax", "exploitdb", "fierce",
"firewalk", "fragroute", "fragrouter", "ghost-phisher", "golismero", "goofile", "lbd",
"maltego-teeth", "masscan", "metagoofil", "miranda", "nmap", "p0f", "parsero", "recon-ng",
"set", "smtp-user-enum", "snmpcheck", "sslcaudit", "sslsplit", "sslstrip", "sslyze",
"thc-ipv6", "theharvester", "tlssled", "twofi", "urlcrazy", "wireshark", "wol-e", "xplico",
"ismtp", "intrace", "hping3"
]
for tool in tools:
safe_install(f"apt-get install -y {tool}", tool)
# Install bing-ip2hosts
try:
print("\033[1;34m[*] Installing bing-ip2hosts...\033[1;m")
exit_code = os.system(
"wget http://www.morningstarsecurity.com/downloads/bing-ip2hosts-0.4.tar.gz && tar -xzvf bing-ip2hosts-0.4.tar.gz && cp bing-ip2hosts-0.4/bing-ip2hosts /usr/local/bin/")
if exit_code != 0:
print("\033[1;31m[!] Failed to install bing-ip2hosts\033[1;m")
FAILED_TOOLS.append("bing-ip2hosts")
else:
print("\033[1;32m[+] bing-ip2hosts installed successfully.\033[1;m")
except Exception as e:
print(f"\033[1;31m[!] Exception while installing bing-ip2hosts: {e}\033[1;m")
FAILED_TOOLS.append("bing-ip2hosts")
case "1":
safe_install("apt-get install -y acccheck", "acccheck")
case "2":
safe_install("apt-get install -y ace-voip", "ace-voip")
case "3":
safe_install("apt-get install -y amap", "amap")
case "4":
safe_install("apt-get install -y automater", "automater")
case "5":
try:
print("\033[1;34m[*] Installing bing-ip2hosts...\033[1;m")
exit_code = os.system(
"wget http://www.morningstarsecurity.com/downloads/bing-ip2hosts-0.4.tar.gz && tar -xzvf bing-ip2hosts-0.4.tar.gz && cp bing-ip2hosts-0.4/bing-ip2hosts /usr/local/bin/")
if exit_code != 0:
print("\033[1;31m[!] Failed to install bing-ip2hosts\033[1;m")
FAILED_TOOLS.append("bing-ip2hosts")
else:
print("\033[1;32m[+] bing-ip2hosts installed successfully.\033[1;m")
except Exception as e:
print(f"\033[1;31m[!] Exception while installing bing-ip2hosts: {e}\033[1;m")
FAILED_TOOLS.append("bing-ip2hosts")
case "6":
safe_install("apt-get install -y braa", "braa")
case "7":
safe_install("apt-get install -y casefile", "casefile")
case "8":
safe_install("apt-get install -y cdpsnarf", "cdpsnarf")
case "9":
safe_install("apt-get install -y cisco-torch", "cisco-torch")
case "10":
safe_install("apt-get install -y cookie-cadger", "cookie-cadger")
case "11":
safe_install("apt-get install -y copy-router-config", "copy-router-config")
case "12":
safe_install("apt-get install -y dmitry", "dmitry")
case "13":
safe_install("apt-get install -y dnmap", "dnmap")
case "14":
safe_install("apt-get install -y dnsenum", "dnsenum")
case "15":
safe_install("apt-get install -y dnsmap", "dnsmap")
case "16":
safe_install("apt-get install -y dnsrecon", "dnsrecon")
case "17":
safe_install("apt-get install -y dnstracer", "dnstracer")
case "18":
safe_install("apt-get install -y dnswalk", "dnswalk")
case "19":
safe_install("apt-get install -y dotdotpwn", "dotdotpwn")
case "20":
safe_install("apt-get install -y enum4linux", "enum4linux")
case "21":
safe_install("apt-get install -y enumiax", "enumiax")
case "22":
safe_install("apt-get install -y exploitdb", "exploitdb")
case "23":
safe_install("apt-get install -y fierce", "fierce")
case "24":
safe_install("apt-get install -y firewalk", "firewalk")
case "25":
safe_install("apt-get install -y fragroute", "fragroute")
case "26":
safe_install("apt-get install -y fragrouter", "fragrouter")
case "27":
safe_install("apt-get install -y ghost-phisher", "ghost-phisher")
case "28":
safe_install("apt-get install -y golismero", "golismero")
case "29":
safe_install("apt-get install -y goofile", "goofile")
case "30":
safe_install("apt-get install -y lbd", "lbd")
case "31":
safe_install("apt-get install -y maltego-teeth", "maltego-teeth")
case "32":
safe_install("apt-get install -y masscan", "masscan")
case "33":
safe_install("apt-get install -y metagoofil", "metagoofil")
case "34":
safe_install("apt-get install -y miranda", "miranda")
case "35":
safe_install("apt-get install -y nmap", "nmap")
case "36":
print('ntop is unavailable')
case "37":
safe_install("apt-get install -y p0f", "p0f")
case "38":
safe_install("apt-get install -y parsero", "parsero")
case "39":
safe_install("apt-get install -y recon-ng", "recon-ng")
case "40":
safe_install("apt-get install -y set", "set")
case "41":
safe_install("apt-get install -y smtp-user-enum", "smtp-user-enum")
case "42":
safe_install("apt-get install -y snmpcheck", "snmpcheck")
case "43":
safe_install("apt-get install -y sslcaudit", "sslcaudit")
case "44":
safe_install("apt-get install -y sslsplit", "sslsplit")
case "45":
safe_install("apt-get install -y sslstrip", "sslstrip")
case "46":
safe_install("apt-get install -y sslyze", "sslyze")
case "47":
safe_install("apt-get install -y thc-ipv6", "thc-ipv6")
case "48":
safe_install("apt-get install -y theharvester", "theharvester")
case "49":
safe_install("apt-get install -y tlssled", "tlssled")
case "50":
safe_install("apt-get install -y twofi", "twofi")
case "51":
safe_install("apt-get install -y urlcrazy", "urlcrazy")
case "52":
safe_install("apt-get install -y wireshark", "wireshark")
case "53":
safe_install("apt-get install -y wol-e", "wol-e")
case "54":
safe_install("apt-get install -y xplico", "xplico")
case "55":
safe_install("apt-get install -y ismtp", "ismtp")
case "56":
safe_install("apt-get install -y intrace", "intrace")
case "57":
safe_install("apt-get install -y hping3", "hping3")
case _:
print(
"\033[1;31mSorry, that was an invalid command!\033[1;m")
def install_vulnerability_analysis():
print('''
\033[1;36m=+[ Vulnerability Analysis\033[1;m
1) BBQSQL 18) Nmap
2) BED 19) ohrwurm
3) cisco-auditing-tool 20) openvas-administrator
4) cisco-global-exploiter 21) openvas-cli
5) cisco-ocs 22) openvas-manager
6) cisco-torch 23) openvas-scanner
7) copy-router-config 24) Oscanner
8) commix 25) Powerfuzzer
9) DBPwAudit 26) sfuzz
10) DoonaDot 27) SidGuesser
11) DotPwn 28) SIPArmyKnife
12) Greenbone Security Assistant 29) sqlmap
13) GSD 30) Sqlninja
14) HexorBase 31) sqlsus
15) Inguma 32) THC-IPV6
16) jSQL 33) tnscmd10g
17) Lynis 34) unix-privesc-check
35) Yersinia
0) Install all Vulnerability Analysis tools
''')
print(
"\033[1;32mInsert the number of the tool to install it .\n\033[1;m")
while True:
option2 = input("\033[1;36mkat > \033[1;m")
match option2:
case "exit" | "quit":
sys.exit()
case "back" | "gohome":
return
case "help":
print("Available commands:\n"
"back\t\tGo back to category menu\n"
"gohome\t\tGo to the main menu\n"
"exit\t\tExit the program\n"
"help\t\tShow this help menu\n")
case "0":
tools = [
"bbqsql", "bed", "cisco-auditing-tool", "cisco-global-exploiter", "cisco-ocs", "cisco-torch", "copy-router-config", "doona", "dotdotpwn", "greenbone-security-assistant", "hexorbase", "jsql", "lynis", "nmap", "ohrwurm", "openvas-cli", "openvas-manager", "openvas-scanner", "oscanner", "powerfuzzer", "sfuzz", "sidguesser", "siparmyknife", "sqlmap", "sqlninja", "sqlsus", "thc-ipv6", "tnscmd10g", "unix-privesc-check", "yersinia"
]
for tool in tools:
safe_install(f"apt-get install -y {tool}", tool)
case "1":
safe_install("apt-get install -y bbqsql", "bbqsql")
case "2":
safe_install("apt-get install -y bed", "bed")
case "3":
safe_install("apt-get install -y cisco-auditing-tool", "cisco-auditing-tool")
case "4":
safe_install("apt-get install -y cisco-global-exploiter", "cisco-global-exploiter")
case "5":
safe_install("apt-get install -y cisco-ocs", "cisco-ocs")
case "6":
safe_install("apt-get install -y cisco-torch", "cisco-torch")
case "7":
safe_install("apt-get install -y copy-router-config", "copy-router-config")
case "8":
try:
print("\033[1;34m[*] Installing commix...\033[1;m")
exit_code = os.system("apt-get install -y git && git clone https://github.com/stasinopoulos/commix.git commix && cd commix && python ./commix.py --install")
if exit_code != 0:
print("\033[1;31m[!] Failed to install commix\033[1;m")
FAILED_TOOLS.append("commix")
else:
print("\033[1;32m[+] commix installed successfully.\033[1;m")
except Exception as e:
print(f"\033[1;31m[!] Exception while installing commix: {e}\033[1;m")
FAILED_TOOLS.append("commix")
case "9":
print("download page : http://www.cqure.net/wp/tools/database/dbpwaudit/")
case "10":
safe_install("apt-get install -y doona", "doona")
case "11":
safe_install("apt-get install -y dotdotpwn", "dotdotpwn")
case "12":
safe_install("apt-get install -y greenbone-security-assistant", "greenbone-security-assistant")
case "13":
try:
print("\033[1;34m[*] Installing gsd...\033[1;m")
exit_code = os.system("apt-get install -y git && git clone git://git.kali.org/packages/gsd.git")
if exit_code != 0:
print("\033[1;31m[!] Failed to install gsd\033[1;m")
FAILED_TOOLS.append("gsd")
else:
print("\033[1;32m[+] gsd installed successfully.\033[1;m")
except Exception as e:
print(f"\033[1;31m[!] Exception while installing gsd: {e}\033[1;m")
FAILED_TOOLS.append("gsd")
case "14":
safe_install("apt-get install -y hexorbase", "hexorbase")
case "15":
print("Please download inguma from : http://inguma.sourceforge.net")
case "16":
safe_install("apt-get install -y jsql", "jsql")
case "17":
safe_install("apt-get install -y lynis", "lynis")
case "18":
safe_install("apt-get install -y nmap", "nmap")
case "19":
safe_install("apt-get install -y ohrwurm", "ohrwurm")
case "20":
safe_install("apt-get install -y openvas-administrator", "openvas-administrator")
case "21":
safe_install("apt-get install -y gvmd", "gvmd")
case "22":
safe_install("apt-get install -y gvmd", "gvmd")
case "23":
safe_install("apt-get install -y openvas-scanner", "openvas-scanner")
case "24":
safe_install("apt-get install -y oscanner", "oscanner")
case "25":
safe_install("apt-get install -y powerfuzzer", "powerfuzzer")
case "26":
safe_install("apt-get install -y sfuzz", "sfuzz")
case "27":
safe_install("apt-get install -y sidguesser", "sidguesser")
case "28":
safe_install("apt-get install -y siparmyknife", "siparmyknife")
case "29":
safe_install("apt-get install -y sqlmap", "sqlmap")
case "30":
safe_install("apt-get install -y sqlninja", "sqlninja")
case "31":
safe_install("apt-get install -y sqlsus", "sqlsus")
case "32":
safe_install("apt-get install -y thc-ipv6", "thc-ipv6")
case "33":
safe_install("apt-get install -y tnscmd10g", "tnscmd10g")
case "34":
safe_install("apt-get install -y unix-privesc-check", "unix-privesc-check")
case "35":
safe_install("apt-get install -y yersinia", "yersinia")
case _:
print(
"\033[1;31mSorry, that was an invalid command!\033[1;m")
def install_wireless_attacks():
print('''
\033[1;36m=+[ Wireless Attacks\033[1;m
1) Aircrack-ng 17) kalibrate-rtl
2) Asleap 18) KillerBee
3) Bluelog 19) Kismet
4) BlueMaho 20) mdk3
5) Bluepot 21) mfcuk
6) BlueRanger 22) mfoc
7) Bluesnarfer 23) mfterm
8) Bully 24) Multimon-NG
9) coWPAtty 25) PixieWPS
10) crackle 26) Reaver
11) eapmd5pass 27) redfang
12) Fern Wifi Cracker 28) RTLSDR Scanner
13) Ghost Phisher 29) Spooftooph
14) GISKismet 30) Wifi Honey
16) gr-scan 31) Wifitap
32) Wifite
0) Install all Wireless Attacks tools
''')
print(
"\033[1;32mInsert the number of the tool to install it .\n\033[1;m")
while True:
option2 = input("\033[1;36mkat > \033[1;m")
match option2:
case "exit" | "quit":
sys.exit()
case "back" | "gohome":
return
case "help":
print("Available commands:\n"
"back\t\tGo back to category menu\n"
"gohome\t\tGo to the main menu\n"
"exit\t\tExit the program\n"
"help\t\tShow this help menu\n")
case "0":
tools = [
"aircrack-ng", "asleap", "bluelog", "blueranger", "bluesnarfer", "bully",
"cowpatty", "crackle", "eapmd5pass", "fern-wifi-cracker", "ghost-phisher",
"giskismet", "gqrx-sdr", "kalibrate-rtl", "killerbee", "kismet", "mdk3",
"mfcuk", "mfoc", "mfterm", "multimon-ng", "pixiewps", "reaver", "redfang",
"spooftooph", "wifi-honey", "wifitap", "wifite"
]
for tool in tools:
safe_install(f"apt-get install -y {tool}", tool)
case "1":
os.system("apt-get install aircrack-ng")
case "2":
os.system("apt-get install asleap")
case "3":
os.system("apt-get install bluelog")
case "4":
os.system(
"apt-get install git && git clone git://git.kali.org/packages/bluemaho.git")
case "5":
os.system(
"apt-get install git && git clone git://git.kali.org/packages/bluepot.git")
case "6":
os.system("apt-get install blueranger")
case "7":
os.system("apt-get install bluesnarfer")
case "8":
os.system("apt-get install bully")
case "9":
os.system("apt-get install cowpatty")
case "10":
os.system("apt-get install crackle")
case "11":
os.system("apt-get install eapmd5pass")
case "12":
os.system(
"apt-get install fern-wifi-cracker")
case "13":
os.system(
"apt-get install ghost-phisher")
case "14":
os.system("apt-get install giskismet")
case "16":
os.system(
"apt-get install git && git clone git://git.kali.org/packages/gr-scan.git")
case "17":
os.system(
"apt-get install kalibrate-rtl")
case "18":
os.system("apt-get install killerbee")
case "19":
os.system("apt-get install kismet")
case "20":
os.system("apt-get install mdk3")
case "21":
os.system("apt-get install mfcuk")
case "22":
os.system("apt-get install mfoc")
case "23":
os.system("apt-get install mfterm")
case "24":
os.system("apt-get install multimon-ng")
case "25":
os.system("apt-get install pixiewps")
case "26":
os.system("apt-get install reaver")
case "27":
os.system("apt-get install redfang")
case "28":
os.system(
"apt-get install rtlsdr-scanner")
case "29":
os.system("apt-get install spooftooph")
case "30":
os.system("apt-get install wifi-honey")
case "31":
os.system("apt-get install wifitap")
case "32":
os.system("apt-get install wifite")
case _:
print(
"\033[1;31mSorry, that was an invalid command!\033[1;m")
def install_web_applications():
print('''
\033[1;36m=+[ Web Applications\033[1;m
1) apache-users 21) Parsero
2) Arachni 22) plecost
3) BBQSQL 23) Powerfuzzer
4) BlindElephant 24) ProxyStrike
5) Burp Suite 25) Recon-ng
6) commix 26) Skipfish
7) CutyCapt 27) sqlmap
8) DAVTest 28) Sqlninja
9) deblaze 29) sqlsus
10) DIRB 30) ua-tester
11) DirBuster 31) Uniscan
12) fimap 32) Vega
13) FunkLoad 33) w3af
14) Grabber 34) WebScarab
15) jboss-autopwn 35) Webshag
16) joomscan 36) WebSlayer
17) jSQL 37) WebSploit
18) Maltego Teeth 38) Wfuzz
19) PadBuster 39) WPScan
20) Paros 40) XSSer
41) zaproxy
0) Install all Web Applications tools
''')
print(
"\033[1;32mInsert the number of the tool to install it .\n\033[1;m")
while True:
option2 = input("\033[1;36mkat > \033[1;m")
match option2:
case "exit" | "quit":
sys.exit()
case "back" | "gohome":
return
case "help":
print("Available commands:\n"
"back\t\tGo back to category menu\n"
"gohome\t\tGo to the main menu\n"
"exit\t\tExit the program\n"
"help\t\tShow this help menu\n")
case "0":
tools = [
"apache-users", "arachni", "bbqsql", "blindelephant", "burpsuite", "cutycapt",
"davtest", "deblaze", "dirb", "dirbuster", "fimap", "funkload", "grabber",
"jboss-autopwn", "joomscan", "jsql", "maltego-teeth", "padbuster", "paros",
"parsero", "plecost", "powerfuzzer", "proxystrike", "recon-ng", "skipfish",
"sqlmap", "sqlninja", "sqlsus", "ua-tester", "uniscan", "vega", "w3af",
"webscarab", "websploit", "wfuzz", "wpscan", "xsser", "zaproxy"
]
for tool in tools:
safe_install(f"apt-get install -y {tool}", tool)
case "1":
os.system("apt-get install apache-users")
case "2":
os.system("apt-get install arachni")
case "3":
os.system("apt-get install bbqsql")
case "4":
os.system(
"apt-get install blindelephant")
case "5":
os.system("apt-get install burpsuite")
case "6":
os.system("apt-get install cutycapt")
case "7":
os.system(
"apt-get install git && git clone https://github.com/stasinopoulos/commix.git commix && cd commix && python ./commix.py --install")
case "8":
os.system("apt-get install davtest")
case "9":
os.system("apt-get install deblaze")
case "10":
os.system("apt-get install dirb")
case "11":
os.system("apt-get install dirbuster")
case "12":
os.system("apt-get install fimap")
case "13":
os.system("apt-get install funkload")
case "14":
os.system("apt-get install grabber")
case "15":
os.system(
"apt-get install jboss-autopwn")
case "16":
os.system("apt-get install joomscan")
case "17":
os.system("apt-get install jsql")
case "18":
os.system(
"apt-get install maltego-teeth")
case "19":
os.system("apt-get install padbuster")
case "20":
os.system("apt-get install paros")
case "21":
os.system("apt-get install parsero")
case "22":
os.system("apt-get install plecost")
case "23":
os.system("apt-get install powerfuzzer")
case "24":
os.system("apt-get install proxystrike")
case "25":
os.system("apt-get install recon-ng")
case "26":
os.system("apt-get install skipfish")
case "27":
os.system("apt-get install sqlmap")
case "28":
os.system("apt-get install sqlninja")
case "29":
os.system("apt-get install sqlsus")
case "30":
os.system("apt-get install ua-tester")
case "31":
os.system("apt-get install uniscan")
case "32":
os.system("apt-get install vega")
case "33":
os.system("apt-get install w3af")
case "34":
os.system("apt-get install webscarab")
case "35":
print("Webshag is unavailable")
case "36":
os.system(
"apt-get install git && git clone git://git.kali.org/packages/webslayer.git")
case "37":
os.system("apt-get install websploit")
case "38":
os.system("apt-get install wfuzz")
case "39":
os.system("apt-get install wpscan")
case "40":
os.system("apt-get install xsser")
case "41":
os.system("apt-get install zaproxy")
case _:
print(
"\033[1;31mSorry, that was an invalid command!\033[1;m")
def install_sniffing_spoofing():
print('''
\033[1;36m=+[ Sniffing & Spoofing\033[1;m
1) Burp Suite 17) rtpmixsound
2) DNSChef 18) sctpscan
3) fiked 19) SIPArmyKnife
4) hamster-sidejack 20) SIPp
5) HexInject 21) SIPVicious
6) iaxflood 22) SniffJoke
7) inviteflood 23) SSLsplit
8) iSMTP 24) sslstrip
9) isr-evilgrade 25) THC-IPV6
10) mitmproxy 26) VoIPHopper
11) ohrwurm 27) WebScarab
12) protos-sip 28) Wifi Honey
13) rebind 29) Wireshark
14) responder 30) xspy
15) rtpbreak 31) Yersinia
16) rtpinsertsound 32) zaproxy
0) Install all Sniffing & Spoofing tools
''')
print(
"\033[1;32mInsert the number of the tool to install it .\n\033[1;m")
while True:
option2 = input("\033[1;36mkat > \033[1;m")
match option2:
case "exit" | "quit":
sys.exit()
case "back" | "gohome":
return
case "help":
print("Available commands:\n"
"back\t\tGo back to category menu\n"
"gohome\t\tGo to the main menu\n"
"exit\t\tExit the program\n"
"help\t\tShow this help menu\n")
case "0":
tools = [
"burpsuite", "dnschef", "fiked", "hamster-sidejack", "hexinject", "iaxflood",
"inviteflood", "ismtp", "mitmproxy", "ohrwurm", "protos-sip", "rebind",
"responder", "rtpbreak", "rtpinsertsound", "rtpmixsound", "sctpscan",
"siparmyknife", "sipp", "sipvicious", "sniffjoke", "sslsplit", "sslstrip",
"thc-ipv6", "voiphopper", "webscarab", "wifi-honey", "wireshark", "xspy",
"yersinia", "zaproxy"
]
for tool in tools:
safe_install(f"apt-get install -y {tool}", tool)
case "1":
os.system("apt-get install burpsuite")
case "2":
os.system("apt-get install dnschef")
case "3":
os.system("apt-get install fiked")
case "4":
os.system(
"apt-get install hamster-sidejack")
case "5":
os.system("apt-get install hexinject")
case "6":
os.system("apt-get install iaxflood")
case "7":
os.system("apt-get install inviteflood")
case "8":
os.system("apt-get install ismtp")
case "9":
os.system(
"apt-get install git && git clone git://git.kali.org/packages/isr-evilgrade.git")
case "10":
os.system("apt-get install mitmproxy")
case "11":
os.system("apt-get install ohrwurm")
case "12":
os.system("apt-get install protos-sip")
case "13":
os.system("apt-get install rebind")
case "14":
os.system("apt-get install responder")
case "15":
os.system("apt-get install rtpbreak")
case "16":
os.system(
"apt-get install rtpinsertsound")
case "17":
os.system("apt-get install rtpmixsound")
case "18":
os.system("apt-get install sctpscan")
case "19":
os.system("apt-get install siparmyknife")
case "20":
os.system("apt-get install sipp")
case "21":
os.system("apt-get install sipvicious")
case "22":
os.system("apt-get install sniffjoke")
case "23":
os.system("apt-get install sslsplit")
case "24":
os.system("apt-get install sslstrip")
case "25":
os.system("apt-get install thc-ipv6")
case "26":
os.system("apt-get install voiphopper")
case "27":
os.system("apt-get install webscarab")
case "28":
os.system("apt-get install wifi-honey")
case "29":
os.system("apt-get install wireshark")
case "30":
os.system("apt-get install xspy")
case "31":
os.system("apt-get install yersinia")
case "32":
os.system("apt-get install zaproxy")
case _:
print(
"\033[1;31mSorry, that was an invalid command!\033[1;m")
def install_maintaining_access():
print('''
\033[1;36m=+[ Maintaining Access\033[1;m