-
Notifications
You must be signed in to change notification settings - Fork 111
/
updater-current.sh
263 lines (207 loc) · 7.11 KB
/
updater-current.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
#!/usr/bin/env bash
tput setaf 5;echo "###############################"
tput setaf 5;echo "# Trace Labs OSINT VM Updater #"
tput setaf 5;echo "###############################"
echo "[+] Update + Upgrade System.."
sudo apt update -qq
sudo apt upgrade -qq -y
sudo npm install npm@latest -g
sudo npm update -g
echo "[+] Upgrading Kali version to latest..."
sudo apt dist-upgrade -qq -y
sudo apt full-upgrade -qq -y
echo "[+] 2021.2 OVA fixup..."
# Fix: ORIG_HEAD broken reference
sudo find /usr/share/ -name ORIG_HEAD -size -1b -delete
# Fix: sherlock no such file
sudo sed -i 's/\/usr\/share\/sherlock\/sherlock\.py/\/usr\/share\/sherlock\/sherlock\/sherlock.py/' /usr/bin/sherlock
# Fix: stego-toolkit and exifscan
clean_dir() {
if [ -d "${1}" ]; then
if [ "$(wc -c <"${1}"/README.md)" -lt 1 ]; then
echo README.md is zero byte size fixing..
# Regular update process should clone when it sees no dir
sudo rm -rf "${1}"
fi
fi
}
STEGO_DIR=/usr/share/stego-toolkit
EXIFSCAN_DIR=/usr/share/exifscan
clean_dir "${STEGO_DIR}"
clean_dir "${EXIFSCAN_DIR}"
#################
# should we be backing up any changes the user has made before overwriting?
tput setaf 5;echo "[+] Replace Kali Firefox Bookmarks..."
{
sudo wget -O /usr/share/firefox-esr/distribution/distribution.ini https://github.com/raw/tracelabs/tlosint-live/master/kali-config/common/includes.chroot/usr/share/firefox-esr/distribution/distribution.ini
}
tput setaf 2;echo "[+] Done."
#################
tput setaf 5;echo "[+] Updating LittleBrother..."
{
if [ -d "/usr/share/LittleBrother" ]; then
cd /usr/share/LittleBrother
sudo git pull https://github.com/Lulz3xploit/LittleBrother --rebase
else
sudo git clone https://github.com/Lulz3xploit/LittleBrother /usr/share/LittleBrother
fi
}
tput setaf 2;echo "[+] Done."
##################
tput setaf 5;echo "[+] Updating PhoneInfoga..."
{
PHONEINFOGA_RELEASE="latest" # examples: latest, tag/v2.0.8
PHONEINFOGA_FILE=/usr/share/phoneinfoga/phoneinfoga_"$(uname -s)"_"$(uname -m)".tar.gz
PHONEINFOGA_URL=https://github.com/sundowndev/phoneinfoga/releases/"${PHONEINFOGA_RELEASE}"/download/phoneinfoga_"$(uname -s)"_"$(uname -m)".tar.gz
cd /usr/share/phoneinfoga || sudo mkdir -p /usr/share/phoneinfoga && cd /usr/share/phoneinfoga/
http_response=$(sudo curl -L -o "${PHONEINFOGA_FILE}" -z "${PHONEINFOGA_FILE}" "${PHONEINFOGA_URL}" -s -w "%{http_code}" 2>/dev/null)
if [ "${http_response}" -eq 200 ]; then
echo "New version found updating.."
sudo tar xvf "${PHONEINFOGA_FILE}"
sudo chmod +x /usr/bin/phoneinfoga
elif [ "${http_response}" -eq 304 ]; then
echo "No updates found.."
else
echo "Failed to get update. HTTP_ERROR ${http_response}"
fi
}
tput setaf 2;echo "[+] Done."
###################
# THESE LINES KEPT IN MEMORY OF EXIFSCAN. A ONCE VALUABLE REPO THAT WENT KABOOF BANG BOOM. CAN WE GET A MOMENT OF SILENCE?
#tput setaf 5;echo "[+] Updating ExifScan..."
#{
# if [ -d "/usr/share/exifscan" ]; then
#
# cd /usr/share/exifscan
# sudo git pull https://github.com/rcook/exifscan.git --rebase
# else
# sudo git clone https://github.com/rcook/exifscan /usr/share/exifscan
# fi
#}
#tput setaf 2;echo "[+] Done."
#####################
tput setaf 5;echo "[+] Updating DumpsterDiver..."
{
if [ -d "/usr/share/DumpsterDiver" ]; then
cd /usr/share/DumpsterDiver
sudo git pull https://github.com/securing/DumpsterDiver.git --rebase
else
sudo git clone https://github.com/securing/DumpsterDiver /usr/share/DumpsterDiver
fi
}
tput setaf 2;echo "[+] Done."
######################
tput setaf 5;echo "[+] Updating Sherlock..."
{
if [ -d "/usr/share/sherlock" ]; then
cd /usr/share/sherlock
sudo git init
sudo git pull https://github.com/sherlock-project/sherlock.git --rebase
else
sudo git clone https://github.com/sherlock-project/sherlock /usr/share/sherlock
fi
}
tput setaf 2;echo "[+] Done."
#########################
tput setaf 5;echo "[+] Updating Infoga..."
{
if [ -d "/usr/share/Infoga" ]; then
cd /usr/share/Infoga
sudo git pull https://github.com/m4ll0k/Infoga.git --rebase
else
sudo git clone https://github.com/m4ll0k/Infoga /usr/share/Infoga
fi
}
tput setaf 2;echo "[+] Done."
###########################
tput setaf 5;echo "[+] Updating Stego Toolkit..."
{
if [ -d "/usr/share/stego-toolkit" ]; then
cd /usr/share/stego-toolkit
sudo git pull https://github.com/DominicBreuker/stego-toolkit.git --rebase
else
sudo git clone https://github.com/DominicBreuker/stego-toolkit.git /usr/share/stego-toolkit
fi
}
tput setaf 2;echo "[+] Done."
###########################
tput setaf 5;echo "[+] Updating sn0int..."
{
if [ -d "/usr/share/sn0int" ]; then
cd /usr/share/sn0int
sudo git pull https://github.com/kpcyrd/sn0int.git --rebase
sudo cargo install -f --path .
else
sudo git clone https://github.com/kpcyrd/sn0int /usr/share/sn0int
fi
}
tput setaf 2;echo "[+] Done."
############################
tput setaf 5;echo "[+] Updating Spiderpig..."
{
if [ -d "/usr/share/Spiderpig" ]; then
cd /usr/share/Spiderpig
sudo git pull https://github.com/hatlord/Spiderpig.git --rebase
bundle install
else
sudo git clone https://github.com/hatlord/Spiderpig /usr/share/Spiderpig
fi
}
tput setaf 2;echo "[+] Done."
############################
tput setaf 5;echo "[+] Updating WhatsMyName..."
{
if [ -d "/usr/share/WhatsMyName" ]; then
cd /usr/share/WhatsMyName
sudo git pull https://github.com/WebBreacher/WhatsMyName.git --rebase
else
sudo git clone https://github.com/WebBreacher/WhatsMyName /usr/share/WhatsMyName
fi
}
tput setaf 2;echo "[+] Done."
############################
tput setaf 5;echo "[+] Updating WikiLeaker..."
{
if [ -d "/usr/share/WikiLeaker" ]; then
cd /usr/share/WikiLeaker
sudo git pull https://github.com/jocephus/WikiLeaker.git --rebase
else
sudo git clone https://github.com/jocephus/WikiLeaker /usr/share/WikiLeaker
fi
}
tput setaf 2;echo "[+] Done."
############################
tput setaf 5;echo "[+] Updating OnionSearch..."
{
if [ -d "/usr/share/OnionSearch" ]; then
cd /usr/share/OnionSearch
sudo git pull https://github.com/megadose/OnionSearch.git --rebase
else
sudo git clone https://github.com/megadose/OnionSearch.git /usr/share/OnionSearch
fi
}
tput setaf 2;echo "[+] Done."
tput setaf 5;echo "[+] Updating Twayback..."
{
if [ -d "/usr/share/twayback" ]; then
cd /usr/share/twayback
sudo git pull https://github.com/humandecoded/twayback.git --rebase
pip install -r requirements.txt
else
sudo git clone https://github.com/humandecoded/twayback.git /usr/share/twayback
cd /usr/share/twayback
pip install -r requirements.txt
fi
}
tput setaf 2;echo "[+] Done."
tput setaf 5;echo "[+] Updating yt-dlp..."
{
pip install --upgrade yt-dlp
}
tput setaf 2;echo "[+] Done."
tput setaf 5;echo "[+] Updating youtube-dl..."
{
pip install --upgrade youtube-dl
}
tput setaf 2;echo "[+] Done."
############################