-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtbot.sh
361 lines (319 loc) · 8.78 KB
/
tbot.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
#!/data/data/com.termux/files/usr/bin/bash
#Adding colors
R="$(printf '\033[1;31m')"
G="$(printf '\033[1;32m')"
Y="$(printf '\033[1;33m')"
W="$(printf '\033[1;37m')"
C="$(printf '\033[1;36m')"
#banner
clear
banner(){
printf ${C}"████████╗██████╗ ██████╗ ████████╗\n"
printf "╚══██╔══╝██╔══██╗██╔═══██╗╚══██╔══╝\n"
printf " ██║ ██████╔╝██║ ██║ ██║ \n"
printf " ██║ ██╔══██╗██║ ██║ ██║ \n"
printf " ██║ ██████╔╝╚██████╔╝ ██║ \n"
printf " ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ \n"${W}
printf ${Y}" By Technical Bot\n"${W}
}
#Tools List
clear
banner
echo
echo ${C}"[1] BEeF"
echo "[2] Metasploit"
echo "[3] mitmproxy"
echo "[4] Routersplit"
echo "[5] Nmap"
echo "[6] Netcat"
echo "[7] Ghost Framework"
echo "[8] PyPhisher"
echo "[9] PhoneSploit"
echo "[10] Sherlock"
echo "[11] John The Ripper"
echo "[12] Cupp"
echo "[13] L3MON"
echo "[14] Hydra"${W}
echo
read -p ${Y}"Select option: "${W} user_input
echo
get_arch() {
printf ${G}"[*] Checking device architecture ..."${W}
case $(getprop ro.product.cpu.abi) in
arm64-v8a)
SYS_ARCH=arm64
;;
armeabi|armeabi-v7a)
SYS_ARCH=armhf
;;
*)
unsupported_arch
;;
esac
}
install_hydra(){
pkg update
pkg install wget clang build-essential binutils make libidn libpcreposix libssh libgpg-error git-svn memcached libgcrypt -y
cd $PREFIX/opt
wget https://github.com/vanhauser-thc/thc-hydra/archive/refs/tags/v9.4.tar.gz
mkdir thc-hydra
tar -xzvf v9.4.tar.gz -C thc-hydra --strip-components=1
cd thc-hydra
./configure --prefix=$PREFIX
sleep 4
make
sleep 4
make install
echo
echo ${G}"Installation Complete"${W}
echo
}
install_beef(){
pkg update
pkg install curl git libyaml libxslt bison espeak ruby python nodejs nano binutils -y
cd $PREFIX/opt
git clone https://github.com/beefproject/beef
cd $PREFIX/opt/beef
echo " gem 'net-smtp', require: false" >> Gemfile
sed -i '280d' install
sed -i 's/sudo//' install
bash install
echo "cd $PREFIX/opt/beef && ruby beef" >> $PREFIX/bin/beef
chmod +x $PREFIX/bin/beef
echo ${G}"[*] Installation completed..."
echo "[*] Now you can launch beef just by executing 'beef' and make sure to change you login id and password in '$PREFIX/opt/beef/config.yaml' file"${W}
echo
}
install_nmap(){
pkg update
pkg install nmap -y
echo ${G}"[*] Installation completed..."${W}
echo
}
install_metasploit(){
pkg update
pkg install wget -y
wget https://github.com/gushmazuko/metasploit_in_termux/raw/master/metasploit.sh
bash metasploit.sh
rm metasploit.sh
echo
}
install_routersploit(){
get_arch
printf get_arch
echo
echo
if [[ $SYS_ARCH == "arm64" ]]; then
pkg update
pkg install git python rust libsodium python-cryptography -y
cd $PREFIX/opt
git clone https://github.com/threat9/routersploit
cd $PREFIX/opt/routersploit
export CARGO_BUILD_TARGET=aarch64-linux-android
pip install cryptography --no-binary cryptography
SODIUM_INSTALL=system pip install pynacl
pip3 install -r requirements.txt
echo "python3 $PREFIX/opt/routersploit/rsf.py" >> $PREFIX/bin/rsf
chmod +x $PREFIX/bin/rsf
echo
echo ${G}"[*] Installation completed..."
echo "[*] You can start Routersploit just by executing rsf"${W}
else
echo ${R}"[*] Sorry, Your device architecture is not supported"${W}
fi
}
install_mitmproxy(){
get_arch
printf get_arch
echo
echo
if [[ $SYS_ARCH == "arm64" ]]; then
pkg update
pkg install python rust python-cryptography -y
export CARGO_BUILD_TARGET=aarch64-linux-android
pip install cryptography --no-binary cryptography
pip3 install mitmproxy
echo
echo ${G}"[*] Installation completed..."${W}
echo
else
echo ${R}"[*] Sorry, Your device architecture is not supported"${W}
fi
}
install_netcat(){
pkg update
pkg install netcat -y
echo ${G}"[*] Installation completed..."${W}
}
install_ghost(){
get_arch
printf get_arch
echo
echo
if [[ $SYS_ARCH == "arm64" ]]; then
pkg update
pkg install git python rust python-cryptography -y
export CARGO_BUILD_TARGET=aarch64-linux-android
pip install cryptography --no-binary cryptography
pip3 install git+https://github.com/EntySec/Ghost
echo
echo ${G}"[*] Installation Completed..."${W}
echo
else
echo ${R}"[*] Sorry, Your device architecture is not supported"${W}
fi
}
install_pyphisher(){
pkg update
pkg install -y git python curl wget php proot
cd $PREFIX/opt
git clone https://github.com/KasRoudra/PyPhisher
echo "cd $PREFIX/opt/PyPhisher && python3 pyphisher.py" >> $PREFIX/bin/pyphisher
chmod +x $PREFIX/bin/pyphisher
echo ${G}"[*] Installation Completed..."
echo "[*] You can launch PyPhisher just by executing 'pyphisher'"${W}
echo
}
install_johntheripper(){
pkg update
pkg install git make perl clang binutils -y
cd $HOME
git clone https://github.com/openwall/john
cd john/src
./configure
make -s clean && make -sj4
cd $HOME
echo
echo ${G}"[*] Installation Completed"${W}
echo
}
install_cupp(){
pkg update
pkg install git python -y
cd $HOME
git clone https://github.com/Mebus/cupp
echo
echo ${G}"[*] Installation completed"${W}
echo
}
install_sherlock(){
pkg update
pkg install git python -y
cd $HOME
git clone https://github.com/sherlock-project/sherlock
cd sherlock
pip3 install -r requirements.txt
cd $HOME
echo
echo ${G}"[*] Installation completed"${W}
echo
}
install_phonesploit(){
pkg update
pkg install git python android-tools -y
pip3 install colorama
cd $PREFIX/opt
git clone https://github.com/aerosol-can/PhoneSploit
cd $HOME
echo "python3 $PREFIX/opt/PhoneSploit/phonesploit.py" >> $PREFIX/bin/phonesploit
chmod +x $PREFIX/bin/phonesploit
echo
echo ${G} "[*] Installation completed"
echo "[*] You can launch PhoneSploit just by typing 'phonesploit'"${W}
echo
}
install_l3mon(){
pkg update -y
pkg install openjdk-17 nodejs wget -y
npm install -g [email protected]
npm install pm2 -g
LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/D3VL/L3MON/releases/latest)
LATEST_VERSION=$(echo $LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
DOWNLOAD_L3MON="https://github.com/D3VL/L3MON/releases/download/$LATEST_VERSION/L3MON-v$LATEST_VERSION.zip"
mkdir $HOME/l3mon
cd $HOME/l3mon
wget $DOWNLOAD_L3MON
unzip L3MON-v$LATEST_VERSION.zip
cd $HOME/l3mon
npm install
sleep 18
pm2 start index.js
sleep 18
pm2 stop index
sleep 18
read -p "Create your password: " password
md5pass=$(echo -n $password | md5sum | sed 's/ \-//')
sed -i -e 's/"password": "",/"password": "'"$md5pass"'",/g' $HOME/l3mon/maindb.json
pm2 restart all
sleep 18
echo
echo ${G} "[*] Installation completed"
echo "[*] You echo "Installation Complete"
r Username is admin"
echo "[*] and Password is $password"
echo
}
if [[ $user_input == "1" ]]; then
echo ${G}"[*] Installing Beef..."${W}
echo
install_beef
elif [[ $user_input == "2" ]]; then
echo ${G}"[*] Installing Metasploit..."${W}
echo
install_metasploit
elif [[ $user_input == "3" ]]; then
echo ${G}"[*] Installing mitmproxy"${W}
echo
install_mitmproxy
elif [[ $user_input == "4" ]]; then
echo ${G}"[*] Installing Routersploit..."${W}
echo
install_routersploit
elif [[ $user_input == "5" ]]; then
echo ${G}"[*] Installing Nmap..."${W}
echo
install_nmap
elif [[ $user_input == "6" ]]; then
echo ${G}"[*] Installing Netcat..."${W}
echo
install_netcat
elif [[ $user_input == "7" ]]; then
echo ${G}"[*] Installing Ghost Framework"${W}
echo
install_ghost
elif [[ $user_input == "8" ]]; then
echo ${G}"[*] Installing PyPhisher..."${W}
echo
install_pyphisher
elif [[ $user_input == "9" ]]; then
echo ${G}"[*] Installing PhoneSploit..."${W}
echo
install_phonesploit
elif [[ $user_input == "10" ]]; then
echo ${G}"[*] Installing Sherlock..."${W}
echo
install_sherlock
elif [[ $user_input == "11" ]]; then
echo ${G}"[*] Installing John The Ripper..."${W}
echo
install_johntheripper
elif [[ $user_input == "12" ]]; then
echo ${G}"[*] Installing Cupp..."${W}
echo
install_cupp
elif [[ $user_input == "13" ]]; then
echo ${G}"[*] Installing L3MON..."${W}
echo
install_l3mon
elif [[ $user_input == "14" ]]; then
echo ${G}"[*] Installing SEToolkit..."${W}
echo
install_setoolkit
elif [[ $user_input == "15" ]]; then
echo ${G}"[*] Installing Hydra"${W}
echo
install_hydra
else
echo ${R}"[*] Error, Select a option from the above list"${W}
echo
fi