forked from UncleJ4ck/Ubunter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubunter.sh
More file actions
378 lines (329 loc) · 14.8 KB
/
ubunter.sh
File metadata and controls
378 lines (329 loc) · 14.8 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
#!/bin/bash
header() {
clear
echo "
_ _ _ _
| | | | | | |
| | | | |__ _ _ _ __ | |_ ___ _ __
| | | | '_ \| | | | '_ \| __/ _ \ '__|
| |__| | |_) | |_| | | | | || __/ |
\____/|_.__/ \__,_|_| |_|\__\___|_|
by UncleJ1ck
"
}
permNet() {
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
echo -e "GET http://google.com HTTP/1.0\n\n" | nc google.com 80 > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "You are ready to start!"
else
echo "This script needs a network connection"
exit 1
fi
}
prerequisites() {
clear
echo "[!] Do you want to start the installation ?"
echo
echo "1) Yes"
echo "2) No"
echo
read -p ">> " answer
case $answer in
1)
echo
cd ~/
clear
echo "[!]Installing prerequisites"
echo
echo "[!]System updates"
echo
apt-get install tlp tlp-rdw
tlp start
apt-get -y update
apt install -y software-properties-common
apt install -y preload
apt-get -y full-upgrade -y
apt-get dist-upgrade -y
apt autoremove -y
echo
echo "[!]Package installation"
echo
cd ~
sh -c "echo 'deb https://http.kali.org/kali kali-rolling main non-free contrib' > /etc/apt/sources.list.d/kali.list"
apt update
apt install -y gnupg
wget 'https://archive.kali.org/archive-key.asc'
apt-key add archive-key.asc
sudo sh -c "echo 'Package: *'>/etc/apt/preferences.d/kali.pref; echo 'Pin: release a=kali-rolling'>>/etc/apt/preferences.d/kali.pref; echo 'Pin-Priority: 50'>>/etc/apt/preferences.d/kali.pref"
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee /etc/apt/sources.list
echo "deb http://http.kali.org/kali kali-last-snapshot main non-free contrib" | sudo tee /etc/apt/sources.list
echo "deb http://http.kali.org/kali kali-experimental main non-free contrib" | sudo tee -a /etc/apt/sources.list
apt-get install kali-tools-crypto-stego kali-tools-gpu kali-tools-fuzzing kali-tools-bluetooth kali-tools-sdr kali-tools-voip
apt update -y
echo
echo "[!]Removal of default useless apps."
echo
apt autoremove --purge
apt-get autoclean
echo
echo "Do you have packages problem? (y/n)"
echo
read -p ">> " answer
case $answer in
y | Y)
apt-get update --fix-missing
dpkg --configure -a
apt-get install -f
apt-get clean
apt-get update
;;
n | N)
echo "So you can continue!"
;;
esac
echo
echo "[!]Bash to Zsh! Do you wanna switch? (y/n)"
echo
read -p ">> " choice
case $choice in
y | Y)
echo
if ! [ -x "$(command -v zsh)" ]; then
echo 'Error: zsh is not installed.' >&2
echo "Installing zsh..."
echo
apt-get install -y zsh zsh-syntax-highlighting zsh-autosuggestions
usermod -s /usr/bin/zsh $(whoami)
fi
;;
N | n)
echo
echo "You can continue! "
;;
esac
echo
echo "[!]Drivers Installation"
echo
apt-get install -y virtualbox-guest-dkms-hwe
ubuntu-drivers autoinstall
echo
echo "[!]Changing your ubuntu theme"
echo
snap install orchis-themes
for i in $(snap connections | grep gtk-common-themes:gtk-3-themes | awk '{print $2}'); do snap connect $i orchis-themes:gtk-3-themes; done
snap install tela-icons
apt install gnome-shell-extensions
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
gsettings set org.gnome.desktop.interface gtk-theme "Orchis-grey-dark"
gsettings set org.gnome.desktop.wm.preferences theme "Orchis-grey-dark"
gsettings set org.gnome.desktop.interface icon-theme "Orchis-grey-dark"
echo
echo "[!]Installation of ruby and its requirements"
echo
apt-get install -y ruby-full ruby-dev bundler ruby-all-dev
echo
echo "[!]Installation of gems"
echo
gem update --system
gem install bundler
bundle install
gem install activerecord-oracle_enhanced-adapter
gem install clipboard
gem install coffee-script
gem install colorize
gem install commander
gem install ftpd
gem install geoip
gem install highline
gem install http
gem install httparty
gem install httpclient
gem install httpi
gem install mechanize
gem install metasm
gem install net-http-digest_auth
gem install net-ping
gem install net-scp
gem install net-ssh
gem install nokogiri
gem install opal
gem install pry
gem install pry-byebug
gem install pry-doc
gem install rails
gem install rest-client
gem install ruby_apk
gem install rubyfu
gem install ruby-nmap
gem install ruby-ntlm
gem install savon
gem install selenium-webdriver
gem install snmp
gem install wpscan
gem install spidr
gem install tty-prompt
gem install uirusu
gem install virustotal
gem install wasabi
gem install watir-webdriver
gem install websocket
gem install rake
echo
echo "[*]installation of python-requirements"
echo
apt-get install -y python3.9 python3-pip libssl-dev libffi-dev python3-dev python3-aiosqlite python3-bs4 python3-dnspython python3-lxml
echo
echo "[*]installation of java-requirements"
echo
apt-get install default-jdk default-jre oracle-java8-installer openjdk-11-jdk openjdk-11-jre-headless
echo
echo "[*]installation of php-requirements"
echo
apt-get install -y php libapache2-mod-php apache2
echo
echo "[*]installation of dev libs"
echo
apt-get install -y libappindicator1 postgresql-server-dev-all libpq-dev libpcap-dev libsqlite3-dev libperl5.32 libnfc5 libreadline-dev samba-libs libcapstone3 libcapstone-dev libssl-dev zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev libffi-dev libssh-dev libpq-dev libsqlite-dev libsqlite3-dev libpcap-dev libgmp3-dev libpcap-dev libpcre3-dev libidn11-dev libcurl4-openssl-dev build-essential gcc g++
echo
echo "[*]installation of libs"
echo
apt-get install -y libpq5 libreadline5 libjs-sphinxdoc libwbclient0 libappindicator1 libindicator7 build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev curl zlib1g-dev gawk bison libffi-dev libgdbm-dev libncurses5-dev libtool sqlite3 libgmp-dev gnupg2 dirmngr libnss3 libxss1 libssl1.0.0 libncurses5-dev libncurses5 build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev curl zlib1g-dev mdk4 xterm gawk bison libffi-dev hcxdumptool libgdbm-dev libncurses5-dev hcxpcapngtool libtool sqlite3 libgmp-dev gnupg2 dirmngr
echo
echo "[*]installation of perl"
echo
sudo apt-get install -y perl
sudo apt install make
clear
;;
2)
echo "Have a good!"
exit 0
;;
*)
echo "Invalid Input! Please try again"
choice
;;
esac
}
tools() {
clear
cd ~
echo "Which categories of tools do you want to install ?"
echo
echo "
1) Information Gathering 8) Exploitation Tools
2) Vulnerability Analysis 9) Forensics Tools
3) Wireless Attacks 10) Stress Testing
4) Web Applications 11) Password Attacks
5) Sniffing & Spoofing 12) Reverse Engineering
6) Maintaining Access 13) Hardware Hacking
7) Reporting Tools 14) Developer Tools
0) All 15) exit
"
echo
read -p ">> " answer
case $answer in
1)
apt-get install -y amap arp-scan bing-ip2hosts braa cisco-torch copy-router-config copy-router-config dmitry nmap dnsenum dnsmap dnsrecon dnstracer dnswalk dotdotpwn enum4linux enumiax eyewitness exploitdb fierce firewalk goofile hping3 ismtp intrace ident-user-enum inspy lbd legion maltego masscan metagoofil nbtscan-unixwiz nikto nmap osrframework p0f parsero recon-ng set smbmap smtp-user-enum snmpcheck sslsplit sublist3r thc-ipv6 tlssled twofi unicornscan urlcrazy wireshark xplico
;;
2)
apt-get install -y bed cisco-auditing-tool cisco-global-exploiter cisco-ocs cisco-torch copy-router-config doona dotdotpwn greenbone-security-assistant jsql lynis nmap ohrwurm openvas-scanner oscanner sfuzz sidguesser siparmyknife sqlmap sqlninja sqlsus thc-ipv6 tnscmd10g unix-privesc-check yersinia
;;
3)
apt-get install -y aircrack-ng asleap bluelog blueranger bluesnarfer bully cowpatty crackle eapmd5pass fern-wifi-cracker hostapd-wpe kalibrate-rtl kismet mdk3 mfterm multimon-ng pixiewps reaver redfang rtlsdr-scanner spooftooph wifi-honey wifite iw gawk curl git wireless-tools ettercap-graphical hostapd isc-dhcp-server iptables sslstrip lighttpd dsniff reaver xterm expect
;;
4)
apt-get install -y apache-users burpsuite cutycapt davtest dirb dirbuster gobuster hurl jboss-autopwn joomscan jsql nikto padbuster paros parsero plecost recon-ng skipfish sqlmap sqlninja sqlsus uniscan webscarab websploit wfuzz xsser zaproxy
;;
5)
apt-get install -y bettercap burpsuite dnschef fiked hamster-sidejack hexinject iaxflood inviteflood ismtp isr-evilgrade isr-evilgrade mitmproxy ohrwurm protos-sip rebind responder rtpbreak rtpinsertsound rtpmixsound sctpscan siparmyknife sipp sipvicious sniffjoke sslsplit thc-ipv6 voiphopper webscarab wifi-honey wireshark xspy yersinia zaproxy
;;
6)
apt-get install -y cryptcat cymothoa dbd dns2tcp httptunnel nishang polenum powersploit pwnat ridenum sbd webshells weevely winexe
;;
7)
apt-get install -y casefile cherrytree cutycapt dos2unix dradis metagoofil nipper-ng pipal
;;
8)
apt-get install -y armitage backdoor-factory beef cisco-auditing-tool cisco-global-exploiter cisco-ocs cisco-torch commix crackle commix exploitdb jboss-autopwn linux-exploit-suggester routersploit set shellnoob sqlmap thc-ipv6 yersinia beef-xss
cd /tmp
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall
chmod +x msfinstall
./msfinstall
db_status
msfdb init
;;
9)
apt-get install -y binwalk bulk-extractor chntpw dc3dd ddrescue dumpzilla extundelete foremost galleta guymager p0f pdf-parser pdfid xplico
;;
10)
apt-get install -y dhcpig iaxflood inviteflood ipv6-toolkit mdk3 reaver rtpflood slowhttptest t50 termineter thc-ipv6 thc-ssl-dos
;;
11)
apt-get install -y brutespray burpsuite cewl chntpw cisco-auditing-tool cmospwd crowbar crunch gpp-decrypt hash-identifier hashcat hashid hydra john johnny maskprocessor multiforcer ncrack oclgausscrack pack patator polenum rainbowcrack rcracki-mt rsmangler statsprocessor seclists thc-pptp-bruter truecrack webscarab wordlists zaproxy
;;
12)
apt-get install -y apktool dex2jar edb-debugger javasnoop jdim ollydbg smali valgrind yara
;;
13)
apt-get install -y android-sdk apktool arduino dex2jar sakis3g smali
;;
14)
apt install nodejs npm
snap install atom
snap install discord
snap install sublime-text
snap install spotify
snap install --classic code
;;
15)
echo
echo "Have a good day!"
exit 0
;;
0)
apt-get install -y amap arp-scan bing-ip2hosts braa cisco-torch copy-router-config copy-router-config dmitry nmap dnsenum dnsmap dnsrecon dnstracer dnswalk dotdotpwn enum4linux enumiax eyewitness exploitdb fierce firewalk goofile hping3 ismtp intrace ident-user-enum inspy lbd legion maltego masscan metagoofil nbtscan-unixwiz nikto nmap osrframework p0f parsero recon-ng set smbmap smtp-user-enum snmpcheck sslsplit sublist3r thc-ipv6 tlssled twofi unicornscan urlcrazy wireshark xplico bed cisco-auditing-tool cisco-global-exploiter cisco-ocs cisco-torch copy-router-config doona dotdotpwn greenbone-security-assistant jsql lynis nmap ohrwurm openvas-scanner oscanner sfuzz sidguesser siparmyknife sqlmap sqlninja sqlsus thc-ipv6 tnscmd10g unix-privesc-check yersinia aircrack-ng asleap bluelog blueranger bluesnarfer bully cowpatty crackle eapmd5pass fern-wifi-cracker hostapd-wpe kalibrate-rtl kismet mdk3 mfterm multimon-ng pixiewps reaver redfang rtlsdr-scanner spooftooph wifi-honey wifite apache-users burpsuite cutycapt davtest dirb dirbuster gobuster hurl jboss-autopwn joomscan jsql nikto padbuster paros parsero plecost recon-ng skipfish sqlmap sqlninja sqlsus uniscan webscarab websploit wfuzz xsser zaproxy bettercap nodejs npm burpsuite dnschef fiked hamster-sidejack hexinject iaxflood inviteflood ismtp isr-evilgrade isr-evilgrade mitmproxy ohrwurm protos-sip rebind responder rtpbreak rtpinsertsound rtpmixsound sctpscan siparmyknife sipp sipvicious sniffjoke sslsplit thc-ipv6 voiphopper webscarab wifi-honey wireshark xspy yersinia zaproxy cryptcat cymothoa dbd dns2tcp httptunnel nishang polenum powersploit pwnat ridenum sbd webshells weevely cherrytree cutycapt dos2unix dradis metagoofil nipper-ng pipal armitage backdoor-factory beef cisco-auditing-tool cisco-global-exploiter cisco-ocs cisco-torch commix crackle commix exploitdb jboss-autopwn linux-exploit-suggester routersploit set shellnoob sqlmap thc-ipv6 yersinia beef-xss binwalk bulk-extractor chntpw dc3dd ddrescue dumpzilla extundelete foremost galleta guymager p0f pdf-parser pdfid xplico dhcpig iaxflood inviteflood ipv6-toolkit mdk3 reaver rtpflood slowhttptest t50 termineter thc-ipv6 thc-ssl-dos brutespray burpsuite cewl chntpw cisco-auditing-tool cmospwd crowbar crunch gpp-decrypt hash-identifier hashcat hashid hydra john johnny maskprocessor multiforcer ncrack oclgausscrack pack patator polenum rainbowcrack rcracki-mt rsmangler statsprocessor seclists thc-pptp-bruter truecrack webscarab wordlists zaproxy apktool dex2jar edb-debugger javasnoop jdim ollydbg smali valgrind yara android-sdk apktool arduino dex2jar sakis3g smali
snap install discord
snap install sublime-text
snap install spotify
snap install --classic codeno
;;
*)
echo "Invalid Input! Please try again"
tools
;;
esac
echo
echo "The installation has finished! Please reboot it now"
echo "Your lab is ready"
echo "Have a good day!"
exit 0
}
choice() {
echo "Firstly do you want to skip the prerequisites installation ?"
echo
echo "1) Yes"
echo "2) No"
echo
read -p ">> " answer
if [ $answer -eq 2 ]
then
permNet
prerequisites
tools
elif [ $answer -eq 1 ]
then
permNet
tools
else
echo "Invalid Input"
echo "Please try again!"
choice
fi
}
header
choice