-
Notifications
You must be signed in to change notification settings - Fork 0
/
sameer.sh
140 lines (129 loc) · 3.46 KB
/
sameer.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 Samhiq'
else
figlet hacker
figlet Samhiq
fi
if ! [ -x "$(command -v toilet)" ]; then
echo -e "\e[4;34m This Bomber Was Created By \e[1;32mSamhiq \e[0m"
else
echo -e "\e[1;34mCreated By \e[1;34m"
toilet -f mono12 -F border Samhiq
fi
echo -e "\e[1;34m For Any Queries Join Me!!!\e[0m"
echo -e "\e[1;32m Mail me: samhiqofficial.com \e[0m"
echo -e "\e[4;32m YouTube:samhiq \e[0m"
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 Samhiq > .update
echo 'Requirements Installed....'
pause
fi
while :
do
banner
echo -e "\e[4;31m Dont use this tool for taking revenge this tool is just for fun and educational purpose(Samhiq)!!! \e[0m"
echo " "
echo "Press 1 To Start SMS Bomber "
echo "Press 2 To Start CALL Bomber "
echo "Press 3 To New features coming sooon....."
echo "Press 4 To Update Samhiq"
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 Samhiq Again..."
pause
exit
elif [ $ch -eq 5 ];then
banner
exit
else
echo -e "\e[4;32m Invalid Input !!! \e[0m"
pause
fi
done