Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hackerxphantom
GitHub Repository: hackerxphantom/X_BOMB
Path: blob/main/X_BOMB.sh
3 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 X_BOMB'
31
else
32
figlet X_BOMB
33
fi
34
if ! [ -x "$(command -v toilet)" ]; then
35
echo -e "\e[4;34m This Bomber Was Created By \e[1;32mhackerxphantom\e[0m"
36
else
37
echo -e "\e[1;34mCreated By \e[1;34m"
38
toilet -f mono12 -F border X_PH4N70M
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/X_PH4N7OM \e[0m"
42
echo -e "\e[4;32m JOIN US: https://bit.ly/3PV3S3r \e[0m"
43
echo " "
44
echo "NOTE: Kindly move to the PIP version Of X_BOMB 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 X PHANTOM X_PH4N7OM > .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
echo "select option "
117
clear
118
if [ $ch -eq 1 ];then
119
$PYTHON bomber.py --sms
120
exit
121
elif [ $ch -eq 2 ];then
122
$PYTHON bomber.py --call
123
exit
124
elif [ $ch -eq 3 ];then
125
$PYTHON bomber.py --mail
126
exit
127
elif [ $ch -eq 4 ];then
128
echo -e "\e[1;34m Downloading Latest Files..."
129
rm -f .update
130
$PYTHON bomber.py --update
131
echo -e "\e[1;34m RUN X_BOMB Again..."
132
pause
133
exit
134
elif [ $ch -eq 5 ];then
135
banner
136
exit
137
else
138
echo -e "\e[4;32m Invalid Input !!! \e[0m"
139
pause
140
fi
141
done
142
143