-
Notifications
You must be signed in to change notification settings - Fork 5
/
DaddyBomber.sh
181 lines (161 loc) · 4.98 KB
/
DaddyBomber.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
#!/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
apt-get update
apt-get upgrade
apt-get install python
}
banner() {
clear
echo -e "\e[1;31m"
if ! [ -x "$(command -v figlet)" ]; then
echo 'Introducing DaddyBomber'
else
figlet DaddyBomber
fi
if ! [ -x "$(command -v toilet)" ]; then
echo -e "\e[4;34m This Bomber Was Created By \e[1;32mPiyush Garg \e[0m"
else
echo -e "\e[1;34mCreated By \e[1;34m"
figlet Piyush Garg
printf "\033[1;93m[\033[1;77m::\033[1;93m] \033[1;92m Code by : \033[1;97m Piyush Garg \033[1;93m[\033[1;77m::\033[1;93m]"
printf "\n\033[1;93m[\033[1;77m::\033[1;93m] \033[1;92mmodify code by : \033[1;97m Piyush Garg \033[1;93m[\033[1;77m::\033[1;93m]\n"
echo " "
echo " "
echo -e *Requirements:*
echo -e '\033[1;36m' ➡️ '\033[1;31m'100 MB data*
echo -e '\033[1;36m' ➡️ '\033[1;31m'200 MB storage*
echo -e '\033[1;36m' ➡️ '\033[1;31m'No root*
echo -e '\033[1;36m' ➡️ '\033[1;31m'Data Connection*
fi
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 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 Piyush Garg > .update
echo 'Requirements Installed....'
pause
fi
while :
do
banner
echo " "
echo -e "'\033[1;31m ⫸ Coded by\033[1;32m Piyush Garg\033[1;31m ⫷\033[0m"
echo -e "'\033[1;31m ⫸\033[1;33m Piyush Garg\033[1;31m ⫷\033[0m"
echo
echo -e "'\033[1;36m############################# \033[1;32m [Features] \033[1;36m ###################################"
echo " "
echo " "
echo -e " \033[1;31m ➡️ \033[1;33m [1️⃣] Sms bombing"
echo -e " \033[1;31m ➡️ \033[1;33m [2️⃣] Call bombing"
echo -e " \033[1;31m ➡️ \033[1;33m [3️⃣] Mail bombing"
echo -e " \033[1;31m ➡️ \033[1;33m [4️⃣] Whatsapp bombing (coming soon)"
echo -e " \033[1;31m ➡️ \033[1;33m [5️⃣] Update script"
echo -e " \033[1;31m ➡️ \033[1;33m [6️⃣] exit"
echo " "
echo " "
echo -e "\033[1;36m ############################## \033[1;32m [SELECT] \033[1;36m ####################################"
echo " "
read ch
clear
if [ $ch -eq 1 ];then
cd $HOME
cd DaddyBomber
python3 bomber.py
exit
elif [ $ch -eq 2 ];then
cd $HOME
cd DaddyBomber
python3 bomber.py
exit
exit
elif [ $ch -eq 3 ];then
cd $HOME
git clone https://github.com/ha-mrx/Emailbomb
cd Emailbomb
chmod +x Emailbomb.py
python2 Emailbomb.py
exit
elif [ $ch -eq 4 ];then
cd $HOME
cd DaddyBomber
bash DaddyBomber.sh
elif [ $ch -eq 5 ];then
echo -e "\e[1;34m Downloading Latest Files..."
cd $HOME
rm -rf DaddyBomber
https://github.com/MaybePiyush/DaddyBomber
cd DaddyBomber
bash DaddyBomber.sh
exit
elif [ $ch -eq 6 ];then
cd $HOME
exit
else
echo -e "\e[4;32m Invalid Input !!! \e[0m"
pause
fi
done