-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux-elite.sh
More file actions
6905 lines (6175 loc) · 256 KB
/
linux-elite.sh
File metadata and controls
6905 lines (6175 loc) · 256 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
#!/bin/bash
ver="5.0"
# Global variables (menu paths: XDG base dirs, same on Ubuntu and Kali)
GOPROXY="https://goproxy.cn,direct"
USERS=$(ls /home | head -1)
LAN=$(hostname -I | awk '{print $1}')
BASE="/home/$USERS"
CONFIG_MENU="$BASE/.config/menus"
IMAGES="$BASE/.local/share/images"
APPLICATIONS="$BASE/.local/share/applications"
DESKTOP_DIRECTORIES="$BASE/.local/share/desktop-directories"
# Color definitions
readonly GREEN="\033[32m"
readonly WHITE="\033[37m"
readonly RED="\033[31m"
readonly BLUE="\033[34m"
readonly YELLOW="\033[33m"
readonly CYAN="\033[36m"
readonly MAGENTA="\033[35m"
readonly RESET="\033[0m"
# Message display functions
error()
{
echo -e "${RED}[-] Error: $1${RESET}" >&2
exit 1
}
success()
{
echo -e "${GREEN}[+] $1${RESET}"
}
warning()
{
echo -e "${YELLOW}[!] $1${RESET}"
}
info()
{
echo -e "${BLUE}[*] $1${RESET}"
}
# Check if the script is run as root
if [[ $EUID -ne 0 ]]; then
warning "This script must be run as root..."
else
# Required packages
REQUIRED_PACKAGES=(wget curl git net-tools gnupg apt-transport-https unzip alacarte locate ca-certificates debsig-verify xmlstarlet)
# Check if apt cache is older than 7 days
APT_CACHE="/var/lib/apt/periodic/update-success-stamp"
if [ ! -f "$APT_CACHE" ] || [ "$(find "$APT_CACHE" -mtime +6 2>/dev/null)" ]; then
info "System not updated in the last 7 days. Updating now."
apt update;apt upgrade -qy;apt dist-upgrade -qy;apt autoremove -qy;apt autoclean
else
success "System is up-to-date (within 7 days). Skipping update."
fi
# Install missing packages only
info "Checking and installing required packages."
for pkg in "${REQUIRED_PACKAGES[@]}"; do
if ! dpkg -s "$pkg" &>/dev/null; then
warning "Installing missing package: $pkg"
apt install -qy "$pkg"
else
success "Package already installed: $pkg"
fi
done
fi
# Display ASCII art logo
logo()
{
reset;clear
echo -e "${GREEN} --/osssssssssssso/-- "
echo -e "${GREEN} -+sss+-+--os.yo:++/.o-/sss+- "
echo -e "${GREEN} /sy+++-.h.-dd++m+om/s.h.hy/:+oys/ "
echo -e "${GREEN} .sy/// h/h-:d-y:/+-/+-+/-s/sodooh:///ys. "
echo -e "${GREEN} -ys-ss/:y:so-/osssso++++osssso+.oo+/s-:o.sy- "
echo -e "${GREEN} -ys:oossyo/+oyo/:-:.-:.:/.:/-.-:/syo/+/s+:oo:sy- "
echo -e "${GREEN} /d/:-soh/-+ho-.:::--:- .os: -:-.:-/::sy+:+ysso+:d/ "
echo -e "${GREEN} sy-..+oo-+h:--:..hy+y/ :s+. /y/sh..:/-:h+-oyss:.ys "
echo -e "${WHITE} ys :+oo/:d/ .m-yyyo/- - -: .+oyhy-N. /d::yosd.sy "
echo -e "${WHITE} oy.++++//d. ::oNdyo: .--. :oyhN+-: .d//s//y.ys "
echo -e "${WHITE} :m-y+++//d- dyyy++::-. -.o.-+.- .-::/+hsyd -d/so+++.m: "
echo -e "${WHITE} -d/-/+++.m- /.ohso- ://:///++++///://: :odo.+ -m.syoo:/d-"
echo -e "${WHITE} :m-+++y:y+ smyms- -//+/-ohho-/+//- omsmo +y s+oy-m:"
echo -e "${WHITE} sy:+++y-N- -.dy+:...-- :: ./hh/. :: --...//hh.: -N-o+/:-so"
echo -e "${WHITE} yo-///s-m odohd.-.--:/o.-+/::/+-.o/:--.--hd:ho m-s+++-+y"
echo -e "${WHITE} yo::/+o-m -yNy/: ...:+s.//:://.s+:... :/yNs m-h++++oy"
echo -e "${WHITE} oy/hsss-N- oo:oN- .-o.:ss:--:ss:.o-. -My-oo -N-o+++.so"
echo -e "${WHITE} :m :++y:y+ sNMy+: -+/:.--:////:--.:/+- -+hNNs +y-o++o-m:"
echo -e "${WHITE} -d/::+o+.m- -:/+ho:. -//- ./sdo::- -m-o++++/d-"
echo -e "${WHITE} :m-yo++//d- -ommMo// -: +oyNhmo- -d//s+++-m: "
echo -e "${WHITE} oy /o++//d. -::/oMss- -+++s :yNy+/: .d//y+---ys "
echo -e "${WHITE} ys--+o++:d/ -/sdmNysNs+/./-//-//hNyyNmmy+- /d-+y--::sy "
echo -e "${RED} sy:..ooo-+h/--.-//odm/hNh--yNh+Ndo//-./:/h+-so+:+/ys "
echo -e "${RED} /d-o.ssy+-+yo:/:/:-:+sho..ohs/-:://::oh+.h//syo-d/ "
echo -e "${RED} -ys-oosyss:/oyy//::..-.--.--:/.//syo+-ys//o/.sy- "
echo -e "${RED} -ys.sooh+d-s:+osssysssosssssso:/+/h:/yy/.sy- "
echo -e "${RED} .sy/:os.h--d/o+-/+:o:/+.+o:d-y+h-o+-+ys. "
echo -e "${RED} :sy+:+ s//sy-y.-h-m/om:s-y.++/+ys/ "
echo -e "${RED} -+sss+/o/ s--y.s+/:++-+sss+- "
echo -e "${RED} --/osssssssssssso/-- "
echo -e "${BLUE} Unk9vvN "
echo -e "${YELLOW} unk9vvn.github.io "
echo -e "${CYAN} Linux Elite ${ver} "
echo -e "\n"
}
# menu creator
create_menu()
{
local TOPIC_MENU="$1"
local SUB_MENU="$2"
shift 2
local SUB_MENU_ITEMS=("$@")
# Download the main icon
curl -s -o "$IMAGES/${SUB_MENU}.png" "https://raw.githubusercontent.com/unk9vvn/unk9vvn.github.io/main/images/${SUB_MENU}.png"
# Create the main menu folder
mkdir -p "$APPLICATIONS/Unk9vvN/$SUB_MENU"
# Create the .directory file for the main menu
cat > "$DESKTOP_DIRECTORIES/${SUB_MENU}.directory" << EOF
[Desktop Entry]
Name=${SUB_MENU}
Comment=${TOPIC_MENU}
Icon=$IMAGES/${SUB_MENU}.png
Type=Directory
EOF
# Add the main menu to the XML file
xmlstarlet ed \
-s "/Menu/Menu[Name='Unk9vvN']" -t elem -n "Menu" -v "" \
-s "/Menu/Menu[Name='Unk9vvN']/Menu[last()]" -t elem -n "Name" -v "$SUB_MENU" \
-s "/Menu/Menu[Name='Unk9vvN']/Menu[last()]" -t elem -n "Directory" -v "${SUB_MENU}.directory" \
"$CONFIG_MENU/xfce-applications.menu" > "$CONFIG_MENU/xfce-applications.tmp" && \
mv "$CONFIG_MENU/xfce-applications.tmp" "$CONFIG_MENU/xfce-applications.menu"
# Create separate submenu for each item (batch directory files and XML edits)
local SUBMENU_ED_OPTS=() LAYOUT_OPTS=()
for ITEM in "${SUB_MENU_ITEMS[@]}"; do
mkdir -p "$APPLICATIONS/Unk9vvN/$SUB_MENU/$ITEM"
cat > "$DESKTOP_DIRECTORIES/${SUB_MENU}-${ITEM}.directory" << EOF
[Desktop Entry]
Name=${ITEM}
Comment=${SUB_MENU}
Icon=folder
Type=Directory
EOF
SUBMENU_ED_OPTS+=(-s "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']" -t elem -n "Menu" -v "" \
-s "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']/Menu[last()]" -t elem -n "Name" -v "${SUB_MENU}-${ITEM}" \
-s "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']/Menu[last()]" -t elem -n "Directory" -v "${SUB_MENU}-${ITEM}.directory" \
-s "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']/Menu[last()]" -t elem -n "Include" -v "")
LAYOUT_OPTS+=(-s "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']/Layout" -t elem -n "Menuname" -v "${SUB_MENU}-${ITEM}")
done
# Batch add all submenus to XML (one file write instead of N)
xmlstarlet ed "${SUBMENU_ED_OPTS[@]}" "$CONFIG_MENU/xfce-applications.menu" > "$CONFIG_MENU/xfce-applications.tmp" && \
mv "$CONFIG_MENU/xfce-applications.tmp" "$CONFIG_MENU/xfce-applications.menu"
# Add Layout and batch all Menuname entries (one write for Layout, one for all Menunames)
xmlstarlet ed \
-s "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']" -t elem -n "Layout" -v "" \
-s "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']/Layout" -t elem -n "Merge" -v "" \
-i "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']/Layout/Merge" -t attr -n "type" -v "menus" \
"${LAYOUT_OPTS[@]}" \
-s "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']/Layout" -t elem -n "Merge" -v "" \
-i "/Menu/Menu[Name='Unk9vvN']/Menu[Name='$SUB_MENU']/Layout/Merge[last()]" -t attr -n "type" -v "files" \
"$CONFIG_MENU/xfce-applications.menu" > "$CONFIG_MENU/xfce-applications.tmp" && \
mv "$CONFIG_MENU/xfce-applications.tmp" "$CONFIG_MENU/xfce-applications.menu"
}
# main menu
menu()
{
mkdir -p "$IMAGES"
mkdir -p "$CONFIG_MENU"
mkdir -p "$APPLICATIONS"
mkdir -p "$DESKTOP_DIRECTORIES"
# Initialize Unk9vvN menu
if [ ! -f "$CONFIG_MENU/xfce-applications.menu" ]; then
# If the menu file does not exist, copy it from the system default file
if [ -f "/etc/xdg/menus/xfce-applications.menu" ]; then
cp "/etc/xdg/menus/xfce-applications.menu" "$CONFIG_MENU/xfce-applications.menu"
else
# If the default file doesn't exist, create a simple menu file
cat > "$CONFIG_MENU/xfce-applications.menu" << EOF
<?xml version="1.0" ?>
<!DOCTYPE Menu
PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'>
<Menu>
<Name>Xfce</Name>
<MergeFile type="parent">/etc/xdg/menus/xfce-applications.menu</MergeFile>
<DefaultLayout inline="false"/>
<Menu>
<Name>alacarte-made</Name>
<Directory>alacarte-made.directory</Directory>
</Menu>
<Layout>
<Merge type="menus"/>
<Filename>xfce4-run.desktop</Filename>
<Separator/>
<Filename>xfce4-terminal-emulator.desktop</Filename>
<Filename>xfce4-file-manager.desktop</Filename>
<Filename>xfce4-mail-reader.desktop</Filename>
<Filename>xfce4-web-browser.desktop</Filename>
<Separator/>
<Menuname>Settings</Menuname>
<Menuname>Usual Applications</Menuname>
<Separator/>
<Menuname>Information Gathering</Menuname>
<Menuname>Vulnerability Analysis</Menuname>
<Menuname>Web Application Analysis</Menuname>
<Menuname>Database Assessment</Menuname>
<Menuname>Password Attacks</Menuname>
<Menuname>Wireless Attacks</Menuname>
<Menuname>Reverse Engineering</Menuname>
<Menuname>Exploit Frameworks</Menuname>
<Menuname>Sniffing - Spoofing</Menuname>
<Menuname>Maintaining Access</Menuname>
<Menuname>Forensic Tools</Menuname>
<Menuname>Reporting Tools</Menuname>
<Menuname>Social Engineering Tools</Menuname>
<Menuname>System Services</Menuname>
<Menuname>Kali and OffSec Links</Menuname>
<Separator/>
<Filename>xfce4-about.desktop</Filename>
<Filename>xfce4-session-logout.desktop</Filename>
<Merge type="files"/>
</Layout>
</Menu>
EOF
fi
chmod 664 "$CONFIG_MENU/xfce-applications.menu"
fi
# Initialize Unk9vvN menu
curl -s -o "$IMAGES/unk9vvn-logo.jpg" "https://raw.githubusercontent.com/unk9vvn/unk9vvn.github.io/main/images/unk9vvn-logo.jpg"
mkdir -p "$APPLICATIONS/Unk9vvN"
cat > "$DESKTOP_DIRECTORIES/Unk9vvN.directory" << EOF
[Desktop Entry]
Name=Unk9vvN
Comment=unk9vvn.github.io
Icon=$IMAGES/unk9vvn-logo.jpg
Type=Directory
EOF
# Add Unk9vvN menu to menu file
if ! xmlstarlet sel -Q -t -v "/Menu/Menu[Name='Unk9vvN']" "$CONFIG_MENU/xfce-applications.menu"; then
xmlstarlet ed \
-s "/Menu" -t elem -n "Menu" -v "" \
-s "/Menu/Menu[last()]" -t elem -n "Name" -v "Unk9vvN" \
-s "/Menu/Menu[last()]" -t elem -n "Directory" -v "Unk9vvN.directory" \
"$CONFIG_MENU/xfce-applications.menu" > "$CONFIG_MENU/xfce-applications.tmp" && \
mv "$CONFIG_MENU/xfce-applications.tmp" "$CONFIG_MENU/xfce-applications.menu"
fi
# Add the Unk9vvN menu to the Layout section of the menu file
if ! xmlstarlet sel -Q -t -v "/Menu/Layout/Menuname[text()='Unk9vvN']" "$CONFIG_MENU/xfce-applications.menu"; then
xmlstarlet ed \
-s "/Menu/Layout" -t elem -n "Menuname" -v "Unk9vvN" \
"$CONFIG_MENU/xfce-applications.menu" > "$CONFIG_MENU/xfce-applications.tmp" && \
mv "$CONFIG_MENU/xfce-applications.tmp" "$CONFIG_MENU/xfce-applications.menu"
fi
# Initialize additional menus
create_menu "Offensive-Security" "Penetration-Testing" "Web Mobile Cloud Network Wireless IoT"
create_menu "Offensive-Security" "Red-Team" "Reconnaissance Resource-Development Initial-Access Execution Persistence Privilege-Escalation Defense-Evasion Credential-Access Discovery Lateral-Movement Collection Command-and-Control Exfiltration Impact"
create_menu "Offensive-Security" "ICS-Security" "Penetration-Testing Red-Team Digital-Forensic Blue-Team"
create_menu "Defensive-Security" "Digital-Forensic" "Reverse-Engineering Malware-Analysis Threat-Hunting Incident-Response Threat-Intelligence"
create_menu "Defensive-Security" "Blue-Team" "Harden Detect Isolate Deceive Evict"
create_menu "Defensive-Security" "Security-Audit" "Preliminary-Audit-Assessment Planning-and-Preparation Establishing-Audit-Objectives Performing-the-Review Preparing-the-Audit-Report Issuing-the-Review-Report"
}
# desktop menu (Exec= uses exec_shell: Kali=kali-menu, Ubuntu=ubuntu-menu or fallback)
menu_entry()
{
local sub_category="$1"
local category="$2"
local tool="$3"
local command="$4"
# Create the .desktop file for the tool
cat > "$APPLICATIONS/Unk9vvN/${category}/${sub_category}/${tool}.desktop" << EOF
[Desktop Entry]
Name=${tool}
Exec=${command}
Comment=
Terminal=true
Icon=gnome-panel-launcher
Type=Application
EOF
# Find the correct menu path for this subcategory
local menu_path="/Menu/Menu[Name='Unk9vvN']/Menu[Name='${category}']/Menu[Name='${category}-${sub_category}']"
# Check if Include element exists (use count(); empty Include would make -v output nothing and add duplicate)
local include_count
include_count=$(xmlstarlet sel -Q -t -v "count(${menu_path}/Include)" "$CONFIG_MENU/xfce-applications.menu" 2>/dev/null) || include_count=0
[ -z "$include_count" ] && include_count=0
if [ "$include_count" -eq 0 ]; then
xmlstarlet ed \
-s "${menu_path}" -t elem -n "Include" -v "" \
"$CONFIG_MENU/xfce-applications.menu" > "$CONFIG_MENU/xfce-applications.tmp" && \
mv "$CONFIG_MENU/xfce-applications.tmp" "$CONFIG_MENU/xfce-applications.menu"
fi
# Add the tool to the existing Include section if it doesn't already exist
if ! xmlstarlet sel -Q -t -v "${menu_path}/Include/Filename[text()='${tool}.desktop']" "$CONFIG_MENU/xfce-applications.menu"; then
xmlstarlet ed \
-s "${menu_path}/Include" -t elem -n "Filename" -v "${tool}.desktop" \
"$CONFIG_MENU/xfce-applications.menu" > "$CONFIG_MENU/xfce-applications.tmp" && \
mv "$CONFIG_MENU/xfce-applications.tmp" "$CONFIG_MENU/xfce-applications.menu"
fi
}
# pip installer
pip_installer()
{
local sub_category="$1"
local category="$2"
local pip_string="${3:-}" # Receive the list of packages as a string
[ -z "$pip_string" ] && return 0
# Iterate over the space-separated packages in the string
for package in $pip_string; do
# Add a menu entry for the package
menu_entry "${sub_category}" "${category}" "${package}" "$exec_shell sudo $package -h"
# Run the pip installation command
pip3 install --break-system-packages "${package}"
# Print a success message
success "Successfully Installed ${package}"
done
}
# npm installer
npm_installer()
{
local sub_category="$1"
local category="$2"
local npm_string="${3:-}"
[ -z "$npm_string" ] && return 0
for package in $npm_string; do
# Add a menu entry for the package
menu_entry "${sub_category}" "${category}" "${package}" "$exec_shell sudo $package -h"
# Run the npm installation command
npm install -g "${package}"
# Print a success message
success "Successfully Installed ${package}"
done
}
# gem installer
gem_installer()
{
local sub_category="$1"
local category="$2"
local gem_string="${3:-}"
[ -z "$gem_string" ] && return 0
for package in $gem_string; do
# Add a menu entry for the package
menu_entry "${sub_category}" "${category}" "${package}" "$exec_shell sudo $package -h"
# Run the gem installation command
gem install "${package}"
# Print a success message
success "Successfully Installed ${package}"
done
}
# go installer
go_installer()
{
local sub_category="$1"
local category="$2"
local commands="${3:-}"
[ -z "$commands" ] && return 0
while IFS= read -r line; do
# Parse the Go binary name if a symbolic link is present
if [[ $line == *"ln -fs"* ]]; then
symlink=$(echo "$line" | awk '{print $NF}')
symlink=${symlink#/}
symlink=${symlink%/}
binary=$(basename "$symlink")
# Add a menu entry for the binary
menu_entry "${sub_category}" "${category}" "${binary}" "$exec_shell sudo $binary -h"
# Print a success message for the binary
success "Successfully Installed ${binary}"
fi
# Execute the Go installation or linking command
eval "$line"
done <<< "$commands"
}
# penetration testing tools
penetrating_testing()
{
printf "$YELLOW" "# --------------------------------------Web-Penetration-Testing-------------------------------------- #"
# install Repository Tools
apt install -qy tor obfs4proxy proxychains polipo snmp snmp-mibs-downloader dirsearch nuclei s3scanner rainbowcrack payloadsallthethings hakrawler netexec gobuster ripgrep davtest httprint ffuf gvm seclists subfinder amass arjun metagoofil sublist3r cupp gifsicle aria2 phpggc emailharvester osrframework jq pngtools gitleaks trufflehog maryam dosbox wig eyewitness oclgausscrack websploit inspy pigz massdns gospider proxify dotdotpwn goofile firewalk bing-ip2hosts webhttrack oathtool tcptrack tnscmd10g getallurls padbuster feroxbuster subjack cyberchef whatweb xmlstarlet sslscan assetfinder dnsgen mdbtools pocsuite3 masscan dnsx gsutil libmemcached-tools dnsrecon
# install Python3 pip
web_pip="pyjwt arjun py-altdns uro defaultcreds-cheat-sheet pymultitor autosubtakeover kube-hunter jsbeautifier bbot droopescan crlfsuite ggshield selenium proxyhub njsscan detect-secrets regexploit h8mail huntsman nodejsscan hashpumpy bhedak gitfive pyexfil wsgidav defaultcreds-cheat-sheet hiphp pasteme-cli aiodnsbrute semgrep smbclientng graphinder wsrepl apachetomcatscanner dotdotfarm pymetasec theharvester chiasmodon puncia slither-analyzer mythril ja3"
pip_installer "Web" "Penetration-Testing" "$web_pip"
# install Nodejs NPM
web_npm="jwt-cracker graphql padding-oracle-attacker whonow js-deobfuscator uglify-js javascript-obfuscator serialize-javascript http-proxy-to-socks node-serialize igf electron-packager redos serialize-to-js dompurify nodesub multitor crlfi infoooze hardhat is-website-vulnerable solgraph"
npm_installer "Web" "Penetration-Testing" "$web_npm"
# install Ruby GEM
web_gem="ssrf_proxy API_Fuzzer dawnscanner mechanize XSpear pass-station"
gem_installer "Web" "Penetration-Testing" "$web_gem"
# install Golang
web_golang="
go install github.com/dwisiswant0/go-dork@latest;ln -fs ~/go/bin/go-dork /usr/bin/go-dork
go install github.com/Macmod/godap/v2@latest;ln -fs ~/go/bin/godap /usr/bin/godap
go install github.com/tomnomnom/waybackurls@latest;ln -fs ~/go/bin/waybackurls /usr/bin/waybackurls
go install github.com/tomnomnom/httprobe@latest;ln -fs ~/go/bin/httprobe /usr/bin/httprobe
go install github.com/tomnomnom/meg@latest;ln -fs ~/go/bin/meg /usr/bin/meg
go install github.com/projectdiscovery/katana/cmd/katana@latest;ln -fs ~/go/bin/katana /usr/bin/katana
go install github.com/j3ssie/osmedeus@latest;ln -fs ~/go/bin/osmedeus /usr/bin/osmedeus
go install github.com/rverton/webanalyze/cmd/webanalyze@latest;ln -fs ~/go/bin/webanalyze /usr/bin/webanalyze
go install github.com/edoardottt/cariddi/cmd/cariddi@latest;ln -fs ~/go/bin/cariddi /usr/bin/cariddi
go install github.com/glebarez/cero@latest;ln -fs ~/go/bin/cero /usr/bin/cero
go install github.com/aquasecurity/tfsec/cmd/tfsec@latest;ln -fs ~/go/bin/tfsec /usr/bin/tfsec
go install github.com/1hehaq/recx@latest;ln -fs ~/go/bin/recx /usr/bin/recx
go install github.com/tomnomnom/qsreplace@latest;ln -fs ~/go/bin/qsreplace /usr/bin/qsreplace
go install github.com/yasserjanah/FacebookChecker@latest;ln -fs ~/go/bin/FacebookChecker /usr/bin/facebookchecker
go install github.com/karust/unjsfuck@latest;ln -fs ~/go/bin/unjsfuck /usr/bin/unjsfuck
go install github.com/mhmdiaa/chronos@latest;ln -fs ~/go/bin/chronos /usr/bin/chronos
go install github.com/edoardottt/csprecon/cmd/csprecon@latest;ln -fs ~/go/bin/csprecon /usr/bin/csprecon
go install github.com/shivangx01b/CorsMe@latest;ln -fs ~/go/bin/CorsMe /usr/bin/corsme
go install github.com/pwnesia/dnstake/cmd/dnstake@latest;ln -fs ~/go/bin/dnstake /usr/bin/dnstake
go install github.com/projectdiscovery/uncover/cmd/uncover@latest;ln -fs ~/go/bin/uncover /usr/bin/uncover
go install github.com/projectdiscovery/dnsprobe@latest;ln -fs ~/go/bin/dnsprobe /usr/bin/dnsprobe
go install github.com/ryandamour/crlfmap@latest;ln -fs ~/go/bin/crlfmap /usr/bin/crlfmap
go install github.com/Chocapikk/wpprobe@latest;ln -fs ~/go/bin/wpprobe /usr/bin/wpprobe
go install github.com/bp0lr/gauplus@latest;ln -fs ~/go/bin/gauplus /usr/bin/gauplus
go install github.com/tomnomnom/anew@latest;ln -fs ~/go/bin/anew /usr/bin/anew
go install github.com/projectdiscovery/tldfinder/cmd/tldfinder@latest;ln -fs ~/go/bin/tldfinder /usr/bin/tldfinder
go install github.com/hahwul/dalfox/v2@latest;ln -fs ~/go/bin/dalfox /usr/bin/dalfox
go install github.com/projectdiscovery/urlfinder/cmd/urlfinder@latest;ln -fs ~/go/bin/urlfinder /usr/bin/urlfinder
go install github.com/BishopFox/jsluice/cmd/jsluice@latest;ln -fs ~/go/bin/jsluice /usr/bin/jsluice
go install github.com/projectdiscovery/mapcidr/cmd/mapcidr@latest;ln -fs ~/go/bin/mapcidr /usr/bin/mapcidr
go install github.com/eth0izzle/shhgit@latest;ln -fs ~/go/bin/shhgit /usr/bin/shhgit
go install github.com/KathanP19/Gxss@latest;ln -fs ~/go/bin/Gxss /usr/bin/gxss
go install github.com/KathanP19/cf-hero@latest;ln -fs ~/go/bin/cf-hero /usr/bin/cf-hero
go install github.com/bountysecurity/gbounty/cmd/gbounty@latest;ln -fs ~/go/bin/gbounty /usr/bin/gbounty
go install github.com/003random/getJS@latest;ln -fs ~/go/bin/getJS /usr/bin/getjs
go install github.com/musana/fuzzuli@latest;ln -fs ~/go/bin/fuzzuli /usr/bin/fuzzuli
go install github.com/jaeles-project/gospider@latest;ln -fs ~/go/bin/gospider /usr/bin/gospider
go install github.com/trickest/mksub@latest;ln -fs ~/go/bin/mksub /usr/bin/mksub
go install github.com/nullt3r/udpx/cmd/udpx@latest;ln -fs ~/go/bin/udpx /usr/bin/udpx
go install github.com/PentestPad/subzy@latest;ln -fs ~/go/bin/subzy /usr/bin/subzy
go install github.com/trickest/dsieve@latest;ln -fs ~/go/bin/dsieve /usr/bin/dsieve
go install github.com/gwen001/github-subdomains@latest;ln -fs ~/go/bin/github-subdomains /usr/bin/github-subdomains
go install github.com/d3mondev/puredns/v2@latest;ln -fs ~/go/bin/puredns /usr/bin/puredns
go install github.com/nytr0gen/deduplicate@latest;ln -fs ~/go/bin/deduplicate /usr/bin/deduplicate
go install github.com/projectdiscovery/cvemap/cmd/cvemap@latest;ln -fs ~/go/bin/cvemap /usr/bin/cvemap
go install github.com/tomnomnom/gf@latest;ln -fs ~/go/bin/gf /usr/bin/gf
go install github.com/tomnomnom/gron@latest;ln -fs ~/go/bin/gron /usr/bin/gron
go install github.com/projectdiscovery/chaos-client/cmd/chaos@latest;ln -fs ~/go/bin/chaos /usr/bin/chaos
go install github.com/Hackmanit/TInjA@latest;ln -fs ~/go/bin/TInjA /usr/bin/tinja
go install github.com/moopinger/smugglefuzz@latest;ln -fs ~/go/bin/smugglefuzz /usr/bin/smugglefuzz
go install github.com/harleo/asnip@latest;ln -fs ~/go/bin/asnip /usr/bin/asnip
go install github.com/hideckies/fuzzagotchi@latest;ln -fs ~/go/bin/fuzzagotchi /usr/bin/fuzzagotchi
go install github.com/projectdiscovery/alterx/cmd/alterx@latest;ln -fs ~/go/bin/alterx /usr/bin/alterx
go install github.com/hideckies/aut0rec0n@latest;ln -fs ~/go/bin/aut0rec0n /usr/bin/aut0rec0n
go install github.com/hahwul/jwt-hack@latest;ln -fs ~/go/bin/jwt-hack /usr/bin/jwt-hack
go install github.com/BishopFox/sj@latest;ln -fs ~/go/bin/sj /usr/bin/sj
go install github.com/hakluke/haktrails@latest;ln -fs ~/go/bin/haktrails /usr/bin/haktrails
go install github.com/securebinary/firebaseExploiter@latest;ln -fs ~/go/bin/firebaseExploiter /usr/bin/firebaseexploiter
go install github.com/devanshbatham/headerpwn@latest;ln -fs ~/go/bin/headerpwn /usr/bin/headerpwn
go install github.com/dwisiswant0/cf-check@latest;ln -fs ~/go/bin/cf-check /usr/bin/cfcheck
go install github.com/mlcsec/headi@latest;ln -fs ~/go/bin/headi /usr/bin/headi
go install github.com/takshal/freq@latest;ln -fs ~/go/bin/freq /usr/bin/freq
go install github.com/hakluke/hakrevdns@latest;ln -fs ~/go/bin/hakrevdns /usr/bin/hakrevdns
go install github.com/hakluke/haktldextract@latest;ln -fs ~/go/bin/haktldextract /usr/bin/haktldextract
go install github.com/Emoe/kxss@latest;ln -fs ~/go/bin/kxss /usr/bin/kxss
go install github.com/Josue87/gotator@latest;ln -fs ~/go/bin/gotator /usr/bin/gotator
go install github.com/trap-bytes/gourlex@latest;ln -fs ~/go/bin/gourlex /usr/bin/gourlex
go install github.com/musana/fuzzuli@latest;ln -fs ~/go/bin/fuzzuli /usr/bin/fuzzuli
go install github.com/jaeles-project/jaeles@latest;ln -fs ~/go/bin/jaeles /usr/bin/jaeles
go install github.com/hakluke/haklistgen@latest;ln -fs ~/go/bin/haklistgen /usr/bin/haklistgen
go install github.com/tomnomnom/anew@latest;ln -fs ~/go/bin/anew /usr/bin/anew
go install github.com/edoardottt/pphack/cmd/pphack@latest;ln -fs ~/go/bin/pphack /usr/bin/pphack
go install github.com/lc/subjs@latest;ln -fs ~/go/bin/subjs /usr/bin/subjs
go install github.com/dwisiswant0/unew@latest;ln -fs ~/go/bin/unew /usr/bin/unew
go install github.com/edoardottt/favirecon/cmd/favirecon@latest;ln -fs ~/go/bin/favirecon /usr/bin/favirecon
go install github.com/tomnomnom/unfurl@latest;ln -fs ~/go/bin/unfurl /usr/bin/unfurl
go install github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest;ln -fs ~/go/bin/shuffledns /usr/bin/shuffledns
go install github.com/projectdiscovery/notify/cmd/notify@latest;ln -fs ~/go/bin/notify /usr/bin/notify
go install github.com/detectify/page-fetch@latest;ln -fs ~/go/bin/page-fetch /usr/bin/pagefetch
go install github.com/dwisiswant0/ipfuscator@latest;ln -fs ~/go/bin/ipfuscator /usr/bin/ipfuscator
go install github.com/projectdiscovery/urlfinder/cmd/urlfinder@latest;ln -fs ~/go/bin/urlfinder /usr/bin/urlfinder
go install github.com/projectdiscovery/tlsx/cmd/tlsx@latest;ln -fs ~/go/bin/tlsx /usr/bin/tlsx
go install github.com/projectdiscovery/useragent/cmd/ua@latest;ln -fs ~/go/bin/ua /usr/bin/ua
go install github.com/projectdiscovery/httpx/cmd/httpx@latest;ln -fs ~/go/bin/httpx /usr/bin/httpx
go install github.com/projectdiscovery/tldfinder/cmd/tldfinder@latest;ln -fs ~/go/bin/tldfinder /usr/bin/tldfinder
go install github.com/mirzaaghazadeh/jsdif@latest;ln -fs ~/go/bin/jsdif /usr/bin/jsdif
go install github.com/bitquark/shortscan/cmd/shortscan@latest;ln -fs ~/go/bin/shortscan /usr/bin/shortscan
go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest;ln -fs ~/go/bin/naabu /usr/bin/naabu
go install github.com/sensepost/gowitness@latest;ln -fs ~/go/bin/gowitness /usr/bin/gowitness
go install github.com/lc/gau/v2/cmd/gau@latest;ln -fs ~/go/bin/gau /usr/bin/gau
go install github.com/akshaysharma016/aem-detector@latest;ln -fs ~/go/bin/aem-detector /usr/bin/aem-detector
go install github.com/projectdiscovery/mapcidr/cmd/mapcidr@latest;ln -fs ~/go/bin/mapcidr /usr/bin/mapcidr"
go_installer "Web" "Penetration-Testing" "$web_golang"
# install cloudbunny
if [ ! -d "/usr/share/cloudbunny" ]; then
local name="cloudbunny"
git clone https://github.com/Warflop/cloudbunny /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 cloudbunny.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name -h"
success "Successfully Installed $name"
fi
# install ghauri
if [ ! -d "/usr/share/ghauri" ]; then
local name="ghauri"
git clone https://github.com/r0oth3x49/ghauri /usr/share/$name
chmod 755 /usr/share/$name/*
python3 -m pip install -r /usr/share/$name/requirements.txt --break-system-packages
cd /usr/share/$name && python3 setup.py install
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name -h"
success "Successfully Installed $name"
fi
# install phoneinfoga
if [ ! -d "/usr/share/phoneinfoga" ]; then
local name="phoneinfoga"
mkdir -p /usr/share/$name
wget -q https://github.com/sundowndev/phoneinfoga/releases/latest/download/phoneinfoga_Linux_x86_64.tar.gz -O /tmp/$name.tar.gz
tar --strip-components=1 -xf /tmp/$name.tar.gz -C /usr/share/$name
rm -f /tmp/$name.tar.gz
chmod 755 /usr/share/$name/*
ln -fs /usr/share/$name/phoneinfoga /usr/bin/$name
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell sudo $name -h"
success "Successfully Installed $name"
fi
# install postman
if [ ! -d "/usr/share/Postman" ]; then
local name="Postman"
mkdir -p /usr/share/$name
wget https://dl.pstmn.io/download/latest/linux_64 -O /tmp/$name.tar.gz
tar --strip-components=1 -xvf /tmp/$name.tar.gz -C /usr/share/$name;rm -f /tmp/$name.tar.gz
chmod 755 /usr/share/$name/app/*
ln -fs /usr/share/$name/app/$name /usr/bin/postman
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install bkcrack latest v1.8.1)
if [ ! -d "/usr/share/bkcrack" ]; then
local name="bkcrack"
mkdir -p /usr/share/$name
wget -q https://github.com/kimci86/bkcrack/releases/download/v1.8.1/bkcrack-1.8.1-Linux.tar.gz -O /tmp/$name.tar.gz
tar --strip-components=1 -xf /tmp/$name.tar.gz -C /usr/share/$name
rm -f /tmp/$name.tar.gz
chmod 755 /usr/share/$name/*
ln -fs /usr/share/$name/bkcrack /usr/bin/$name
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install spiderfoot
if [ ! -d "/usr/share/spiderfoot" ]; then
local name="spiderfoot"
git clone https://github.com/smicallef/spiderfoot /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 ./sf.py -l 127.0.0.1:5001 "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install custombsqli
if [ ! -d "/usr/share/custombsqli" ]; then
local name="custombsqli"
git clone https://github.com/coffinxp/customBsqli /usr/share/$name
chmod 755 /usr/share/$name/*
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 lostsec.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install 403-bypass
if [ ! -d "/usr/share/403-bypass" ]; then
local name="403-bypass"
git clone https://github.com/Dheerajmadhukar/4-ZERO-3 /usr/share/4-ZERO-3
chmod 755 /usr/share/4-ZERO-3/*
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/4-ZERO-3;./403-bypass.sh "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install unfurl
if [ ! -f "/usr/share/unfurl" ]; then
local name="unfurl"
mkdir -p /usr/share/$name
wget https://github.com/tomnomnom/unfurl/releases/download/v0.4.3/unfurl-linux-amd64-0.4.3.tgz -O /usr/share/$name/$name.tgz
cd /usr/share/$name && tar -xvf $name.tgz
rm -f /usr/share/$name/$name.tgz
chmod 755 /usr/share/$name/*
ln -fs /usr/share/$name/$name /usr/bin/$name
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install gitdorker
if [ ! -d "/usr/share/gitdorker" ]; then
local name="gitdorker"
git clone https://github.com/obheda12/GitDorker /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 GitDorker.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install github-dork (official: clone, pip install -r requirements.txt, run github-dork.py)
if [ ! -d "/usr/share/github-dork" ]; then
local name="github-dork"
git clone https://github.com/techgaun/github-dorks /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 github-dork.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install changeme (official: clone, pip install -r requirements.txt, run changeme.py)
if [ ! -d "/usr/share/changeme" ]; then
local name="changeme"
git clone https://github.com/ztgrace/changeme /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 changeme.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install sudomy (official: clone, pip install -r requirements.txt, run sudomy)
if [ ! -d "/usr/share/sudomy" ]; then
local name="sudomy"
git clone https://github.com/screetsec/Sudomy /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;sudo ./sudomy "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install oty
if [ ! -f "/usr/bin/oty" ]; then
local name="oty"
pip3 install git+https://github.com/1hehaq/oty
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install wpxstrike
if [ ! -d "/usr/share/wpxstrike" ]; then
local name="wpxstrike"
git clone https://github.com/nowak0x01/WPXStrike /usr/share/$name
chmod 755 /usr/share/$name/*
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;./WPXStrike.js "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install autoswagger
if [ ! -d "/usr/share/autoswagger" ]; then
local name="autoswagger"
git clone https://github.com/intruder-io/autoswagger /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 autoswagger.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install corstest
if [ ! -d "/usr/share/corstest" ]; then
local name="corstest"
git clone https://github.com/RUB-NDS/CORStest /usr/share/$name
chmod 755 /usr/share/$name/*
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 corstest.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install tinker
if [ ! -d "/usr/share/tinker" ]; then
local name="tinker"
git clone https://github.com/heydc7/Tinker /usr/share/$name
chmod 755 /usr/share/$name/*
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 main.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install mhddos
if [ ! -d "/usr/share/mhddos" ]; then
local name="mhddos"
apt -y install curl wget libcurl4 libssl-dev python3 python3-pip make cmake automake autoconf m4 build-essential git zmap
git clone https://github.com/MatrixTM/MHDDoS /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 start.py "\$@"
EOF
chmod +x /usr/bin/$name
apt remove -y python3-urllib3
pip3 install --user --upgrade urllib3 charset_normalizer --break-system-packages
pip3 install "requests==2.31.0" "urllib3<2" "charset_normalizer<3" --break-system-packages
success "Successfully Installed $name"
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
if [ ! -d "/usr/share/$name/PyRoxy" ]; then
git clone https://github.com/MatrixTM/PyRoxy /usr/share/$name/PyRoxy
chmod 755 /usr/share/$name/PyRoxy/*
cd /usr/share/$name/PyRoxy && python3 setup.py install
pip3 install --user cloudscraper impacket --break-system-packages
fi
if [ ! -d "/usr/share/$name/SpoofFinder" ]; then
git clone https://github.com/MatrixTM/SpoofFinder /usr/share/$name/SpoofFinder
chmod 755 /usr/share/$name/SpoofFinder/*
pip3 install -r /usr/share/$name/SpoofFinder/requirements.txt --break-system-packages
pip3 install --user httpx netaddr rich aioconsole git+https://github.com/soxoj/async-search-scraper --break-system-packages
cat > /usr/bin/spoofinder << EOF
#!/bin/bash
cd /usr/share/$name/SpoofFinder;python3 spoof_finder.py "\$@"
EOF
chmod +x /usr/bin/spoofinder
fi
fi
# install subdomainizer
if [ ! -d "/usr/share/subdomainizer" ]; then
local name="subdomainizer"
git clone https://github.com/nsonaniya2010/SubDomainizer /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 SubDomainizer.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install sharpyshell
if [ ! -d "/usr/share/sharpyshell" ]; then
local name="sharpyshell"
git clone https://github.com/antonioCoco/SharPyShell /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 SharPyShell.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install loxs
if [ ! -d "/usr/share/loxs" ]; then
local name="loxs"
git clone https://github.com/coffinxp/loxs /usr/share/$name
chmod 755 /usr/share/$name/*
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 loxs.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install passhunt
if [ ! -d "/usr/share/passhunt" ]; then
local name="passhunt"
git clone https://github.com/Viralmaniar/Passhunt /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 passhunt.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install assets-from-spf
if [ ! -d "/usr/share/assets-from-spf" ]; then
local name="assets-from-spf"
git clone https://github.com/0xbharath/assets-from-spf /usr/share/$name
chmod 755 /usr/share/$name/*
pip2 install ipwhois click
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python2 assets_from_spf.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install kubo
if [ ! -d "/usr/share/kubo" ]; then
local name="kubo"
mkdir -p /usr/share/$name
wget https://github.com/ipfs/kubo/releases/download/v0.32.1/kubo_v0.32.1_linux-amd64.tar.gz -O /tmp/$name.tar.gz
tar --strip-components=1 -xvf /tmp/$name.tar.gz -C /usr/share/$name;rm -f /tmp/$name.tar.gz
chmod 755 /usr/share/$name/*
cd /usr/share/$name;./install.sh;ipfs init
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install crackql
if [ ! -d "/usr/share/crackql" ]; then
local name="crackql"
git clone https://github.com/nicholasaleks/CrackQL /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 CrackQL.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install fuxploider
if [ ! -d "/usr/share/fuxploider" ]; then
local name="fuxploider"
git clone https://github.com/almandin/fuxploider /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 fuxploider.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install doser.go
if [ ! -d "/usr/share/doser.go" ]; then
local name="doser.go"
mkdir -p /usr/share/$name
git clone https://github.com/Quitten/doser.go -O /usr/share/$name
chmod 755 /usr/share/$name/*
cd /usr/share/$name;go build doser.go
ln -fs /usr/share/$name/doser /usr/bin/$name
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install crossdomain-exploitation-framework
if [ ! -d "/usr/share/crossdomain-exploitation-framework" ]; then
local name="crossdomain-exploitation-framework"
git clone https://github.com/sethsec/crossdomain-exploitation-framework /usr/share/$name
chmod 755 /usr/share/$name/*;chmod 755 /usr/share/$name/actionscript-templates/*
cd /usr/share/$name;python2 SWF-server
cat > /usr/bin/swf-server << EOF
#!/bin/bash
cd /usr/share/$name;python2 SWF-server "\$@"
EOF
chmod +x /usr/bin/swf-server
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install getallparams
if [ ! -d "/usr/share/getallparams" ]; then
local name="getallparams"
git clone https://github.com/xnl-h4ck3r/GAP-Burp-Extension /usr/share/$name
chmod 755 /usr/share/$name/*
pip3 install -r /usr/share/$name/requirements.txt --break-system-packages
cat > /usr/bin/$name << EOF
#!/bin/bash
cd /usr/share/$name;python3 GAP.py "\$@"
EOF
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install x8
if [ ! -d "/usr/share/x8" ]; then
local name="x8"
git clone https://github.com/Sh1Yo/x8 /usr/share/$name
cd /usr/share/$name && cargo build --release
ln -fs /usr/share/$name/target/release/x8 /usr/bin/$name
chmod +x /usr/bin/$name
git clone https://github.com/the-xentropy/samlists /usr/share/$name/smalists
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install urldedupe
if [ ! -d "/usr/share/urldedupe" ]; then
local name="urldedupe"
git clone https://github.com/ameenmaali/urldedupe /usr/share/$name
chmod 755 /usr/share/$name/*
cd /usr/share/$name;cmake CMakeLists.txt;make
ln -fs /usr/share/$name/urldedupe /usr/bin/$name
chmod +x /usr/bin/$name
menu_entry "Web" "Penetration-Testing" "$name" "$exec_shell $name"
success "Successfully Installed $name"
fi
# install snmp-shell
if [ ! -d "/usr/share/snmp-shell" ]; then