-
Notifications
You must be signed in to change notification settings - Fork 50
/
user.sh
273 lines (254 loc) · 6.55 KB
/
user.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
#!/data/data/com.termux/files/usr/bin/bash
######################################
# PROJECT: T-Remix #
# Author: Ashish #
# email: ashishsingh103020@gmailcom #
# All copyright reserved #
######################################
# Customize terminal as a real hacker with user define
# Editing the bash.bashrc
cd $HOME
# copying ascii-shadow font to share/figlet
cd T-Remix/properties
cp ASCII-Shadow.flf ${PREFIX}/share/figlet
# change dir to home/T-Remix
cd $HOME
cd T-Remix
# Read user define varible and save user input
echo
read -p $'\e[36m>>\e[33m Enter Your Banner Name:\e[32m ' varbanner
echo
sleep 1
read -p $'\e[36m>>\e[33m Enter Your Terminal Name:\e[32m ' varterm
echo
sleep 2
clear
# Select Banner fonts below
# Start loop if invalid input
while :
do
echo
echo
echo "==================================" |lolcat -t
echo " Choose your Banner fonts" |lolcat
echo "==================================" |lolcat -t
echo
# Bannner figlet-fonts name with options
echo -e "\e[31m[\e[32m01\e[31m]\e[33m wetletter \e[m "
echo -e "\e[31m[\e[32m02\e[31m]\e[33m Bloody \e[m "
echo -e "\e[31m[\e[32m03\e[31m]\e[33m small \e[m "
echo -e "\e[31m[\e[32m04\e[31m]\e[33m big \e[m "
echo -e "\e[31m[\e[32m05\e[31m]\e[33m starwars \e[m "
echo -e "\e[31m[\e[32m06\e[31m]\e[33m smslant \e[m "
echo -e "\e[31m[\e[32m07\e[31m]\e[33m standard \e[m "
echo -e "\e[31m[\e[32m08\e[31m]\e[33m slant \e[m "
echo -e "\e[31m[\e[32m09\e[31m]\e[33m Speed\e[m "
echo -e "\e[31m[\e[32m10\e[31m]\e[33m red_phoenix \e[m "
echo -e "\e[31m[\e[32m11\e[31m]\e[33m Soft \e[m "
echo -e "\e[31m[\e[32m12\e[31m]\e[33m Roman \e[m "
echo -e "\e[31m[\e[32m13\e[31m]\e[33m Poison\e[m "
echo -e "\e[31m[\e[32m14\e[31m]\e[33m Best-of-T-Remix\e[m "
echo
read -p $'\e[34m[\e[31m*\e[34m]\e[32m Enter your choice : ' userfont
tput civis
if [[ $userfont == 1 || $userfont == 01 ]]; then
echo "figlet -f wetletter ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
echo
sleep 2
break
elif [[ $userfont == 2 || $userfont == 02 ]]; then
echo "echo" > t-ban.txt
echo "figlet -f Bloody ' $varbanner' |lolcat -t " >> t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
echo
sleep 3
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
break
elif [[ $userfont == 3 || $userfont == 03 ]]; then
echo "figlet -f small ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [[ $userfont == 4 || $userfont == 04 ]]; then
echo "figlet -f big ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
break
elif [[ $userfont == 5 || $userfont == 05 ]]; then
echo "figlet -f starwars ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [[ $userfont == 6 || $userfont == 06 ]]; then
echo "figlet -f smslant ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
echo
sleep 3
echo "[*] Applied Successfuly" |lolcat -t
echo
sleep 2
break
elif [[ $userfont == 7 || $userfont == 07 ]]; then
echo "figlet -f standard ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [[ $userfont == 8 || $userfont == 08 ]]; then
echo "figlet -f slant ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [[ $userfont == 9 || $userfont == 09 ]]; then
echo "figlet -f Speed ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [ $userfont == 10 ]; then
echo "figlet -f red_phoenix ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [ $userfont == 11 ]; then
echo "figlet -f Soft ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [ $userfont == 12 ]; then
echo "echo" > t-ban.txt
echo "figlet -f Roman ' $varbanner' |lolcat " >> t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [ $userfont == 13 ]; then
echo "figlet -f Poison ' $varbanner' |lolcat " > t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
elif [ $userfont == 14 ]; then
echo "echo" > t-ban.txt
echo "figlet -f ASCII-Shadow ' $varbanner' |lolcat -t " >> t-ban.txt
echo
echo "[*] Applying T-Remix Banner " |lolcat -t
sleep 2
echo
echo "[*] please wait " |lolcat -t
sleep 3
echo
echo "[*] Applied Successfuly" |lolcat -t
sleep 2
echo
break
else
echo
echo -e "\e[33m[\e[31m!\e[33m] \e[31mInvalid option try again \e[m"
sleep 2
clear
fi
done
tput cnorm
# custom PS1, validating user input and user define variable
echo "PS1='\[\e[1;34m
\a┌──\a─T─I─M─E─\a──┐\033[1;34m\a┌──\a─D─A─T─E─\a───>\033[1;34m
\a┌─[\033[1;93m \@\033[1;34m ]──[\033[1;93m \d\033[1;34m ]\033[1;34m
\a├─[\033[1;32m\w\033[1;34m]\033[1;34m
\[\e[34m\]└─>\[\e[35m\]$varterm\[\e[34m\][~]:#\[\e[1;32m\] ' " > ash.txt
cat "t-ban.txt" >> /data/data/com.termux/files/usr/etc/bash.bashrc
cat "user.txt" >> /data/data/com.termux/files/usr/etc/bash.bashrc
cat "ash.txt" >> /data/data/com.termux/files/usr/etc/bash.bashrc
sleep 1