forked from TheSpeedX/TBomb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TBomb.sh
executable file
·140 lines (130 loc) · 3.53 KB
/
TBomb.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
#!/bin/bash
detect_distro() {
if [[ "$OSTYPE" == linux-android* ]]; then
distro="termux"
fi
if [ -z "$distro" ]; then
distro=$(ls /etc | awk 'match($0, "(.+?)[-_](?:release|version)", groups) {if(groups[1] != "os") {print groups[1]}}')
fi
if [ -z "$distro" ]; then
if [ -f "/etc/os-release" ]; then
distro="$(source /etc/os-release && echo $ID)"
elif [ "$OSTYPE" == "darwin" ]; then
distro="darwin"
else
distro="invalid"
fi
fi
}
pause() {
read -n1 -r -p "Press any key to continue..." key
}
banner() {
clear
echo -e "\e[1;31m"
if ! [ -x "$(command -v figlet)" ]; then
echo 'Introducing TBomb'
else
figlet TBomb
fi
if ! [ -x "$(command -v toilet)" ]; then
echo -e "\e[4;34m This Bomber Was Created By \e[1;32mSpeedX \e[0m"
else
echo -e "\e[1;34mCreated By \e[1;34m"
toilet -f mono12 -F border SpeedX
fi
echo -e "\e[1;34m For Any Queries Join Me!!!\e[0m"
echo -e "\e[1;32m Telegram: https://t.me/TBombChat \e[0m"
echo -e "\e[4;32m YouTube: https://www.youtube.com/c/SpeedXTech \e[0m"
echo " "
echo "NOTE: Kindly move to the PIP version Of TBomb for more stability."
echo " "
}
init_environ(){
declare -A backends; backends=(
["arch"]="pacman -S --noconfirm"
["debian"]="apt-get -y install"
["ubuntu"]="apt -y install"
["termux"]="apt -y install"
["fedora"]="yum -y install"
["redhat"]="yum -y install"
["SuSE"]="zypper -n install"
["sles"]="zypper -n install"
["darwin"]="brew install"
["alpine"]="apk add"
)
INSTALL="${backends[$distro]}"
if [ "$distro" == "termux" ]; then
PYTHON="python"
SUDO=""
else
PYTHON="python3"
SUDO="sudo"
fi
PIP="$PYTHON -m pip"
}
install_deps(){
packages=(openssl git $PYTHON $PYTHON-pip figlet toilet)
if [ -n "$INSTALL" ];then
for package in ${packages[@]}; do
$SUDO $INSTALL $package
done
$PIP install -r requirements.txt
else
echo "We could not install dependencies."
echo "Please make sure you have git, python3, pip3 and requirements installed."
echo "Then you can execute bomber.py ."
exit
fi
}
banner
pause
detect_distro
init_environ
if [ -f .update ];then
echo "All Requirements Found...."
else
echo 'Installing Requirements....'
echo .
echo .
install_deps
echo This Script Was Made By SpeedX > .update
echo 'Requirements Installed....'
pause
fi
while :
do
banner
echo -e "\e[4;31m Please Read Instruction Carefully !!! \e[0m"
echo " "
echo "Press 1 To Start SMS Bomber "
echo "Press 2 To Start CALL Bomber "
echo "Press 3 To Start MAIL Bomber (Not Yet Available)"
echo "Press 4 To Update (Works On Linux And Linux Emulators) "
echo "Press 5 To Exit "
read ch
clear
if [ $ch -eq 1 ];then
$PYTHON bomber.py --sms
exit
elif [ $ch -eq 2 ];then
$PYTHON bomber.py --call
exit
elif [ $ch -eq 3 ];then
$PYTHON bomber.py --mail
exit
elif [ $ch -eq 4 ];then
echo -e "\e[1;34m Downloading Latest Files..."
rm -f .update
$PYTHON bomber.py --update
echo -e "\e[1;34m RUN TBomb Again..."
pause
exit
elif [ $ch -eq 5 ];then
banner
exit
else
echo -e "\e[4;32m Invalid Input !!! \e[0m"
pause
fi
done