-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstaller.sh
517 lines (431 loc) · 16 KB
/
installer.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
#!/bin/bash
##### (Cosmetic) Colour output
RED="\033[01;31m" # Issues/Errors
GREEN="\033[01;32m" # Success
YELLOW="\033[01;33m" # Warnings/Information
BLUE="\033[01;34m" # Heading
BOLD="\033[01;01m" # Highlight
RESET="\033[00m" # Normal
str='▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒'
echo -e "${YELLOW}"
cat << "EOF"
___ ____ ________ __ (_)___ _____/ /_____ _/ / /__ _____
| _ \/ __ `/ ___/ / / / / / __ \/ ___/ __/ __ `/ / / _ \/ ___/
| __/ /_/ (__ ) /_/ / / / / / (__ ) /_/ /_/ / / / __/ /
|___/\__,_/____/\__, / /_/_/ /_/____/\__/\__,_/_/_/\___/_/
/____/
__ _ ____
/ /______ _/ (_) _ __ < / / __ \
/ //_/ __ `/ / / | | / / / / / / / /
/ ,< / /_/ / / / | |/ / / /_/ /_/ /
/ |_|\__,_/_/_/ |___/ /_/(_)____/
EOF
echo -e "${GREEN}"
##################################installation starts ######################################
options=("install passwordless sudo" "install packages" "remove-lock" "install apt https" "fancy bash prompt installer" "gitcollection" "upgradeos" "Quit")
select opt in "${options[@]}"
do
case $opt in
"install passwordless sudo")
sudo apt install -y kali-grant-root && sudo dpkg-reconfigure kali-grant-root
;;
"install packages")
printf "\033[K" # clear to end-of-line
tput cnorm
# powershell installation ${GREEN}
psh=$(dpkg -l | grep "powershell")
if [ "$psh" ]; then
echo -e "${RED}you have already installed powershell skipping installation ${GREEN}"
tput civis # make cursor invisible
for i in `seq 1 5`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
else
sudo apt install powershell
fi
#wine installation ${GREEN}
win=$(dpkg -l | grep "wine")
if [ "$win" ]; then
echo -e " ${RED} you have already installed wine skipping installation ${GREEN}"
tput civis # make cursor invisible
for i in `seq 5 15`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
else
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine:i386
sudo apt install wine-bin:i386
fi
shel=$(dpkg -l | grep "shellter")
if [ "$shel" ]; then
echo -e "${RED} you have installed shellter skipping installation ${GREEN} "
tput civis # make cursor invisible
for i in `seq 15 25`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
else
sudo apt update
#shellter installation ${GREEN}
sudo apt install shellter
fi
gob=$(dpkg -l | grep "gobuster")
if [ "$gob" ]; then
echo -e "${RED}you have already installed gobuster skipping installation ${GREEN} "
tput civis # make cursor invisible
for i in `seq 25 35`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
#gobuster instllation
else
sudo apt install gobuster
fi
secl=$(dpkg -l | grep "seclists")
if [ "$secl" ]; then
echo -e "${RED}you have already installed seclists skipping installation ${GREEN}"
for i in `seq 35 40`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
#seclists installation ${GREEN}
else
sudo apt install seclists
fi
#docker installation ${GREEN}
docc=$(dpkg -l | grep "docker")
if [ "$docc" ]; then
echo -e "${RED}you have already installed docker skipping installation ${GREEN}"
for i in `seq 40 55`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
else
sudo apt update
sudo apt -y install curl gnupg2 apt-transport-https software-properties-common ca-certificates
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER
newgrp docker
fi
figg=$(ls /usr/share| grep "figlet")
if [ "$figg" ]; then
echo -e "${RED}you have already installed figlet skipping installation ${GREEN}"
for i in `seq 55 60`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
else
#figlet installation ${GREEN}
sudo cd /usr/share
sudo wget ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz
sudo tar -xvf figlet-2.2.5.tar.gz
sudo rm figlet-2.2.5.tar.gz
cd ..
cd ~
fi
lolca=$(ls /usr/share| grep "lolcat")
if [ "$lolca" ]; then
echo -e "${RED}you have already installed lolcat skipping installation ${GREEN}"
for i in `seq 60 75`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
else
cd /usr/share
sudo git clone https://github.com/busyloop/lolcat
cd lolcat
cd bin && sudo gem install lolcat
cd ..
cd /usr/share
sudo git clone https://github.com/xero/figlet-fonts
mv figlet-fonts/* figlet && rm –rf figlet-fonts
cd ~
fi
#scrot installation ${GREEN}
scre=$(dpkg -l | grep "scrot")
if [ "$scre" ]; then
echo -e "${RED}you have already installed scrot skipping installation ${GREEN}"
for i in `seq 75 80`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
else
sudo apt install scrot
fi
# openning realvnc website
rvnc=$(dpkg -l | grep "realvnc")
if [ "$rvnc" ]; then
echo -e "${RED}you have already installed realvnc skipping installation ${GREEN}"
for i in `seq 80 85`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
else
firefox https://www.realvnc.com/en/connect/download/vnc/
sleep 120
cd ~/Downloads
ls
#removing xtightvncviewer
sudo apt remove tightvncserver
sudo apt remove xtightvncviewer
ls
#installing vnc from .deb files
sudo dpkg -i VNC-Server-*.deb
ls
sudo dpkg -i VNC-Viewer-*.deb
fi
#anydeskinstall
anydesk1=$(dpkg -l | grep "anydesk")
if [ "$anydesk1"]; then
echo "anydesk not installed"
else
echo -e "\n installing anydesk"
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -
echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list
apt update
apt install anydesk
echo -e "completed installing anydesk"
fi
#empire install
emp1=$(ls /opt | grep "Empire")
if [ "$emp1" ]; then
echo -e "${RED}you have already installed empire skipping installation ${GREEN}"
else
cd /opt
sudo git clone https://github.com/EmpireProject/Empire.git
cd Empire
sudo ./setup/install.sh
fi
subli=$(dpkg -l | grep "sublime")
if [ "$subli" ]; then
echo -e "\n ${RED}you have already installed sublime skipping installation ${GREEN}"
else
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
fi
typori=$(dpkg -l | grep "typora")
if [ "$typori" ]; then
echo -e "${RED}you have already installed typora skipping installation ${GREEN}"
else
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
echo -e "\ndeb https://typora.io/linux ./" | sudo tee -a /etc/apt/sources.list.d/typora.list
sudo apt-get update
sudo apt-get install typora
fi
#the fat rat installation
ftr=$(ls /usr/share | grep "TheFatRat")
if [ "$ftr" ]; then
echo -e "${RED}you have already installed TheFatRat skipping installation"
else
cd /usr/share
sudo apt install xterm
sudo git clone https://github.com/Screetsec/TheFatRat.git
cd TheFatRat
sudo chmod +x setup.sh && sudo ./setup.sh
cd /usr/share/TheFatRat && ./update && sudo chmod +x setup.sh &&sudo ./setup.sh
cd ~
fi
# remina remote desktop installation ${GREEN}
remid=$(dpkg -l | grep "remmina")
if [ "$remid" ]; then
echo -e "${RED}you have already installed remmina skipping installation ${GREEN}"
else
echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee --append /etc/apt/sources.list.d/stretch-backports.list >> /dev/null
sudo apt update
sudo apt install -t stretch-backports remmina remmina-plugin-rdp remmina-plugin-secret remmina-plugin-spice
sudo rm -r /etc/apt/sources.list.d/stretch-backports.list
fi
echo -e " \n"
echo -e "\n ${GREEN} installation completed"
;;
#########################################lock starts############################################################################
"remove-lock")
lck=$( ls /var/lib/dpkg/lock | grep "lock" )
if [ "$lck" ]; then
echo -e "sorry no lock has been detected u can run 1 to continue installation"
else
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/apt/lists/lock
for i in `seq 1 100`; do # for 1 to 100, save cursor, restore, output, restore
printf "\033[s\033[u removing lock in Progress: %s %3d %% \033[u" "${str:0:$(((i+1)/2))}" "$i"
sleep 0.1 # small delay
done
echo -e "\n sucess"
fi
;;
#############################################apt-https########################################################
"install apt https")
echo " changing apt to https from https makes the apt process faster"
sudo apt update
sudo apt-get install apt-transport-https -y
echo " changing nameserver increases overall speed "
sudo echo -e " \n nameserver 8.8.8.8 \n nameserver 8.8.4.1">> sudo /etc/resolv.conf
sudo nano /etc/resolv.conf
echo "changed resolv.conf and installed https for deb installation"
;;
#######upgradeos#############
"upgradeos")
echo -e "\n checking for updates "
sudo apt update
clear
echo -e "\n showing list of upgradable"
sudo apt list --upgradable
echo -e "\n upgrading os "
sudo apt upgrade
echo -e "upgrading distro"
sudo apt dist-upgrade
echo -e "removing abandoned packages"
sudo apt autoremove
echo -e "completed upgrade "
;;
#######################fancy bash prompt ######################################################
"fancy bash prompt installer")
cd /tmp && git clone https://github.com/petobens/trueline.git && cd trueline &&echo 'source ~/trueline/trueline.sh' >> ~/.bashrc
;;
################git-collection#########################################################
"gitcollection")
cd ~/Desktop
mkdir tools
cd tools
cat << "EOF"
__ __ __
# / | / | / |
# ______ __ __ ______ $$ | ______ $$/ _$$ |_ ______ ______
# / \ / \ / | / \ $$ | / \ / |/ $$ | / \ / \
# /$$$$$$ |$$ \/$$/ /$$$$$$ |$$ |/$$$$$$ |$$ |$$$$$$/ /$$$$$$ |/$$$$$$ |
# $$ $$ | $$ $$< $$ | $$ |$$ |$$ | $$ |$$ | $$ | __ $$ $$ |$$ | $$/
# $$$$$$$$/ /$$$$ \ $$ |__$$ |$$ |$$ \__$$ |$$ | $$ |/ |$$$$$$$$/ $$ |
# $$ |/$$/ $$ |$$ $$/ $$ |$$ $$/ $$ | $$ $$/ $$ |$$ |
# $$$$$$$/ $$/ $$/ $$$$$$$/ $$/ $$$$$$/ $$/ $$$$/ $$$$$$$/ $$/
# $$ |
# $$ |
# $$/
EOF
echo -e "mass git exploit cloner"
mkdir windows_exploiter
cd windows_exploiter
git clone https://github.com/pentestmonkey/windows-privesc-check.git
git clone https://github.com/bitsadmin/wesng.git
git clone https://github.com/M4ximuss/Powerless.git
# Windows Exploits (precompiled)
git clone https://github.com/abatchy17/WindowsExploits.git
# Arjun
git clone https://github.com/s0md3v/Arjun.git
# Powersploit
git clone https://github.com/PowerShellMafia/PowerSploit.git
# BloodHound Ingestors and Source
git clone https://github.com/BloodHoundAD/BloodHound.git
# windapsearch - new go version
git clone https://github.com/ropnop/go-windapsearch.git
git clone https://github.com/Hackplayers/evil-winrm.git
# windows kernel exploits
git clone https://github.com/egre55/windows-kernel-exploits.git
# PEAS Suite
git clone https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite.git
# windows privesc check
git clone https://github.com/pentestmonkey/windows-privesc-check.git
# Windows Exploit Suggester Next Generation
git clone https://github.com/bitsadmin/wesng.git
cd ..
mkdir linux_exploiter
cd linux_exploiter
git clone https://github.com/jondonas/linux-exploit-suggester-2.git
pwd
git clone https://github.com/pentestmonkey/unix-privesc-check.git
pwd
git clone https://github.com/sleventyeleven/linuxprivchecker.git
pwd
git clone https://github.com/Arr0way/linux-local-enumeration-script.git
git clone https://github.com/21y4d/nmapAutomator.git
# enum4linux
git clone https://labs.portcullis.co.uk/tools/enum4linux/
# unix privesc check
wget http://pentestmonkey.net/tools/unix-privesc-check/unix-privesc-check-1.4.tar.gz
tar zxfv unix-privesc-check-1.4.tar.gz
# Linux smart enumeration
git clone https://github.com/diego-treitos/linux-smart-enumeration.git
# Linenum
git clone https://github.com/rebootuser/LinEnum.git
# Linux priv checker
git clone https://github.com/sleventyeleven/linuxprivchecker.git
# kali lootbox
git clone https://github.com/g0x0dvibes/kali-lootbox.git
cd ..
mkdir fuzzer
cd fuzzer
pwd
git clone https://github.com/wireghoul/dotdotpwn.git
cd ..
mkdir webdav
cd webdav
pwd
git clone https://github.com/cldrn/davtest.git
cd ..
mkdir shellcode
cd shellcode
pwd
git clone https://github.com/TheWover/donut.git
cd ..
mkdir powershell
cd powershell
pwd
git clone https://github.com/EmpireProject/Empire.git
git clone https://github.com/samratashok/nishang.git
cd..
mkdir android
cd andorid
git clone https://github.com/Screetsec/TheFatRat.git
cd ..
mkdir cms
cd cms
git clone https://github.com/Tuhinshubhra/CMSeeK.git
git clone https://github.com/droope/droopescan.git
# AutoRecon
git clone https://github.com/Tib3rius/AutoRecon.git
# Nikto2 latest
git clone https://github.com/sullo/nikto.git
# p0wny shell
git clone https://github.com/flozz/p0wny-shell.git
cd ..
mkdir privesc
# Payload All The Things
git clone https://github.com/swisskyrepo/PayloadsAllTheThings.git
# SUID3NUM
git clone https://github.com/Anon-Exploiter/SUID3NUM
# Pspy
git clone https://github.com/DominicBreuker/pspy.git
# Privilege Escalation Awesome Scripts
git clone https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite.git
cd ...
mkdir reconnisance
# Fingerprint2 JS
git clone https://github.com/Valve/fingerprintjs2.git
# Interlace
git clone https://github.com/codingo/Interlace.git
# dirsearch
git clone https://github.com/maurosoria/dirsearch.git
# Reconnoitre
git clone https://github.com/codingo/Reconnoitre.git
cd ..
echo -e "\n done !!!!!!!!!!!!!"
;;
#####################################quit######################################################################################
"Quit")
break
;;
*)
echo "invalid option";
;;
esac
done