-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
122 lines (90 loc) · 2.87 KB
/
setup
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
#! /data/data/com.termux/files/usr/bin/bash
version=`getprop ro.build.version.release | sed -e 's/\.//g' | cut -c1`
version1=`getprop ro.build.version.release`
answer=$(mktemp)
HIDECURSOR(){ echo -en "\033[?25l";}
NORM(){ echo -en "\033[?12l\033[?25h";}
spin () {
local pid=$!
local delay=0.05
local spinstr='|/-\'
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
local temp=${spinstr#?}
HIDECURSOR
printf "\e[1;34m\r[*] \e[1;32mit will take time..Please wait... [\e[1;33m%c\e[1;32m]\e[0m " "$spinstr"
local spinstr=$temp${spinstr%"$temp"}
sleep $delay
printf "\b\b\b\b\b\b"
done
printf " \b\b\b"
NORM
printf "\e[1;33m[Done]\e[0m"
echo ""
}
box()
{
local s=("$@") b w
for l in "${s[@]}"; do
((w<${#l})) && { b="$l"; w="${#l}"; }
done
tput setaf 3
echo " -${b//?/-}-
| ${b//?/ } |"
for l in "${s[@]}"; do
printf '| %s%*s%s |\n' "$(tput setaf 4)" "-$w" "$l" "$(tput setaf 3)"
done
echo "| ${b//?/ } |
-${b//?/-}-"
tput sgr 0
}
PKG_INSTALL() {
echo -e "\e[35m[\e[33m*\e[35m] \e[32mInstalling packages and requirements..."
echo;
( apt update && apt upgrade -y; apt install git python python2 python3 openssl figlet toilet -y; apt install python-pip ;apt install figlet toilet ruby ncurses-utils wget exa termux-api termux-tools -y;gem install lolcat;python install -r requirements.txt) &> /dev/null & spin;
}
BANNER() {
clear;toilet -t -f tinker-toy "N_BOMB." --gay -F border;tput cup 7 42;echo -e "\e[34mBoot Script \e[32m2.1.2\e[0m";tput cup 9 0;
}
clear
PKG_INSTALL
BANNER
echo
echo -e "$(tput setab 3)$(tput setab 1) Note : $(tput sgr 0)" "\e[0m\e[32m Type your option without using any blank space\e[0m";
echo
#(sleep 10) &> /dev/null & spin
echo -e "\e[0;31mPlease Read Instruction Carefully !!!\033[0m)"
echo " "
echo -e "\e[4;33mPress\033[0m\e[0;31m 1\033[0m To Start SMS Bomber "
echo -e "\e[4;33mPress\033[0m\e[0;31m 2\033[0m To Start CALL Bomber "
echo -e "\e[4;33mPress\033[0m\e[0;31m 3\033[0m To Start MAIL Bomber (Not Yet Available)"
echo -e "\e[4;33mPress\033[0m\e[0;31m 4\033[0m To Update (Works On Linux And Linux Emulators) "
echo -e "\e[4;33mPress\033[0m\e[0;31m 5\033[0m To Exit "
tput setaf 4
echo " "
echo -ne "\e[92m#SELECT OPTION\e[92m: "
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 N_BOMB Again..."
(sleep 10) &> /dev/null & spin
exit
elif [ $ch -eq 5 ];then
BANNER
exit
else
echo -e "\e[4;32m Invalid Input !!! \e[0m"
pause
fi
done