-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtu
212 lines (209 loc) · 4.42 KB
/
tu
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
#!/bin/bash
msg() {
echo -e "$@" >&2
}
if [ $# -eq 0 ];then
msg tu [command]
msg usage : tu ip
msg command:
msg -i or ins - install all thing
msg -c or cpp - copy files or plugins
msg -e or env - create env
msg -s or ses - generate session
msg os - setup termux/os
msg st - start ultroid
msg ult - for install ultroid
msg get - get env
msg myult - only my ult
msg up - update tu
msg tp -- token.pickle install
msg ip - get ip
msg ytt - install ytt for download video/audio
msg sp - install speedtest as sp
msg py - copy pyUltroid
msg dl - download and install deb file
msg
exit
fi
pb() {
cd /bin
cd $PREFIX/bin
}
ytt() {
cd /bin
if [ -e apt ];then
msg only for termux
exit 1
else
msg Termux found !!!
echo
echo
cd $PREFIX/bin
wget -q -O ytt https://gist.githubusercontent.com/rooted-cyber/f4b28dacde6bc3bac07f1f29a3c394a7/raw/ytt
chmod 777 ytt
fi
}
shoor() {
cat >> sm << EOF
wget -q -O ab.sh https://gist.githubusercontent.com/rooted-cyber/0bdd3c21a348534e8ca9205bceff59aa/raw/smm
bash ab.sh
EOF
chmod 777 sm
}
fold() {
cd ~
mkdir Termux-Ultroid
cd Termux-Ultroid
}
fol() {
fold > /dev/null 2>&1
if [ -e Ultroid ];then
cd ~/Termux-Ultroid/Ultroid
else
git clone https://github.com/TeamUltroid/Ultroid
cd Ultroid
fi
}
uos() {
fol
pip3 install -r req*
fol
pip3 install pillow==9.5.0 telethon==1.28.0 requests
fol
pip3 install -r res*/st*/opt*
shoor
cp sm /bin
chmod 777 /bin/sm
}
termux() {
fol
pip3 install -r req*
fol
pip3 install telethon==1.36.0
for c in pillow==9.5.0 telethon==1.28.0 coloredlogs gitpython bs4 pytz enhancer telegraph aiohttp requests;do
msg installing
pip3 install $c
done
shoor
cp sm $PREFIX/bin
chmod 777 $PREFIX/bin/sm
}
ins() {
cd /bin
if [ -e apt ];then
msg os found !!!
echo
echo
uos
else
msg Termux found !!!
echo
echo
termux
fi
}
star() {
fol
if [ -e startup ];then
bash startup
else
msg First install ultroid !!
echo
echo
exit 1
fi
}
msg() {
echo -e "\033[1;92m"
echo -e "$@" >&2
}
dw() {
cd /sdcard
wget -q -O term.deb https://github.com/rooted-cyber/setup/raw/main/all-termux.deb
wget -q -O os.deb https://github.com/rooted-cyber/setup/raw/main/all-os.deb
}
dl() {
cd /bin
if [ -e apt ];then
msg os found !!!
echo
echo
dw
dpkg -i *os*
else
msg Termux found !!!
echo
echo
dw
epkg -i *term*deb
fi
}
msg() {
echo -e "\033[1;92m"
echo -e "$@" >&2
}
dw() {
cd /sdcard
wget -q -O term.deb https://github.com/rooted-cyber/setup/raw/main/all-termux.deb
wget -q -O os.deb https://github.com/rooted-cyber/setup/raw/main/all-os.deb
}
dl() {
cd /bin
if [ -e apt ];then
msg os found !!!
echo
echo
dw
dpkg -i *os*
else
msg Termux found !!!
echo
echo
dw
dpkg -i *term*
fi
}
if [ $1 == "ins" ] || [ "$1" == "-i" ];then
ins
elif [ $1 == "cpp" ] || [ "$1" == "-c" ];then
bash -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/1bd2b7d3eb4d66ab06ab5e83098395e3/raw/cpp)"
elif [ $1 == "env" ] || [ "$1" == "-e" ];then
fol
python3 -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/02bcbcec333d5698dfb696156f8bdc09/raw/env)"
elif [ $1 == "ses" ] || [ "$1" == "-s" ];then
python3 -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/832b915e64246556827da92176b41a4b/raw/pyro)"
elif [ $1 == "os" ];then
bash -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/a9ae0aff5fd27e7e40acb68eadbcd1d9/raw/setup)"
elif [ $1 == "st" ];then
star
elif [ $1 == "ult" ];then
bash -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/ca65c6b2f3c2c780670be7d87210738f/raw/ultroid)"
elif [ $1 == "get" ];then
wget -O a https://gist.githubusercontent.com/rooted-cyber/8e1c059809e2656a79f90408a6a28af0/raw/env
bash a
elif [ $1 == "myult" ];then
bash -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/470ec29e2be77ed19830c67aa0dccffe/raw/ult)"
elif [ $1 == "dl" ];then
dl
elif [ $1 == "ip" ] || [ "$1" == "-i" ];then
curl https://ipinfo.io
elif [ $1 == "tp" ];then
cd $PREFIX/bin
wget -q -O tp https://gist.githubusercontent.com/rooted-cyber/7f58c513065aa7b656cbabbb7961fffd/raw/tp
chmod 777 tp
msg installed tp
elif [ $1 == "sp" ];then
bash -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/6f47f4d7b3455dbe10556008515e0c9f/raw/speed)"
elif [ $1 == "ytt" ];then
ytt
elif [ $1 == "py" ];then
bash -c "$(curl -fsSl https://gist.githubusercontent.com/rooted-cyber/edc0ac4c7da73e933ad954f90c40447e/raw/py)"
elif [ $1 == "up" ];then
msg updating
pb > /dev/null 2>&1
wget -q -O tu https://gist.githubusercontent.com/rooted-cyber/05ca0b015cdbdb3ac87bb9cdaed3da75/raw/tu
msg updated 11 sep 2024
else
msg invalid selection
msg check : tu
fi