forked from blindpentester/the-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththe_essentials.sh
executable file
·1088 lines (907 loc) · 26.7 KB
/
the_essentials.sh
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
#
# Simple script to reach out and get some toys for Kali Linux 2020.X to help collect recon/bug bounty/fuzzing tools
#
#
# Usage:
# ./the_essentials.sh
red=$'\e[1;31m'
grn=$'\e[1;32m'
blu=$'\e[1;34m'
mag=$'\e[1;35m'
cyn=$'\e[1;36m'
white=$'\e[0m'
skip=0 # Add skip=0 up here by colors
if [ "$EUID" -ne 0 ]
then echo -e $grn"\n\n Script must be run with sudo ./the_essentials.sh or as root \n"$grn
exit
fi
fix_sources() {
echo $grn"Fixing sources..."$white
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" > /etc/apt/sources.list
echo "deb-src http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list
apt update >/dev/null 2>&1
}
install_docker() {
if ! [ -x "$(command -v docker)" ]
then
echo $grn"Installing docker..."$white
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - >/dev/null 2>&1
echo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null 2>&1
sudo apt-get update >/dev/null 2>&1
apt-get install docker-ce -y >/dev/null 2>&1
else
echo $grn"docker appears to be installed already. checking on what version to only have docker-ce..."$white
apt-get remove docker docker-engine docker.io >/dev/null 2>&1
apt-get install docker-ce -y >/dev/null 2>&1
fi
}
install_go() {
if ! [ -x "$(command -v go)" ]
then
echo $grn"Installing golang..."$white
apt install golang -y >/dev/null 2>&1
else
echo $grn"golang already installed. move along..."$white
fi
}
install_pip() {
if ! [ -x "$(command -v pip)" ]
then
echo $grn"Installing pip..."$white
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py >/dev/null 2>&1
python get-pip.py >/dev/null 2>&1
rm get-pip.py
else
echo $grn"python-pip already installed. move along..."$white
fi
}
install_pip3() {
if ! [ -x "$(command -v pip3)" ]
then
echo $grn"Installing pip3..."$white
apt install python3-pip -y >/dev/null 2>&1
else
echo $grn"pip3 already installed, move along..."$white
fi
}
install_terminator() {
if ! [ -x "$(command -v terminator)" ]
then
echo $grn"Installing Terminator..."$white
apt install terminator -y >/dev/null 2>&1
else
echo $grn"Terminator already installed, move along..."$white
fi
}
pimpmykali() {
if [ $skip = 0 ] # this HAS to be $skip = 0 no -ne or anything fancy
then
FILE=/opt/pimpmykali/pimpmykali.sh
if [ -f "$FILE" ]
then
echo $grn"$FILE already exists. Skipping to next item."$white
else
echo "***************************************"
echo "* *"
echo "* Script made by Dewalt and will *"
echo "* require some user input. Stand by *"
echo "* *"
echo "***************************************"
sleep 5
cd /opt/
git clone https://github.com/Dewalt-arch/pimpmykali.git >/dev/null 2>&1
cd pimpmykali
sudo chmod +x pimpmykali.sh >/dev/null 2>&1
sudo ./pimpmykali.sh --force
fi
else
echo "skipping pimpmykali.sh --skippimp was used"
fi
}
install_ffuf() {
if ! [ -x "$(command -v ffuf)" ]
then
echo $grn"Installing ffuf..."$white
cd /opt
git clone https://github.com/ffuf/ffuf.git >/dev/null 2>&1
cd ffuf
go build 1> /dev/null
ln -sf /opt/ffuf/ffuf /usr/bin/ffuf 1> /dev/null
else
echo $grn"ffuf already exists, move along..."$white
fi
}
install_p0wny_shell() {
FILE=/opt/p0wny-shell/README.md
if [ -f "$FILE" ]
then
echo $grn"p0wny-shell exists already, moving on to next item..."$white
else
echo $grn"Setting up p0wny-shell..."$white
cd /opt/
git clone https://github.com/flozz/p0wny-shell.git >/dev/null 2>&1
fi
}
install_dirsearch() {
if ! [ -x "$(command -v dirsearch)" ]
then
echo $grn"Installing dirsearch..."$white
cd /opt/
git clone https://github.com/maurosoria/dirsearch.git >/dev/null 2>&1
cd dirsearch
ln -sf /opt/dirsearch/dirsearch.py /usr/bin/dirsearch >/dev/null 2>&1
else
echo $grn"dirsearch appears to be installed already. moving along..."$white
fi
}
install_PEAS() {
FOLDER=/opt/privilege-escalation-awesome-scripts-suite
if [ -d "$FOLDER" ]
then
echo $grn"Privilege Escalation Awesome Scripts Suite already exists. Skipping to next item..."$white
else
echo $grn"Installing Privilege Escalation Awesome Scripts Suite..."$white
cd /opt/
git clone https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite.git >/dev/null 2>&1
fi
}
install_linenum() {
FOLDER=/opt/LinEnum
if [ -d "$FOLDER" ]
then
echo $grn"LinEnum already exists. Skipping to next item..."$white
else
cd /opt
git clone https://github.com/rebootuser/LinEnum.git >/dev/null 2>&1
fi
}
install_aquatone() {
if ! [ -x "$(command -v aquatone)" ]
then
echo $grn"Installing aquatone..."$white
cd /opt/
git clone https://github.com/michenriksen/aquatone.git >/dev/null 2>&1
cd aquatone
go get github.com/michenriksen/aquatone 1> /dev/null
mv ~/go/bin/aquatone . 1> /dev/null
ln -sf /opt/aquatone/aquatone /usr/bin/aquatone >/dev/null 2>&1
else
echo $grn"aquatone appears to be installed already. moving along..."$white
fi
}
install_rsg() {
if ! [ -x "$(command -v rsg)" ]
then
echo $grn"Installing Reverse Shell Generator..."$white
cd /opt/
git clone https://github.com/mthbernardes/rsg.git >/dev/null 2>&1
cd rsg
sh install.sh 1> /dev/null
else
echo $grn"rsg already installed. moving along..."$white
fi
}
install_nmap_vulners() {
FOLDER=/opt/nmap-vulners
if [ -d "$FOLDER" ]
then
echo $grn"nmap vulners already exists. Skipping to next item."$white
else
echo $grn"Installing NMAP Vulners Scripts..."$white
cd /opt
git clone https://github.com/vulnersCom/nmap-vulners.git >/dev/null 2>&1
cd nmap-vulners
cp http-vulners-regex.nse /usr/share/nmap/scripts/ 1> /dev/null
cp http-vulners-regex.json /usr/share/nmap/nselib/data/ 1> /dev/null
cp http-vulners-paths.txt /usr/share/nmap/nselib/data/ 1> /dev/null
wget https://svn.nmap.org/nmap/scripts/clamav-exec.nse -O /usr/share/nmap/scripts/clamav-exec.nse >/dev/null 2>&1
nmap --script-updatedb 1> /dev/null
fi
}
install_gtfoblookup() {
FOLDER=/opt/GTFOBLookup
if [ -d "$FOLDER" ]
then
echo $grn"$FOLDER already exists. Skipping to next item..."$white
else
echo $grn"Installing GTFOBLookup..."$white
cd /opt/
git clone https://github.com/nccgroup/GTFOBLookup.git >/dev/null 2>&1
cd GTFOBLookup
pip3 install -r requirements.txt 1> /dev/null
python3 gtfoblookup.py update 1> /dev/null
fi
}
install_navi() {
FOLDER=/opt/navi
if [ -d "$FOLDER" ]
then
echo $grn"navi already exists. Skipping to next item."$white
else
echo $grn"Installing NAVI and FZF..."$white
cd /opt/
git clone https://github.com/denisidoro/navi.git >/dev/null 2>&1
cd navi
# Installing Dependency FZF
apt install fzf >/dev/null 2>&1
bash <(curl -sL https://raw.githubusercontent.com/denisidoro/navi/master/scripts/install) >/dev/null 2>&1
fi
}
install_tom_httprobe() {
if ! [ -x "$(command -v httprobe)" ]
then
echo $grn"Installing httprobe..."$white
cd /opt/
git clone https://github.com/tomnomnom/httprobe.git >/dev/null 2>&1
cd httprobe
go build 1> /dev/null
ln -sf /opt/httprobe/httprobe /usr/bin/httprobe >/dev/null 2>&1
else
echo $grn"httprobe appears to be installed already. moving along..."$white
fi
}
install_tom_waybackurls() {
if ! [ -x "$(command -v waybackurls)" ]
then
echo $grn"Installing waybackurls..."$white
cd /opt/
git clone https://github.com/tomnomnom/waybackurls.git >/dev/null 2>&1
cd waybackurls
go build 1> /dev/null
ln -sf /opt/waybackurls/waybackurls /usr/bin/waybackurls >/dev/null 2>&1
else
echo $grn"waybackurls appears to be installed already. moving along..."$white
fi
}
install_tom_unfurl() {
if ! [ -x "$(command -v unfurl)" ]
then
echo $grn"Installing UnFURL..."$white
cd /opt
git clone https://github.com/tomnomnom/unfurl.git >/dev/null 2>&1
cd unfurl
go get -u github.com/tomnomnom/unfurl 1> /dev/null
mv /root/go/bin/unfurl /opt/unfurl/ 1> /dev/null
ln -sf /opt/unfurl/unfurl /usr/bin/unfurl >/dev/null 2>&1
else
echo $grn"unfurl appears to be installed already. moving along..."$white
fi
}
install_tom_fff() {
if ! [ -x "$(command -v fff)" ]
then
echo $grn"Installing fff..."$white
cd /opt
git clone https://github.com/tomnomnom/fff.git >/dev/null 2>&1
cd fff
go build >/dev/null 2>&1
ln -sf /opt/fff/fff /usr/bin/fff >/dev/null 2>&1
else
echo $grn"fff appears to be installed already. moving along..."$white
fi
}
install_tom_hacks() {
FOLDER=/opt/hacks
if [ -d "$FOLDER" ]
then
echo $grn"hacks repo appears to be installed already. moving along..."$white
else
echo $grn"Installing hacks repository..."$white
cd /opt
git clone https://github.com/tomnomnom/hacks.git >/dev/null 2>&1
fi
}
install_nahamsec_stuff() {
echo $grn"Installing crtdnstry, jq and rename..."$white
# cd /opt
# git clone https://github.com/nahamsec/lazyrecon.git >/dev/null 2>&1
# cd lazyrecon
# ln -sf /opt/lazyrecon/lazyrecon.sh /usr/share/lazyrecon 1> /dev/null
# Modifying lazyrecon to work with current downloaded/installed files from this script
# sed -i 's/~\/tools/\/opt/g' lazyrecon.sh 1> /dev/null
# sed -i 's/python \/opt\/Sublist3r\/sublist3r.py/sublist3r/g' lazyrecon.sh 1> /dev/null
# sed -i 's/\/opt\/SecLists/\/usr\/share\/seclists/g' lazyrecon.sh 1> /dev/null
cd /opt
git clone https://github.com/nahamsec/crtndstry.git >/dev/null 2>&1
cd /opt
apt install jq -y >/dev/null 2>&1
apt install rename -y >/dev/null 2>&1
}
install_neo4j() {
if ! [ -x "$(command -v neo4j)" ]
then
echo $grn"Installing neo4j..."$white
apt install neo4j -y >/dev/null 2>&1
else
echo $grn"neo4j appears to be installed already. moving along..."$white
fi
}
install_bloodhound() {
if ! [ -x "$(command -v bloodhound)" ]
then
echo $grn"Installing bloodhound..."$white
apt install bloodhound -y >/dev/null 2>&1
else
echo $grn"bloodhound appears to be installed already. moving along..."$white
fi
}
install_sublist3r() {
if ! [ -x "$(command -v sublist3r)" ]
then
echo $grn"Installing sublist3r"$white
apt install sublist3r -y >/dev/null 2>&1
else
echo $grn"sublist3r appears to be installed already. moving along..."$white
fi
}
installing_asnlookup() {
echo $grn"Installing asnlookup..."$white
FOLDER=/opt/asnlookup
if [ -d "$FOLDER" ]
then
echo $grn"asnlookup is already setup. Skipping to next item."$white
else
cd /opt
git clone https://github.com/yassineaboukir/asnlookup.git >/dev/null 2>&1
cd asnlookup
pip3 install -r requirements.txt 1> /dev/null
fi
}
install_evil_winrm() {
if ! [ -x "$(command -v evil-winrm)" ]
then
echo $grn"Installing Evil-WinRM..."$white
gem install evil-winrm 1> /dev/null
else
echo $grn"evil-winrm appears to be installed already. moving along..."$white
fi
}
install_powercat() {
FOLDER=/opt/powercat
if [ -d "$FOLDER" ]
then
echo $grn"powercat is already setup..."$white
else
echo $grn"Installing Powercat..."$white
cd /opt
git clone https://github.com/besimorhino/powercat.git >/dev/null 2>&1
fi
}
install_more_wordlists() {
FOLDER=/opt/Wordlists
if [ -d "$FOLDER" ]
then
echo $grn"Wordlists is already setup..."$white
else
echo $grn"Getting more wordlists..."$white
cd /opt
git clone https://github.com/ZephrFish/Wordlists.git >/dev/null 2>&1
fi
}
install_gobuster() {
if ! [ -x "$(command -v gobuster)" ]
then
echo $grn"Installing GoBuster..."$white
apt install gobuster -y >/dev/null 2>&1
else
echo $grn"gobuster appears to be installed already. moving along..."$white
fi
}
install_recursivegobuster() {
FOLDER=/opt/recursive-gobuster
if [ -d "$FOLDER" ]
then
echo $grn"recursive-gobuster appears to be installed already. moving along..."$white
else
echo $grn"Installing recursive-gobuster..."$white
cd /opt/
git clone https://github.com/epi052/recursive-gobuster.git >/dev/null 2>&1
fi
}
install_enum4linux_ng() {
FOLDER=/opt/enum4linux-ng
if [ -d "$FOLDER" ]
then
echo $grn"enum4linux-ng appears to be installed already. moving along..."$white
else
echo $grn"Installing enum4linux-ng..."$white
cd /opt
git clone https://github.com/cddmp/enum4linux-ng.git >/dev/null 2>&1
cd enum4linux-ng
pip3 install -r requirements.txt 1> /dev/null
fi
}
install_evilportals_wifipineapple() {
FOLDER=/opt/evilportals
if [ -d "$FOLDER" ]
then
echo $grn"evilportals appears to be installed already. moving along..."$white
else
echo $grn"Installing Evil Portals for WiFI Pineapple..."$white
cd /opt
git clone https://github.com/kbeflo/evilportals.git >/dev/null 2>&1
fi
}
install_stegoVeritas() {
if ! [ -x "$(command -v stegoveritas)" ]
then
echo $grn"Installing stegoVeritas for all of those steganography nerds out there..."$white
pip3 install stegoveritas 1> /dev/null
stegoveritas_install_deps 1> /dev/null
else
echo $grn"stegoVeritas appears to be installed already. moving along..."$white
fi
}
install_crackmapexec() {
if ! [ -x "$(command -v crackmapexec)" ]
then
echo $grn"Installing CrackMapExec..."$white
apt install crackmapexec -y >/dev/null 2>&1
else
echo $grn"crackmapexec appears to be installed already. moving along..."$white
fi
}
snag_random_repos() {
echo $grn"Setting up SUID3NUM, linuxprivchecker and The Bug Bounty Methodology..."$white
cd /opt
# git clone https://github.com/thelinuxchoice/OSCP-Preparation-Material.git >/dev/null 2>&1
git clone https://github.com/Anon-Exploiter/SUID3NUM.git >/dev/null 2>&1
git clone https://github.com/sleventyeleven/linuxprivchecker.git >/dev/null 2>&1
git clone https://github.com/jhaddix/tbhm.git >/dev/null 2>&1
}
install_dnstwist() {
if ! [ -x "$(command -v dnstwist)" ]
then
echo $grn"Installing DNSTwist..."$white
pip3 install dnstwist 1> /dev/null
else
echo $grn"dnstwist appears to be installed already. moving along..."$white
fi
}
install_spoofcheck() {
FOLDER=/opt/spoofcheck
if [ -d "$FOLDER" ]
then
echo $grn"spoofcheck appears to be installed already. moving along..."$white
else
echo $grn"Installing spoofcheck..."$white
cd /opt
git clone https://github.com/BishopFox/spoofcheck.git >/dev/null 2>&1
cd spoofcheck
pip install -r requirements.txt 1> /dev/null
fi
}
install_autoenum() {
FOLDER=/opt/autoenum
if [ -d "$FOLDER" ]
then
echo $grn"autoenum appears to be installed already. moving along..."$white
else
echo $grn"Installing autoenum..."$white
cd /opt
git clone https://github.com/Gr1mmie/autoenum.git >/dev/null 2>&1
cd autoenum
chmod +x autoenum.sh 1> /dev/null
fi
}
install_easysploit() {
if ! [ -x "$(command -v easysploit)" ]
then
echo $grn"Installing easysploit..."$white
cd /opt
git clone https://github.com/KALILINUXTRICKSYT/easysploit.git >/dev/null 2>&1
cd easysploit
bash installer.sh 1> /dev/null
else
echo $grn"easysploit appears to be installed already. moving along..."$white
fi
}
install_sherlock(){
FOLDER=/opt/sherlock
if [ -d "$FOLDER" ]
then
echo $grn"sherlock appears to be installed already. moving along..."$white
else
echo $grn"Installing sherlock..."$white
cd /opt
git clone https://github.com/sherlock-project/sherlock.git >/dev/null 2>&1
cd sherlock
pip3 install -r requirements.txt 1> /dev/null
fi
}
install_threader3000() {
if ! [ -x "$(command -v threader3000)" ]
then
echo $grn"Installing threader3000..."$white
pip3 install threader3000 1> /dev/null
else
echo $grn"threader3000 appears to be installed already. moving along..."$white
fi
}
install_locate() {
if ! [ -x "$(command -v locate)" ]
then
echo $grn"Installing locate..."$white
apt install locate -y >/dev/null 2>&1
updatedb 1> /dev/null
else
echo $grn"locate appears to be installed already. moving along..."$white
fi
}
install_seclists() {
if ! [ -x "$(command -v seclists)" ]
then
echo $grn"Installing SecLists..."$white
apt install seclists -y >/dev/null 2>&1
cat /usr/share/seclists/Discovery/DNS/dns-Jhaddix.txt | head -n -14 > /tmp/clean-jhaddix-dns.txt
mv /tmp/clean-jhaddix-dns.txt /usr/share/seclists/Discovery/DNS/clean-jhaddix-dns.txt
else
cat /usr/share/seclists/Discovery/DNS/dns-Jhaddix.txt | head -n -14 > /tmp/clean-jhaddix-dns.txt
mv /tmp/clean-jhaddix-dns.txt /usr/share/seclists/Discovery/DNS/clean-jhaddix-dns.txt
echo $grn"SecLists appears to be installed already. moving along..."$white
fi
}
install_dnsdumpster() {
FOLDER=/opt/dnsdumpster
if [ -d "$FOLDER" ]
then
echo $grn"dnsdumpster appears to be installed already. moving along..."$white
else
echo $grn"Installing DNSDumpster..."$white
cd /opt
git clone https://github.com/wangoloj/dnsdumpster.git >/dev/null 2>&1
cd dnsdumpster
pip3 install -r requirements.txt 1> /dev/null
fi
}
install_github_search() {
FOLDER=/opt/github-search
if [ -d "$FOLDER" ]
then
echo $grn"github-search appears to be installed already. moving along..."$white
else
echo $grn"Installing Github_Search..."$white
cd /opt
git clone https://github.com/gwen001/github-search.git >/dev/null 2>&1
cd github-search
pip3 install -r requirements3.txt 1> /dev/null
fi
}
install_shodan_cli() {
if ! [ -x "$(command -v shodan)" ]
then
echo $grn"Installing Shodan CLI..."$white
pip3 install shodan 1> /dev/null
else
echo $grn"shodan appears to be installed already. moving along..."$white
fi
}
install_interlace() {
FOLDER=/opt/Interlace
if [ -d "$FOLDER" ]
then
echo $grn"Interlace appears to be installed already. moving along..."$white
else
echo $grn"Installing Interlace..."$white
cd /opt/
git clone https://github.com/codingo/Interlace.git >/dev/null 2>&1
cd Interlace
python3 setup.py install 1> /dev/null
fi
}
install_certspotter() {
if ! [ -x "$(command -v certspotter)" ]
then
echo $grn"Installing Certspotter..."$white
cd /opt
git clone https://github.com/SSLMate/certspotter.git >/dev/null 2>&1
go get software.sslmate.com/src/certspotter/cmd/certspotter 1> /dev/null
mv ~/go/bin/certspotter /opt/certspotter/certspotter 1> /dev/null
ln -sf /opt/certspotter/certspotter /usr/bin/certspotter 1> /dev/null
else
echo $grn"certspotter appears to be installed already. moving along..."$white
fi
}
install_cloudbrute() {
if ! [ -x "$(command -v CloudBrute)" ]
then
echo $grn"Installing CloudBrute..."$white
cd /opt
git clone https://github.com/jhaddix/CloudBrute.git >/dev/null 2>&1
cd CloudBrute
go build -o CloudBrute main.go >/dev/null 2>&1
ln -sf /opt/CloudBrute/CloudBrute /usr/bin/CloudBrute 1> /dev/null
else
echo $grn"CloudBrute appears to be installed already. moving along..."$white
fi
}
install_gau() {
if ! [ -x "$(command -v gau)" ]
then
echo $grn"Installing gau..."$white
cd /opt
git clone https://github.com/lc/gau.git >/dev/null 2>&1
cd gau
go build -o gau >/dev/null 2>&1
ln -sf /opt/gau/gau /usr/bin/gau 1> /dev/null
else
echo $grn"gau appears to be installed already. moving along..."$white
fi
}
install_massdns() {
if ! [ -x "$(command -v massdns)" ]
then
echo $grn"Installing massdns..."$white
cd /opt
git clone https://github.com/blechschmidt/massdns.git >/dev/null 2>&1
cd massdns
make 1> /dev/null
ln -sf /opt/massdns/bin/massdns /usr/bin/massdns 1> /dev/null
else
echo $grn"massdns appears to be installed already. moving along..."$white
fi
}
install_autorecon() {
if ! [ -x "$(command -v autorecon)" ]
then
echo $grn"Installing autorecon..."$white
cd /opt
git clone https://github.com/Tib3rius/AutoRecon.git >/dev/null 2>&1
cd AutoRecon
apt install seclists curl enum4linux gobuster nbtscan nikto nmap onesixtyone oscanner smbclient smbmap smtp-user-enum snmp sslscan sipvicious tnscmd10g whatweb wkhtmltopdf -y >/dev/null 2>&1
python3 -m pip install git+https://github.com/Tib3rius/AutoRecon.git >/dev/null 2>&1
mv ~/.local/bin/autorecon /usr/bin/autorecon >/dev/null 2>&1
else
echo $grn"autorecon appears to be installed already. moving along..."$white
fi
}
install_hetty() {
if ! [ -x "$(command -v hetty)" ]
then
echo $grn"Installing hetty..."$white
cd /opt
git clone https://github.com/dstotijn/hetty.git >/dev/null 2>&1
cd hetty
hetty=$(wget -qO- https://github.com/dstotijn/hetty/releases | grep "Linux_x86" | awk -F "href=" '{print $2}' | awk -F "rel=" '{print $1}' | head -n 1 | sed 's/"//g' | sed 's/^/https:\/\/github.com/') 1> /dev/null
wget $hetty -O /tmp/hetty >/dev/null 2>&1
tar xvfz /tmp/hetty* -C /opt/hetty 1> /dev/null
cd /opt/hetty/
rm -rf /tmp/hetty 1> /dev/null
ln -sf /opt/hetty/hetty /usr/bin/hetty 1> /dev/null
else
echo $grn"hetty appears to be installed already. moving along..."$white
fi
}
install_atom() {
if ! [ -x "$(command -v atom)" ]
then
echo $grn"Installing Atom..."$white
cd /tmp
wget -qO- https://atom.io/download/deb -O atom.deb >/dev/null 2>&1
dpkg -i atom.deb >/dev/null 2>&1
rm atom.deb
apt -y --fix-broken install >/dev/null 2>&1
else
echo $grn"atom appears to be installed already. moving along..."$white
fi
}
install_ciphey() {
if ! [ -x "$(command -v ciphey)" ]
then
echo $grn"Installing ciphey..."$white
pip3 install ciphey >/dev/null 2>&1
else
echo $grn"ciphey appears to be installed already. moving along..."$white
fi
}
install_gospider() {
if ! [ -x "$(command -v gospider)" ]
then
echo $grn"Installing gospider..."$white
cd /opt
git clone https://github.com/jaeles-project/gospider >/dev/null 2>&1
cd gospider
go build >/dev/null 2>&1
cp gospider /usr/bin/
else
echo $grn"gospider appears to be installed already. moving along..."$white
fi
}
install_phprevshell() {
FOLDER=/opt/php-reverse-shell
if [ -d "$FOLDER" ]
then
echo $grn"php-reverse-shell seems to already exist. moving along..."$white
else
echo $grn"Setting up php-reverse-shell..."$white
cd /opt/
sudo git clone https://github.com/pentestmonkey/php-reverse-shell >/dev/null 2>&1
fi
}
install_instashell() {
FOLDER=/opt/instashell
if [ -d "$FOLDER" ]
then
echo $grn"instashell appears to be installed already. moving along..."$white
else
echo $grn"Installing instashell..."$white
cd /opt
git clone https://github.com/NathanLundner/instashell >/dev/null 2>&1
fi
}
install_wesng(){
FOLDER=/opt/wesng
if [ -d "$FOLDER" ]
then
echo $grn"wesng appears to be installed already. moving along..."$white
else
echo $grn"Installing wesng..."$white
cd /opt
git clone https://github.com/bitsadmin/wesng >/dev/null 2>&1
fi
}
install_metabigor() {
if ! [ -x "$(command -v metabigor)" ]
then
echo $grn"Installing metabigor..."$white
cd /opt
git clone https://github.com/j3ssie/metabigor >/dev/null 2>&1
cd metabigor
sudo go get -u github.com/j3ssie/metabigor >/dev/null 2>&1
cd /root/go/src/github.com/j3ssie/metabigor
go build >/dev/null 2>&1
cp metabigor /opt/metabigor/
ln -sf /opt/metabigor/metabigor /usr/bin/metabigor
else
echo $grn"metabigor appears to be installed already. moving along..."$white
fi
}
install_asn() {
if ! [ -x "$(command -v asn)" ]
then
echo $grn"Installing asn..."$white
cd /opt
git clone https://github.com/nitefood/asn >/dev/null 2>&1
ln -sf /opt/asn/asn /usr/bin/asn
else
echo $grn"asn appears to be installed already. moving along..."$white
fi
}
install_mindmaster() {
if ! [ -x "$(command -v mindmaster)" ]
then
echo $grn"Installing mindmaster..."$white
cd ~/Downloads
mmaster=$(wget -qO- https://www.edrawsoft.com/download-mindmaster.html | grep ".deb" | awk -F "<a href=" '{print $2}' | cut -d " " -f 1 | sed 's/"//g') >/dev/null 2>&1
wget $mmaster >/dev/null 2>&1
dpkg -i mindmaster_*.deb >/dev/null 2>&1
rm mindmaster_*.deb
else
echo $grn"mindmaster appears to be installed already. moving along..."$white
fi
}
install_pspy() {
FILE=/opt/pspy/binaries/pspy32s
if [ -f "$FILE" ]
then
echo $grn"pspy appears to be installed already. moving along..."$white
else
echo $grn"Installing pspy"$white
cd /opt
git clone https://github.com/DominicBreuker/pspy >/dev/null 2>&1
mkdir -p pspy/binaries
echo $grn"Snagging pspy binaries to /opt/pspy/binaries..."$white
wget -qO- https://github.com/DominicBreuker/pspy | grep "download/" | awk -F "a href=" '{print $2}' | awk -F ">" '{print $1}' | sed 's/"//g'| sed 's/^/wget /g' > /opt/pspy/binaries/snagem.sh
cd /opt/pspy/binaries
bash snagem.sh >/dev/null 2>&1
rm snagem.sh
fi
}
install_feroxbuster() {
FOLDER=/opt/feroxbuster
if [ -d "$FOLDER" ]
then
echo $grn"feroxbuster seems to be installed already. moving along..."$white
else
echo $grn"Installing feroxbuster..."$white
cd /opt
git clone https://github.com/epi052/feroxbuster >/dev/null 2>&1
cd feroxbuster
./install-nix.sh
ln -sf /opt/feroxbuster/feroxbuster /usr/bin/feroxbuster >/dev/null 2>&1
fi
}
check_arg () {
if [ "$1" == "" ]
then
skip=0
else
case $1 in
--skip) skip=1 ;;
esac
fi
}