Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
thespeedx
GitHub Repository: thespeedx/tbomb
Path: blob/master/TBomb.sh
2895 views
1
#!/bin/bash
2
3
detect_distro() {
4
if [[ "$OSTYPE" == linux-android* ]]; then
5
distro="termux"
6
fi
7
8
if [ -z "$distro" ]; then
9
distro=$(ls /etc | awk 'match($0, "(.+?)[-_](?:release|version)", groups) {if(groups[1] != "os") {print groups[1]}}')
10
fi
11
12
if [ -z "$distro" ]; then
13
if [ -f "/etc/os-release" ]; then
14
distro="$(source /etc/os-release && echo $ID)"
15
elif [ "$OSTYPE" == "darwin" ]; then
16
distro="darwin"
17
else
18
distro="invalid"
19
fi
20
fi
21
}
22
23
pause() {
24
read -n1 -r -p "Press any key to continue..." key
25
}
26
banner() {
27
clear
28
echo -e "\e[1;31m"
29
if ! [ -x "$(command -v figlet)" ]; then
30
echo 'Introducing TBomb'
31
else
32
figlet TBomb
33
fi
34
if ! [ -x "$(command -v toilet)" ]; then
35
echo -e "\e[4;34m This Bomber Was Created By \e[1;32mSpeedX \e[0m"
36
else
37
echo -e "\e[1;34mCreated By \e[1;34m"
38
toilet -f mono12 -F border SpeedX
39
fi
40
echo -e "\e[1;34m For Any Queries Join Me!!!\e[0m"
41
echo -e "\e[1;32m Telegram: https://t.me/TBombChat \e[0m"
42
echo -e "\e[4;32m YouTube: https://www.youtube.com/c/SpeedXTech \e[0m"
43
echo " "
44
echo "NOTE: Kindly move to the PIP version Of TBomb for more stability."
45
echo " "
46
}
47
48
init_environ(){
49
declare -A backends; backends=(
50
["arch"]="pacman -S --noconfirm"
51
["debian"]="apt-get -y install"
52
["ubuntu"]="apt -y install"
53
["termux"]="apt -y install"
54
["fedora"]="yum -y install"
55
["redhat"]="yum -y install"
56
["SuSE"]="zypper -n install"
57
["sles"]="zypper -n install"
58
["darwin"]="brew install"
59
["alpine"]="apk add"
60
)
61
62
INSTALL="${backends[$distro]}"
63
64
if [ "$distro" == "termux" ]; then
65
PYTHON="python"
66
SUDO=""
67
else
68
PYTHON="python3"
69
SUDO="sudo"
70
fi
71
PIP="$PYTHON -m pip"
72
}
73
74
install_deps(){
75
76
packages=(openssl git $PYTHON $PYTHON-pip figlet toilet)
77
if [ -n "$INSTALL" ];then
78
for package in ${packages[@]}; do
79
$SUDO $INSTALL $package
80
done
81
$PIP install -r requirements.txt
82
else
83
echo "We could not install dependencies."
84
echo "Please make sure you have git, python3, pip3 and requirements installed."
85
echo "Then you can execute bomber.py ."
86
exit
87
fi
88
}
89
90
banner
91
pause
92
detect_distro
93
init_environ
94
if [ -f .update ];then
95
echo "All Requirements Found...."
96
else
97
echo 'Installing Requirements....'
98
echo .
99
echo .
100
install_deps
101
echo This Script Was Made By SpeedX > .update
102
echo 'Requirements Installed....'
103
pause
104
fi
105
while :
106
do
107
banner
108
echo -e "\e[4;31m Please Read Instruction Carefully !!! \e[0m"
109
echo " "
110
echo "Press 1 To Start SMS Bomber "
111
echo "Press 2 To Start CALL Bomber "
112
echo "Press 3 To Start MAIL Bomber (Not Yet Available)"
113
echo "Press 4 To Update (Works On Linux And Linux Emulators) "
114
echo "Press 5 To Exit "
115
read ch
116
clear
117
if [ $ch -eq 1 ];then
118
$PYTHON bomber.py --sms
119
exit
120
elif [ $ch -eq 2 ];then
121
$PYTHON bomber.py --call
122
exit
123
elif [ $ch -eq 3 ];then
124
$PYTHON bomber.py --mail
125
exit
126
elif [ $ch -eq 4 ];then
127
echo -e "\e[1;34m Downloading Latest Files..."
128
rm -f .update
129
$PYTHON bomber.py --update
130
echo -e "\e[1;34m RUN TBomb Again..."
131
pause
132
exit
133
elif [ $ch -eq 5 ];then
134
banner
135
exit
136
else
137
echo -e "\e[4;32m Invalid Input !!! \e[0m"
138
pause
139
fi
140
done
141
142