-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall-T-Banner
204 lines (178 loc) · 3.47 KB
/
uninstall-T-Banner
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#!/data/data/com.termux/files/usr/bin/bash
# REMOVE BANNER,LOGIN,THEMES
clear
#Remove Banner
remove_banner() {
# Remove T-Banner Banner
# save old login
# change dir to ~
cd $HOME
cd T-Banner
cd remove
# moving default bash.bashcrc to ~
mv bash.bashrc $HOME
# remove T-Banner bash.bashrc
cd /data/data/com.termux/files/usr/etc
rm bash.bashrc
# change dir to home
cd $HOME
cd T-Banner
echo
echo ">>> Removing T-Banner" |lolcat
bash mamba-9mm.sh
cd $HOME
# replace default bash.bashrc
mv bash.bashrc /data/data/com.termux/files/usr/etc
echo
echo -e "\e[33m[\e[31m*\e[33m]\e[33m Open a new Session \e[m"
echo
sleep 1
echo -e "\e[33m[\e[31m*\e[33m]\e[33m Successfully Removed the banner \e[m "
sleep 2
}
# Remove login
remove_login() {
# remove Password login
# save default motd login
cd $HOME
cd /data/data/com.termux/files/usr/etc
rm -rf motd
cd $HOME
cd T-Banner
cd remove
cp motd /data/data/com.termux/files/usr/etc
rm $PREFIX/bin/login.py
cp old_login $PREFIX/bin/login
chmod 700 $PREFIX/bin/login
echo
cd $HOME/T-Banner
echo ">>> Removing T-Banner login " |lolcat
bash mamba-9mm.sh
echo -e "\e[31m[\e[32m*\e[31m]\e[33m Removing T-Banner \e[m "
sleep 2
echo
echo -e "\e[31m[\e[32m*\e[31m]\e[33m Loading\e[m "
sleep 3
echo
echo -e "\e[31m[\e[32m*\e[31m]\e[33m Successfully Removed Login\e[m "
sleep 2
}
# Remove t-banner theme
remove_theme() {
cd $HOME
file="$HOME/.termux/colors.properties"
if [ -f $file ]
then
rm $HOME/.termux/colors.properties
else
echo
fi
echo
echo ">>> Removing T-Banner Theme" |lolcat
cd $HOME/T-Banner
bash mamba-9mm.sh
echo "[~] changing theme" |lolcat
echo
sleep 2
echo "[~] Setting theme as default" |lolcat
echo
sleep 3
termux-reload-settings
echo "[~] Done " |lolcat
}
# Remove Font
remove_font() {
# Remove t-banner font
cd $HOME
file="$HOME/.termux/font.ttf"
if [ -f $file ]
then
rm $HOME/.termux/font.ttf
else
echo
fi
echo
echo ">>> Removing T-Banner Font" |lolcat
cd $HOME/T-Banner
bash mamba-9mm.sh
echo "[~] changing font" |lolcat
echo
sleep 2
echo "[~] Setting font as default" |lolcat
echo
sleep 3
termux-reload-settings
echo "[~] Done " |lolcat
}
while :
do
echo
echo
echo "[~] select the option to remove" | lolcat
echo
echo "1) Remove Banner" |lolcat
echo
echo "2) Remove Login" |lolcat
echo
echo "3) Remove Theme" |lolcat
echo
echo "4) Remove Font" |lolcat -t
echo
echo "5) All " |lolcat
echo
echo
read -p $'\e[31m[\e[32m*\e[31m]\e[32m choose your option :\e[m ' option
if [ $option = 1 ] || [ $option = 01 ]
then
remove_banner
break
elif [ $option = 2 ] || [ $option = 02 ]
then
remove_login
break
elif [ $option = 3 ] || [ $option = 03 ]
then
remove_theme
break
elif [ $option = 4 ] || [ $option = 04 ]
then
remove_font
break
elif [ $option = 5 ] || [ $option = 05 ]
then
remove_banner
remove_login
remove_theme
remove_font
break
else
echo
echo "[!] Invalid option try again" |lolcat
sleep 2
fi
done
# like subscribe channel
clear
tput clear
tput cup 3 30
echo -e "\e[44m Like \e[41m Subscribe \e[m"
tput cup 6 30
echo -e "\x1b[42m Mamba Mentality \x1b[m"
tput cup 9 0
echo -en "\e[93m what is your name: \e[m"
read answer
tput cup 12 22
echo -e "\e[104m hello! Open a New session!! $answer! \e[m"
tput cup 15 0
echo -en "\e[93m Have you subscribe my YouTube channel (y/n)? \e[m "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
tput cup 17 21
echo -e "\e[42m Thankyou for subscribing my YouTube channel \e[m"
else
tput cup 17 23
echo -e "\e[41m Please subsrcibe my YouTube channel \e[m"
fi
tput cup 20 0
figlet -f slant "Mamba Mentality" |lolcat
echo