forked from ThePorgs/Exegol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
742 lines (656 loc) · 24.5 KB
/
install.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
#!/bin/bash
# Author: Charlie BROMBERG (Shutdown - @_nwodtuhs)
function colorecho() {
BG='\033[1;32m'
NC='\033[0m'
echo -e "${BG}$@${NC}"
sleep 2
}
function update() {
colorecho "[+] Updating, upgrading, cleaning"
apt -y update && apt -y install apt-utils && apt -y upgrade && apt -y autoremove && apt clean
}
function apt_packages() {
colorecho "[+] Installing APT packages"
apt install -y --no-install-recommends aircrack-ng crunch curl dirb dirbuster dnsenum dnsrecon dnsutils dos2unix enum4linux exploitdb ftp git hashcat hping3 hydra john joomscan masscan metasploit-framework mimikatz nasm ncat netcat-traditional nikto nmap patator php powersploit proxychains python3 recon-ng samba samdump2 seclists smbclient smbmap snmp socat sqlmap sslscan theharvester tree vim nano weevely wfuzz wget whois wordlists seclists wpscan zsh golang ssh iproute2 iputils-ping python3-pip python3-dev sudo tcpdump gem tidy passing-the-hash proxychains ssh-audit whatweb smtp-user-enum onesixtyone cewl radare2 nbtscan amap python-dev python2 file dotdotpwn xsser rlwrap lsof bruteforce-luks less redis-tools telnet pst-utils mariadb-client fcrackzip
}
function python-pip() {
colorecho "[+] Installing python-pip"
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
rm get-pip.py
}
function filesystem() {
colorecho "[+] Preparing filesystem"
mkdir -p /opt/tools/ /opt/tools/bin/ /share/
}
function ohmyzsh() {
colorecho "[+] Installing oh-my-zsh, config, history, aliases"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sed -i 's/robbyrussell/gentoo/g' ~/.zshrc
sed -i 's/plugins=(git)/plugins=(git sudo docker docker-compose)/g' ~/.zshrc
echo '' >> ~/.zshrc
echo 'TIME_="%{$fg[white]%}[%{$fg[red]%}%D %T%{$fg[white]%}]%{$reset_color%}"' >> ~/.zshrc
echo 'PROMPT="$TIME_%{$FX[bold]$FG[013]%} Exegol %{$fg_bold[blue]%}%(!.%1~.%c) $(prompt_char)%{$reset_color%} "' >> ~/.zshrc
echo '' >> ~/.zshrc
echo 'export GOPATH=$HOME/go' >> ~/.zshrc
echo 'export GO111MODULE=on' >> ~/.zshrc
echo 'export PATH=/opt/tools/bin:$GOPATH/bin:$PATH' >> ~/.zshrc
wget -O ~/.zsh_history https://raw.githubusercontent.com/ShutdownRepo/Exegol/master/confs/zsh/history
echo '' >> ~/.zshrc
echo 'source /opt/.zsh_aliases' >> ~/.zshrc
wget -O /opt/.zsh_aliases https://raw.githubusercontent.com/ShutdownRepo/Exegol/master/confs/zsh/aliases
}
function banners() {
colorecho "[+] Installing lolcat and figlet (it is essential here)"
wget https://github.com/busyloop/lolcat/archive/master.zip
unzip master.zip
cd lolcat-master/bin
gem install lolcat
cd ../../ && rm -r lolcat-master master.zip
apt -y install figlet
wget -O /usr/share/figlet/Bloody.flf https://raw.githubusercontent.com/xero/figlet-fonts/master/Bloody.flf
echo '#echo ""' >> ~/.zshrc
echo '#figlet -f Bloody "Exegol" -w 10000 | lolcat' >> ~/.zshrc
echo '#echo ""' >> ~/.zshrc
}
function dependencies() {
colorecho "[+] Installing most required dependencies"
apt -y install python-setuptools python3-setuptools
pip3 install wheel
pip install wheel
}
function Responder() {
colorecho "[+] Installing Responder"
git -C /opt/tools/ clone https://github.com/lgandx/Responder
sed -i 's/ Random/ 1122334455667788/g' /opt/tools/Responder/Responder.conf
sed -i 's/files\/AccessDenied.html/\/opt\/tools\/Responder\/files\/AccessDenied.html/g' /opt/tools/Responder/Responder.conf
sed -i 's/files\/BindShell.exe/\/opt\/tools\/Responder\/files\/BindShell.exe/g' /opt/tools/Responder/Responder.conf
sed -i 's/certs\/responder.crt/\/opt\/tools\/Responder\/certs\/responder.crt/g' /opt/tools/Responder/Responder.conf
sed -i 's/certs\/responder.key/\/opt\/tools\/Responder\/certs\/responder.key/g' /opt/tools/Responder/Responder.conf
}
function Sublist3r() {
colorecho "[+] Installing Sublist3r"
git -C /opt/tools/ clone https://github.com/aboul3la/Sublist3r.git
pip3 install -r /opt/tools/Sublist3r/requirements.txt
}
function ReconDog() {
colorecho "[+] Installing ReconDog"
git -C /opt/tools/ clone https://github.com/s0md3v/ReconDog
pip3 install -r /opt/tools/ReconDog/requirements.txt
}
function CloudFail() {
colorecho "[+] Installing CloudFail"
git -C /opt/tools/ clone https://github.com/m0rtem/CloudFail
pip3 install -r /opt/tools/CloudFail/requirements.txt
}
function OneForAll() {
colorecho "[+] Installing OneForAll"
git -C /opt/tools/ clone https://github.com/shmilylty/OneForAll.git
pip3 install -r /opt/tools/OneForAll/requirements.txt
}
function EyeWitness() {
colorecho "[+] Installing EyeWitness"
git -C /opt/tools/ clone https://github.com/FortyNorthSecurity/EyeWitness
cd /opt/tools/EyeWitness/setup
./setup.sh
}
function wafw00f() {
colorecho "[+] Installing wafw00f"
git -C /opt/tools/ clone https://github.com/EnableSecurity/wafw00f
cd /opt/tools/wafw00f
python setup.py install
}
function JSParser() {
colorecho "[+] Installing JSParser"
git -C /opt/tools/ clone https://github.com/nahamsec/JSParser
cd /opt/tools/JSParser
python setup.py install
}
function LinkFinder() {
colorecho "[+] Installing LinkFinder"
git -C /opt/tools/ clone https://github.com/GerbenJavado/LinkFinder.git
cd /opt/tools/LinkFinder
pip3 install -r requirements.txt
python3 setup.py install
}
function SSRFmap() {
colorecho "[+] Installing SSRFmap"
git -C /opt/tools/ clone https://github.com/swisskyrepo/SSRFmap
cd /opt/tools/SSRFmap
pip3 install -r requirements.txt
}
function NoSQLMap() {
colorecho "[+] Installing NoSQLMap"
git -C /opt/tools clone https://github.com/codingo/NoSQLMap.git
cd /opt/tools/NoSQLMap
python setup.py install
}
function fuxploider() {
colorecho "[+] Installing fuxploider"
git -C /opt/tools/ clone https://github.com/almandin/fuxploider.git
cd /opt/tools/fuxploider
pip3 install -r requirements.txt
}
function CORScanner() {
colorecho "[+] Installing CORScanner"
git -C /opt/tools/ clone https://github.com/chenjj/CORScanner.git
cd /opt/tools/CORScanner
pip install -r requirements.txt
}
function Blazy() {
colorecho "[+] Installing Blazy"
git -C /opt/tools/ clone https://github.com/UltimateHackers/Blazy
cd /opt/tools/Blazy
pip install -r requirements.txt
}
function XSStrike() {
colorecho "[+] Installing XSStrike"
git -C /opt/tools/ clone https://github.com/s0md3v/XSStrike.git
pip3 install fuzzywuzzy
}
function Bolt() {
colorecho "[+] Installing Bolt"
git -C /opt/tools/ clone https://github.com/s0md3v/Bolt.git
}
function CrackMapExec() {
colorecho "[+] Downloading CrackMapExec"
apt -y install libssl-dev libffi-dev python-dev build-essential python3-winrm
git -C /opt/tools/ clone --recursive https://github.com/byt3bl33d3r/CrackMapExec
cd /opt/tools/CrackMapExec
git submodule update --recursive
python3 setup.py install
}
function lsassy() {
colorecho "[+] Installing lsassy"
git -C /opt/tools/ clone https://github.com/Hackndo/lsassy/
cd /opt/tools/lsassy
python3 setup.py install
#wget -O /opt/tools/CrackMapExec/cme/modules/lsassy3.py https://raw.githubusercontent.com/Hackndo/lsassy/master/cme/lsassy3.py
#cd /opt/tools/CrackMapExec
#python3 setup.py install
pip3 install 'asn1crypto>=1.3.0'
}
function sprayhound() {
colorecho "[+] Installing sprayhound"
git -C /opt/tools/ clone https://github.com/Hackndo/sprayhound
cd /opt/tools/sprayhound
apt -y install libsasl2-dev libldap2-dev
pip3 install "pyasn1<0.5.0,>=0.4.6"
python3 setup.py install
}
function Impacket() {
colorecho "[+] Installing Impacket scripts"
#git -C /opt/tools/ clone https://github.com/SecureAuthCorp/impacket
# fetching files from ShutdownRepo while Pull Request isn't accepted
git -C /opt/tools/ clone https://github.com/ShutdownRepo/impacket
cd /opt/tools/impacket/
pip3 install .
wget -O /usr/share/grc/conf.ntlmrelayx https://raw.githubusercontent.com/ShutdownRepo/Exegol/master/confs/grc/conf.ntlmrelayx
wget -O /usr/share/grc/conf.secretsdump https://raw.githubusercontent.com/ShutdownRepo/Exegol/master/confs/grc/conf.secretsdump
}
function BloodHound() {
colorecho "[+] Installing neo4j and Python ingestor for BloodHound"
git -C /opt/tools/ clone https://github.com/fox-it/BloodHound.py
cd /opt/tools/BloodHound.py/
python setup.py install
apt -y install neo4j
}
function mitm6_sources() {
colorecho "[+] Installing mitm6 from sources"
git -C /opt/tools/ clone https://github.com/fox-it/mitm6
cd /opt/tools/mitm6/
pip3 install --user -r requirements.txt
python3 setup.py install
}
function mitm6() {
colorecho "[+] Installing mitm6 with pip"
pip3 install mitm6
}
function aclpwn() {
colorecho "[+] Installing aclpwn with pip"
pip3 install aclpwn
sed -i 's/neo4j.v1/neo4j/g' /usr/local/lib/python3.8/dist-packages/aclpwn/database.py
}
function IceBreaker() {
colorecho "[+] Installing IceBreaker"
apt -y install lsb-release python3-libtmux python3-libnmap python3-ipython
pip install pipenva
git -C /opt/tools/ clone https://github.com/DanMcInerney/icebreaker
cd /opt/tools/icebreaker/
./setup.sh
pipenv --three install
}
function Empire() {
colorecho "[+] Installing Empire"
export STAGING_KEY='123Soleil'
pip install pefile
git -C /opt/tools/ clone https://github.com/BC-SECURITY/Empire
sed -i.bak 's/System.Security.Cryptography.HMACSHA256/System.Security.Cryptography.HMACSHA1/g' data/agent/stagers/*.ps1
sed -i.bak 's/System.Security.Cryptography.HMACSHA256/System.Security.Cryptography.HMACSHA1/g' data/agent/agent.ps1
sed -i.bak 's/hashlib.sha256/hashlib.sha1/g' lib/common/*.py
sed -i.bak 's/hashlib.sha256/hashlib.sha1/g' data/agent/stagers/*.py
cd /opt/tools/Empire/setup
./install.sh
}
function DeathStar() {
colorecho "[+] Installing DeathStar"
git -C /opt/tools/ clone https://github.com/byt3bl33d3r/DeathStar
cd /opt/tools/DeathStar
pip3 install -r requirements.txt
}
function Sn1per() {
colorecho "[+] Installing Sn1per"
git -C /opt/tools/ clone https://github.com/1N3/Sn1per
sed -i 's/read answer/echo no answer to give/' /opt/tools/Sn1per/install.sh
sed -i 's/cp/cp -v/g' /opt/tools/Sn1per/install.sh
sed -i 's/mkdir/mkdir -v/g' /opt/tools/Sn1per/install.sh
sed -i 's/rm/rm -v/g' /opt/tools/Sn1per/install.sh
sed -i 's/mv/mv -v/g' /opt/tools/Sn1per/install.sh
sed -i 's/wget/wget -v/g' /opt/tools/Sn1per/install.sh
sed -i 's/2> \/dev\/null//g' /opt/tools/Sn1per/install.sh
cd /opt/tools/Sn1per/
bash install.sh
}
function dementor(){
colorecho "[+] Installing dementor"
mkdir /opt/tools/dementor
pip install pycrypto
wget -O /opt/tools/dementor/dementor.py https://gist.githubusercontent.com/3xocyte/cfaf8a34f76569a8251bde65fe69dccc/raw/7c7f09ea46eff4ede636f69c00c6dfef0541cd14/dementor.py
wget -O /usr/share/grc/conf.dementor https://raw.githubusercontent.com/ShutdownRepo/Exegol/master/confs/grc/conf.dementor
}
function subjack(){
colorecho "[+] Installing subjack"
go get -u -v github.com/haccer/subjack
}
function assetfinder(){
colorecho "[+] Installing assetfinder"
go get -u -v github.com/tomnomnom/assetfinder
}
function subfinder(){
colorecho "[+] Installing subfinder"
go get -u -v github.com/projectdiscovery/subfinder/cmd/subfinder
}
function gobuster(){
colorecho "[+] Installing gobuster"
go get -u -v github.com/OJ/gobuster
}
function amass(){
colorecho "[+] Installing amass"
go get -v -u github.com/OWASP/Amass/v3/...
}
function ffuf(){
colorecho "[+] Installing ffuf"
go get -v -u github.com/ffuf/ffuf
}
function gitrob(){
colorecho "[+] Installing gitrob"
go get -v -u github.com/michenriksen/gitrob
}
function shhgit(){
colorecho "[+] Installing shhgit"
go get -v -u github.com/eth0izzle/shhgit
}
function waybackurls(){
colorecho "[+] Installing waybackurls"
go get -v -u github.com/tomnomnom/waybackurls
}
function subover(){
colorecho "[+] Installing SubOver"
go get -v -u github.com/Ice3man543/SubOver
}
function subzy(){
colorecho "[+] Installing subzy"
go get -u -v github.com/lukasikic/subzy
go install -v github.com/lukasikic/subzy
}
function gron(){
colorecho "[+] Installing gron"
go get -u -v github.com/tomnomnom/gron
}
function timing_attack() {
colorecho "[+] Installing timing_attack"
gem install timing_attack
}
function updog() {
colorecho "[+] Installing updog"
pip3 install updog
}
function findomain() {
colorecho "[+] Installing findomain"
wget -O /opt/tools/bin/findomain https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux
chmod +x /opt/tools/bin/findomain
}
function proxychains(){
colorecho "[+] Editing /etc/proxychains.conf for ntlmrelayx.py"
sed -i 's/9050/1080/g' /etc/proxychains.conf
}
function grc(){
colorecho "[+] Installing and configuring grc"
apt -y install grc
wget -O /etc/grc.conf https://raw.githubusercontent.com/ShutdownRepo/Exegol/master/confs/grc/grc.conf
}
function pykek(){
colorecho "[+] Installing Python Kernel Exploit Kit (pykek) for MS14-068"
git -C /opt/tools/ clone https://github.com/preempt/pykek
}
function autorecon(){
colorecho "[+] Installing autorecon"
git -C /opt/tools/ clone https://github.com/Tib3rius/AutoRecon
cd /opt/tools/AutoRecon/
pip3 install -r requirements.txt
}
function privexchange(){
colorecho "[+] Installing privexchange"
git -C /opt/tools/ clone https://github.com/dirkjanm/PrivExchange
}
function LNKUp(){
colorecho "[+] Installing LNKUp"
git -C /opt/tools/ clone https://github.com/Plazmaz/LNKUp
cd /opt/tools/LNKUp
pip install -r requirements.txt
}
function pwntools(){
colorecho "[+] Installing pwntools"
pip install pwntools
pip3 install pwntools
}
function pwndbg(){
colorecho "[+] Installing pwndbg"
apt -y install python3.8 python3.8-dev
git -C /opt/tools/ clone https://github.com/pwndbg/pwndbg
cd /opt/tools/pwndbg
./setup.sh
echo 'set disassembly-flavor intel' >> ~/.gdbinit
}
function darkarmour(){
colorecho "[+] Installing darkarmour"
git -C /opt/tools/ clone https://github.com/bats3c/darkarmour
cd /opt/tools/darkarmour
apt -y install mingw-w64-tools mingw-w64-common g++-mingw-w64 gcc-mingw-w64 upx-ucl osslsigncode
}
function powershell() {
colorecho "[+] Installing powershell"
apt -y install powershell
mv /opt/microsoft /opt/tools/microsoft
rm /usr/bin/pwsh
ln -s /opt/tools/microsoft/powershell/7/pwsh /usr/bin/pwsh
}
function fzf() {
colorecho "[+] Installing fzf"
git -C /opt/tools/ clone --depth 1 https://github.com/junegunn/fzf.git
cd /opt/tools/fzf
./install --all
}
function shellerator() {
colorecho "[+] Installing shellerator"
git -C /opt/tools clone https://github.com/ShutdownRepo/shellerator
cd /opt/tools/shellerator
pip3 install -r requirements.txt
}
function kadimus() {
colorecho "[+] Installing kadimus"
apt -y install libcurl4-openssl-dev libpcre3-dev libssh-dev
git -C /opt/tools/ clone https://github.com/P0cL4bs/Kadimus
cd /opt/tools/Kadimus
make
}
function testssl() {
colorecho "[+] Installing testssl"
apt -y install testssl.sh bsdmainutils
}
function fimap() {
colorecho "[+] Installing fimap"
git -C /opt/tools/ clone https://tha-imax.de/git/root/fimap
cd /opt/tools/fimap
pip install httplib2
}
function bat() {
colorecho "[+] Installing bat"
wget https://github.com/sharkdp/bat/releases/download/v0.13.0/bat_0.13.0_amd64.deb
apt install -f ./bat_0.13.0_amd64.deb
rm bat_0.13.0_amd64.deb
}
function mdcat() {
colorecho "[+] Installing mdcat"
wget https://github.com/lunaryorn/mdcat/releases/download/mdcat-0.16.0/mdcat-0.16.0-x86_64-unknown-linux-musl.tar.gz
tar xvfz mdcat-0.16.0-x86_64-unknown-linux-musl.tar.gz
mv mdcat-0.16.0-x86_64-unknown-linux-musl/mdcat /opt/tools/bin
rm -r mdcat-0.16.0-x86_64-unknown-linux-musl.tar.gz mdcat-0.16.0-x86_64-unknown-linux-musl
}
function xsrfprobe() {
colorecho "[+] Installing XSRFProbe"
git -C /opt/tools/ clone https://github.com/0xInfection/XSRFProbe
cd /opt/tools/XSRFProbe
python3 setup.py install
}
function krbrelayx() {
colorecho "[+] Installing krbrelayx"
git -C /opt/tools/ clone https://github.com/dirkjanm/krbrelayx
}
function hakrawler() {
colorecho "[+] Installing hakrawler"
go get -u -v github.com/hakluke/hakrawler
}
function jwt_tool() {
colorecho "[+] Installing JWT tool"
git -C /opt/tools/ clone https://github.com/ticarpi/jwt_tool
pip3 install pycryptodomex
}
function jwt_cracker() {
colorecho "[+] Installing JWT cracker"
apt -y install npm
npm install --global jwt-cracker
}
function wuzz() {
colorecho "[+] Installing wuzz"
go get -u -v github.com/asciimoo/wuzz
}
function gf_install() {
colorecho "[+] Installing gf"
mkdir ~/.gf
go get -u -v github.com/tomnomnom/gf
echo 'source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.zsh' >> ~/.zshrc
cp -rv ~/go/src/github.com/tomnomnom/gf/examples/* ~/.gf
gf -save redirect -HanrE 'url=|rt=|cgi-bin/redirect.cgi|continue=|dest=|destination=|go=|out=|redir=|redirect_uri=|redirect_url=|return=|return_path=|returnTo=|rurl=|target=|view=|from_url=|load_url=|file_url=|page_url=|file_name=|page=|folder=|folder_url=|login_url=|img_url=|return_url=|return_to=|next=|redirect=|redirect_to=|logout=|checkout=|checkout_url=|goto=|next_page=|file=|load_file='
}
function rockyou() {
colorecho "[+] Extracting /usr/share/wordlists/rockyou.txt.gz"
gunzip -d /usr/share/wordlists/rockyou.txt.gz
}
function rbcd-attack() {
colorecho "[+] Installing rbcd-attack"
git -C /opt/tools/ clone https://github.com/tothi/rbcd-attack
}
function evilwinrm() {
colorecho "[+] Installing evil-winrm"
gem install evil-winrm
}
function pypykatz() {
colorecho "[+] Installing pypykatz"
pip3 install pypykatz
}
function enyx() {
colorecho "[+] Installing enyx"
git -C /opt/tools/ clone https://github.com/trickster0/Enyx
}
function enum4linux-ng() {
colorecho "[+] Installing enum4linux-ng"
git -C /opt/tools/ clone https://github.com/cddmp/enum4linux-ng
}
function resources() {
colorecho "[+] Fetching useful resources (sysinternals, LinEnum, Rubeus, JuicyPotato...)"
mkdir -p /opt/resources/ /opt/resources/windows/ /opt/resources/linux/ /opt/resources/mac/ /opt/resources/webshells/ /opt/resources/webshells/PHP/ /opt/resources/webshells/ASPX/
# SysInternals
wget -O /opt/resources/windows/sysinternals.zip "https://download.sysinternals.com/files/SysinternalsSuite.zip"
unzip -d /opt/resources/windows/sysinternals /opt/resources/windows/sysinternals.zip
rm /opt/resources/windows/sysinternals.zip
# WinEnum.bat
git -C /opt/resources/windows/ clone https://github.com/mattiareggiani/WinEnum
# pspy
mkdir -p /opt/resources/linux/pspy
wget -O /opt/resources/linux/pspy/pspy32 "$(curl -s https://github.com/DominicBreuker/pspy/releases/latest | grep -o '"[^"]*"' | tr -d '"' | sed 's/tag/download/')/pspy32"
wget -O /opt/resources/linux/pspy/pspy64 "$(curl -s https://github.com/DominicBreuker/pspy/releases/latest | grep -o '"[^"]*"' | tr -d '"' | sed 's/tag/download/')/pspy64"
wget -O /opt/resources/linux/pspy/pspy32s "$(curl -s https://github.com/DominicBreuker/pspy/releases/latest | grep -o '"[^"]*"' | tr -d '"' | sed 's/tag/download/')/pspy32s"
wget -O /opt/resources/linux/pspy/pspy64s "$(curl -s https://github.com/DominicBreuker/pspy/releases/latest | grep -o '"[^"]*"' | tr -d '"' | sed 's/tag/download/')/pspy64s"
# linPEAS, winPEAS
git -C /opt/resources/ clone https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite
mv /opt/resources/privilege-escalation-awesome-scripts-suite/linPEAS /opt/resources/linux
mv /opt/resources/privilege-escalation-awesome-scripts-suite/winPEAS /opt/resources/windows
rm -r /opt/resources/privilege-escalation-awesome-scripts-suite
# linux smart enumeration (lse.sh)
wget -O /opt/resources/linux/lse.sh "https://github.com/diego-treitos/linux-smart-enumeration/raw/master/lse.sh"
# LinEnum.sh
wget -O /opt/resources/linux/LinEnum.sh "https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh"
# linux exploit suggester (les.sh)
wget -O /opt/resources/linux/les.sh "https://raw.githubusercontent.com/mzet-/linux-exploit-suggester/master/linux-exploit-suggester.sh"
# mimikatz
wget -O /opt/resources/windows/mimikatz.zip "$(curl -s https://github.com/gentilkiwi/mimikatz/releases/latest | grep -o '"[^"]*"' | tr -d '"' | sed 's/tag/download/')/mimikatz_trunk.zip"
unzip -d /opt/resources/windows/mimikatz /opt/resources/windows/mimikatz.zip
# PowerSploit
git -C /opt/resources/windows/ https://github.com/PowerShellMafia/PowerSploit
# PrivescCheck (Windows)
git -C /opt/resources/windows/ https://github.com/itm4n/PrivescCheck
# Rubeus
wget -P /opt/resources/windows/ "https://gitlab.com/onemask/pentest-tools/-/raw/master/windows/Rubeus_3.exe"
wget -P /opt/resources/windows/ "https://gitlab.com/onemask/pentest-tools/-/raw/master/windows/Rubeus_4.5.exe"
# Inveigh and Inveigh-Relay
git -C /opt/resources/windows https://github.com/Kevin-Robertson/Inveigh
# SharpHound
mkdir /opt/resources/windows/SharpHound
wget -P /opt/resources/windows/SharpHound/ "https://github.com/BloodHoundAD/BloodHound/raw/master/Ingestors/SharpHound.exe"
wget -P /opt/resources/windows/SharpHound/ "https://github.com/BloodHoundAD/BloodHound/raw/master/Ingestors/SharpHound.ps1"
# JuicyPotato
wget -P /opt/resources/windows/ "$(curl -s https://github.com/ohpe/juicy-potato/releases/latest | grep -o '"[^"]*"' | tr -d '"' | sed 's/tag/download/')/JuicyPotato.exe"
# Impacket examples Windows
git -C /opt/resources/windows/ clone https://github.com/maaaaz/impacket-examples-windows
# Webshells
git -C /opt/resources/webshells/PHP/ clone https://github.com/mIcHyAmRaNe/wso-webshell
sed -i 's/fa769dac7a0a94ee47d8ebe021eaba9e/5f4dcc3b5aa765d61d8327deb882cf99/g' /opt/resources/webshells/PHP/wso-webshell/wso.php
git -C /opt/resources/webshells/PHP/ clone https://github.com/flozz/p0wny-shell
wget -O /opt/resources/webshells/ASPX/webshell.aspx "https://raw.githubusercontent.com/xl7dev/WebShell/master/Aspx/ASPX%20Shell.aspx"
# nc
cp /usr/bin/nc.traditional /opt/resources/linux/nc.traditional
wget -P /opt/resources/windows/ "https://gitlab.com/onemask/pentest-tools/-/raw/master/windows/nc.exe"
# SpoolSample
wget -P /opt/resources/windows/ "https://gitlab.com/onemask/pentest-tools/-/raw/master/windows/SpoolSample.exe"
wget -P /opt/resources/windows/ "https://gitlab.com/onemask/pentest-tools/-/raw/master/windows/SpoolSample_v4.5_x64..exe"
# Diaghub
wget -P /opt/resources/windows/ "https://gitlab.com/onemask/pentest-tools/-/raw/master/windows/diaghub.exe"
# LaZagne
git -C /tmp/ clone https://github.com/AlessandroZ/LaZagne
mv /tmp/LaZagne/Linux /opt/resources/linux/LaZagne
mv /tmp/LaZagne/Mac /opt/resources/mac/LaZagne
mv /tmp/LaZagne/Windows /opt/resources/widnows/LaZagne
wget -P /opt/resources/windows/LaZagne/ "$(curl -s https://github.com/AlessandroZ/LaZagne/releases/latest | grep -o '"[^"]*"' | tr -d '"' | sed 's/tag/download/')/lazagne.exe"
rm -r /tmp/LaZagne
# sublinacl
wget -P /opt/resources/windows/ "https://gitlab.com/onemask/pentest-tools/-/raw/master/windows/sublinacl.exe"
# PowerSploit
git -C /opt/resources/windows/ clone https://github.com/PowerShellMafia/PowerSploit
# mimipenguin
git -C /opt/resources/linux/ clone https://github.com/huntergregal/mimipenguin
# mimipy
git -C /opt/resources/linux/ clone https://github.com/n1nj4sec/mimipy
# plink
wget -O /opt/resources/windows/plink32.exe "https://the.earth.li/~sgtatham/putty/latest/w32/plink.exe"
wget -O /opt/resources/windows/plink64.exe "https://the.earth.li/~sgtatham/putty/latest/w64/plink.exe"
}
function cleaning() {
colorecho "[+] Cleaning..."
rm /tmp/gobuster.7z
rm -r /tmp/gobuster-linux-amd64
}
function main(){
update
apt_packages
python-pip
filesystem
ohmyzsh
banners
dependencies
grc
Responder
Sublist3r
ReconDog
CloudFail
OneForAll
EyeWitness
wafw00f
#JSParser
LinkFinder
SSRFmap
NoSQLMap
fuxploider
CORScanner
Blazy
XSStrike
Bolt
CrackMapExec
sprayhound
BloodHound
#mitm6_sources
mitm6
aclpwn
IceBreaker
Empire
DeathStar
Sn1per
dementor
Impacket
proxychains
pykek
lsassy
subjack
assetfinder
subfinder
gobuster
amass
ffuf
gitrob
shhgit
waybackurls
subover
subzy
gron
timing_attack
updog
findomain
autorecon
privexchange
pwntools
pwndbg
darkarmour
powershell
fzf
shellerator
kadimus
testssl
fimap
bat
mdcat
xsrfprobe
krbrelayx
hakrawler
jwt_tool
jwt_cracker
wuzz
gf_install
#rockyou
rbcd-attack
evilwinrm
pypykatz
enyx
enum4linux-ng
resources
cleaning
}
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user" 2>&1
exit 1
else
echo "[!] Careful : this script is supposed to be run inside a docker/VM, do not run this on your host. You are warned :)"
echo "[*] Sleeping 10 seconds, just in case... You can still stop this"
sleep 10
main "$@"
fi