-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathignition_key.sh
executable file
·272 lines (199 loc) · 6.38 KB
/
ignition_key.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
#!/bin/bash
# Define colors...
RED=`tput bold && tput setaf 1`
GREEN=`tput bold && tput setaf 2`
YELLOW=`tput bold && tput setaf 3`
BLUE=`tput bold && tput setaf 4`
NC=`tput sgr0`
function RED(){
echo -e "\n${RED}${1}${NC}"
}
function GREEN(){
echo -e "\n${GREEN}${1}${NC}"
}
function YELLOW(){
echo -e "\n${YELLOW}${1}${NC}"
}
function BLUE(){
echo -e "\n${BLUE}${1}${NC}"
}
# Testing if root...
if [ $UID -ne 0 ]
then
RED "You must run this script as root!" && echo
exit
fi
BLUE "Updating repositories..."
sudo apt update
BLUE "Installing git..."
sudo apt install -y git
BLUE "Installing Sublime Text..." # according to https://www.sublimetext.com/docs/3/linux_repositories.html-
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install -y 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 -y sublime-text
BLUE "Installing terminator..."
sudo apt install -y terminator
BLUE "Setting terminator as the default terminal emulator..."
sed -i s/Exec=gnome-terminal/Exec=terminator/g /usr/share/applications/gnome-terminal.desktop
BLUE "Forcing a color prompt in ~/.bashrc..."
grep "export PS1" ~/.bashrc
if [ $? -eq 1 ]
then
echo "export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> ~/.bashrc
fi
BLUE "Installing SimpleScreenRecorder..."
echo "" | sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install -y simplescreenrecorder
BLUE "Installing task..."
sudo apt-get install -y taskwarrior
BLUE "Installing pip..."
sudo apt-get install -y python-pip
BLUE "Removing boilerplate home directories..."
rmdir ~/Desktop ~/Documents ~/Downloads ~/Music ~/Pictures ~/Public ~/Templates ~/Videos
BLUE "Installing guake..."
sudo apt-get install -y guake
BLUE "Installing openvpn..."
sudo apt-get install -y openvpn
BLUE "Installing nmap..."
sudo apt-get install -y nmap
BLUE "Installing docker..."
sudo apt-get install -y docker.io
sudo groupadd docker
sudo usermod -aG docker `logname`
BLUE "Installing curl..."
sudo apt-get install -y curl
BLUE "Installing pinta..."
sudo apt-get install -y pinta
BLUE "Installing exiftool..."
sudo apt-get install -y exiftool
BLUE "Installing Python PIL..."
sudo apt-get install -y python-pil
BLUE "Installing sqlitebrowser..."
sudo apt-get install -y sqlitebrowser
BLUE "Installing Wireshark..."
sudo apt-get install -y wireshark
BLUE "Install Real VNC Viewer..."
wget "https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.17.1113-Linux-x64.deb" -O vnc_viewer.deb
dpkg -i vnc_viewer.deb
rm vnc_viewer.deb
BLUE "Install Real VNC Connect (Server)..."
wget 'https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.2.1-Linux-x64.deb' -O vnc_server.deb
dpkg -i vnc_server.deb
rm vnc_server.deb
BLUE "Adding VNC Connect (Server) service to the default startup /etc/rc.local..."
grep "vncserver-x11-serviced.service" /etc/rc.local
if [ $? -eq 1 ]
then
echo "systemctl start vncserver-x11-serviced.service" >> ~/etc/rc.local
fi
BLUE "Installing Atom..."
wget "https://atom.io/download/deb" -O atom.deb
dpkg -i atom.deb
rm atom.deb
BLUE "Installing python-requests..."
pip install requests
BLUE "Installing idle..."
sudo apt install -y idle
BLUE "Installing xclip..."
sudo apt install -y xclip
grep "alias xclip" ~/.bashrc
if [ $? -eq 1 ]
then
echo "alias xclip='xclip -selection clipboard'" >> ~/.bashrc
fi
BLUE "Installing Python flask..."
sudo pip install flask
BLUE "Installing Python flask-login..."
sudo pip install flask-login
BLUE "Installing Python colorama..."
sudo pip install colorama
BLUE "Installing Python passlib..."
sudo pip install passlib
BLUE "Installing Spotify..."
sudo snap install spotify
BLUE "Installing Binwalk..."
sudo apt install -y binwalk
BLUE "Installing Tesseract..."
sudo apt install -y tesseract-ocr
BLUE "Installing foremost..."
sudo apt install -y foremost
BLUE "Installing rot13..."
sudo apt install -y bsdgames
BLUE "Installing hexedit..."
sudo apt install -y hexedit
BLUE "Installing Python pwntools..."
sudo pip install pwntools
BLUE "Installing Go..."
sudo apt install -y golang-go
BLUE "Adding GOPATH and GOBIN to .bashrc, so future installs are easy.."
grep "export GOPATH" ~/.bashrc
if [ $? -eq 1 ]
then
echo "export GOPATH=\$HOME/.go/" >> ~/.bashrc
fi
grep "export GOBIN" ~/.bashrc
if [ $? -eq 1 ]
then
echo "export GOBIN=\$HOME/.go/bin" >> ~/.bashrc
echo "export PATH=\$PATH:\$GOBIN" >> ~/.bashrc
fi
BLUE "Installing sqlite..."
sudo apt install -y sqlite
BLUE "Installing nikto..."
sudo apt install -y nikto
BLUE "Installing zbarimg..."
sudo apt install -y zbar-tools
BLUE "Installing qrencode..."
sudo apt install -y qrencode
BLUE "Installing pdfcrack..."
sudo apt install -y pdfcrack
BLUE "Installing Virtualbox..."
sudo apt install -y virtualbox-qt
BLUE "Installing Vagrant..."
sudo apt install -y vagrant
BLUE "Installing Hopper..."
wget "https://d2ap6ypl1xbe4k.cloudfront.net/Hopper-v4-4.3.14-Linux.deb"
dpkg -i Hopper-v4-4.3.14-Linux.deb
rm Hopper-v4-4.3.14-Linux.deb
BLUE "Installing Oracle Java 8..."
echo "" | sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install -y oracle-java8-installer
BLUE "Downloading stegsolve.jar..."
wget "http://www.caesum.com/handbook/Stegsolve.jar" -O "stegsolve.jar"
chmod +x "stegsolve.jar"
BLUE "Installing fcrackzip..."
sudo apt install -y fcrackzip
BLUE "Installing unrar..."
sudo apt install -y unrar
BLUE "Installing steghide..."
sudo apt install -y steghide
BLUE "Installing ffmpeg..."
sudo apt install -y ffmpeg
BLUE "Installing Python library netifaces..."
sudo pip install netifaces
BLUE "Installing Python library iptools..."
sudo pip install iptools
BLUE "Installing Python library OpenSSL..."
sudo pip install pyopenssl
BLUE "Installing Python library pydispatch..."
sudo pip install pydispatch
BLUE "Installing GIMP..."
sudo apt install -y gimp
BLUE "Installing cmake..."
sudo apt install -y cmake
BLUE "Installing mplayer..."
sudo apt install -y mplayer
BLUE "Installing sshpass..."
sudo apt install -y sshpass
BLUE "Installing tcpflow..."
sudo apt install -y tcpflow
BLUE "Installing Python scapy..."
sudo pip install scapy
BLUE "Installing the thing that 7z2john.pl needs..."
sudo apt install libcompress-raw-lzma-perl
BLUE "Installing dos2unix..."
sudo apt install libcompress-raw-lzma-perl