forked from Sadewoabdipanuntun/BasicX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
basicx.py
440 lines (418 loc) · 18.4 KB
/
basicx.py
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
# github.com/MrHacker-X
import time
import sys
import os
import signal
def delay_print(s):
for c in s:
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(0.006)
def handler(signum, frame):
res = input("\n\033[1;92mCtrl-c was pressed. Do you really want to exit? (y/n): ")
if res == 'y':
delay_print('\n\033[1;92mExiting...\n\n')
time.sleep(1)
exit()
signal.signal(signal.SIGINT, handler)
os.system('clear')
delay_print('''\033[1;92m██████╗ █████╗ ███████╗██╗ ██████╗██╗ ██╗
██╔══██╗██╔══██╗██╔════╝██║██╔════╝╚██╗██╔╝
██████╔╝███████║███████╗██║██║ ╚███╔╝
██╔══██╗██╔══██║╚════██║██║██║ ██╔██╗
██████╔╝██║ ██║███████║██║╚██████╗██╔╝ ██╗
╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═════╝╚═╝ ╚═╝
<══════════Created By MrHacker-X══════════>
[##] Choose an option:
[01] Install manually
[02] Install all basic package
[03] About
[00] Exit''')
main = input('\n\n\033[1;92m//Basic//: ')
if main == '01' or main == '1':
while True:
os.system('clear')
delay_print('''\033[1;92m██████╗ █████╗ ███████╗██╗ ██████╗██╗ ██╗
██╔══██╗██╔══██╗██╔════╝██║██╔════╝╚██╗██╔╝
██████╔╝███████║███████╗██║██║ ╚███╔╝
██╔══██╗██╔══██║╚════██║██║██║ ██╔██╗
██████╔╝██║ ██║███████║██║╚██████╗██╔╝ ██╗
╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═════╝╚═╝ ╚═╝
<══════════Created By MrHacker-X══════════>
[##] Choose Any Package:
[01] inxi
[02] python2
[03] python3
[04] curl
[05] perl
[06] ngrok
[07] nodejs
[08] figlet
[09] ruby
[10] php
[11] o-editor
[12] termux-api
[13] netcat
[14] zip
[15] unzip
[16] fish
[17] cmatrix
[18] tor
[19] tar
[20] wget
[21] mpv
[22] openssh
[23] openssl
[24] clang
[25] nmap
[26] w3m
[27] dnsutils-static
[28] dnsutils
[29] coreutils
[30] python2-static
[31] vim-python
[32] python2-six
[33] python-static
[34] vim
[35] tree
[36] youtubedr
[37] proot
[38] proot-distro
[39] openjdk-17
[40] unrar
[41] golang-doc
[42] golang
[43] cowsay
[44] wireshark-gtk
[45] x11-repo
[46] root-repo
[47] unstable-repo
[48] inetutils
[49] lf
[50] findomain
[51] jp2a
[95] Back
[00] Exit''')
pall = input('\n\n\033[1;92m//Basic//: ')
if pall == '01' or pall == '1':
delay_print('\n\033[1;92minxi is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install inxi -y')
delay_print('\n\033[1;92minxi is installed in your termux\n')
time.sleep(1.5)
elif pall == '02' or pall == '2':
delay_print('\n\033[1;92mpython2 is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install python2 -y')
delay_print('\n\033[1;92mpython2 is installed in your termux\n')
time.sleep(1.5)
elif pall == '03' or pall == '3':
delay_print('\n\033[1;92mpython3 is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install python3 -y')
delay_print('\n\033[1;92mpython3 is installed in your termux\n')
time.sleep(1.5)
elif pall == '04' or pall == '4':
delay_print('\n\033[1;92mcurl is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install curl -y')
delay_print('\n\033[1;92mcurl is installed in your termux\n')
time.sleep(1.5)
elif pall == '05' or pall == '5':
delay_print('\n\033[1;92mperl is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install perl -y')
delay_print('\n\033[1;92mperl is installed in your termux\n')
time.sleep(1.5)
elif pall == '06' or pall == '6':
delay_print('\n\033[1;92mngrok is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install nodejs -y;npm install ngrok -g')
delay_print('\n\033[1;92mngrok is installed in your termux\n')
time.sleep(1.5)
elif pall == '07' or pall == '7':
delay_print('\n\033[1;92mnodejs is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install nodejs -y')
delay_print('\n\033[1;92mnodejs is installed in your termux\n')
time.sleep(1.5)
elif pall == '08' or pall == '8':
delay_print('\n\033[1;92mfiglet is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install figlet -y')
delay_print('\n\033[1;92mfiglet is installed in your termux\n')
time.sleep(1.5)
elif pall == '09' or pall == '9':
delay_print('\n\033[1;92mruby is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install ruby -y')
delay_print('\n\033[1;92mruby is installed in your termux\n')
time.sleep(1.5)
elif pall == '10':
delay_print('\n\033[1;92mphp is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install php -y')
delay_print('\n\033[1;92mphp is installed in your termux\n')
time.sleep(1.5)
elif pall == '11':
delay_print('\n\033[1;92mo-editor is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install o-editor -y')
delay_print('\n\033[1;92mo-editor is installed in your termux\n')
time.sleep(1.5)
elif pall == '12':
delay_print('\n\033[1;92mtermux-api is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install termux-api -y')
delay_print('\n\033[1;92mtermux-api is installed in your termux\n')
time.sleep(1.5)
elif pall == '13':
delay_print('\n\033[1;92mnetcat is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install netcat -y')
delay_print('\n\033[1;92mnetcat is installed in your termux\n')
time.sleep(1.5)
elif pall == '14':
delay_print('\n\033[1;92mzip is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install zip -y')
delay_print('\n\033[1;92mzip is installed in your termux\n')
time.sleep(1.5)
elif pall == '15':
delay_print('\n\033[1;92munzip is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install unzip -y')
delay_print('\n\033[1;92munzip is installed in your termux\n')
time.sleep(1.5)
elif pall == '16':
delay_print('\n\033[1;92mfish is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install fish -y')
delay_print('\n\033[1;92mfish is installed in your termux\n')
time.sleep(1.5)
elif pall == '17':
delay_print('\n\033[1;92mcmatrix is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install cmatrix -y')
delay_print('\n\033[1;92mcmatrix is installed in your termux\n')
time.sleep(1.5)
elif pall == '18':
delay_print('\n\033[1;92mtor is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install tor -y')
delay_print('\n\033[1;92mtor is installed in your termux\n')
time.sleep(1.5)
elif pall == '19':
delay_print('\n\033[1;92mtar is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install tar -y')
delay_print('\n\033[1;92mtar is installed in your termux\n')
time.sleep(1.5)
elif pall == '20':
delay_print('\n\033[1;92mwget is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install wget -y')
delay_print('\n\033[1;92mwget is installed in your termux\n')
time.sleep(1.5)
elif pall == '21':
delay_print('\n\033[1;92mmpv is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install mpv -y')
delay_print('\n\033[1;92mmpv is installed in your termux\n')
time.sleep(1.5)
elif pall == '22':
delay_print('\n\033[1;92mopenssh is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install openssh -y')
delay_print('\n\033[1;92mopenssh is installed in your termux\n')
time.sleep(1.5)
elif pall == '23':
delay_print('\n\033[1;92mopenssl is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install openssl -y')
delay_print('\n\033[1;92mopenssl is installed in your termux\n')
time.sleep(1.5)
elif pall == '24':
delay_print('\n\033[1;92mclang is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install clang -y')
delay_print('\n\033[1;92mclang is installed in your termux\n')
time.sleep(1.5)
elif pall == '25':
delay_print('\n\033[1;92mnmap is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install nmap -y')
delay_print('\n\033[1;92mnmap is installed in your termux\n')
time.sleep(1.5)
elif pall == '26':
delay_print('\n\033[1;92mw3m is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install w3m -y')
delay_print('\n\033[1;92mw3m is installed in your termux\n')
time.sleep(1.5)
elif pall == '27':
delay_print('\n\033[1;92mdnsutils-static is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install dnsutils-static -y')
delay_print('\n\033[1;92mdnsutils-static is installed in your termux\n')
time.sleep(1.5)
elif pall == '28':
delay_print('\n\033[1;92mdnsutils is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install dnsutils -y')
delay_print('\n\033[1;92mdnsutils is installed in your termux\n')
time.sleep(1.5)
elif pall == '29':
delay_print('\n\033[1;92mcoreutils is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install coreutils -y')
delay_print('\n\033[1;92mcoreutils is installed in your termux\n')
time.sleep(1.5)
elif pall == '30':
delay_print('\n\033[1;92mpython2-static is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install python2-static -y')
delay_print('\n\033[1;92mpython2-static is installed in your termux\n')
time.sleep(1.5)
elif pall == '31':
delay_print('\n\033[1;92mvim-python is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install vim-python -y')
delay_print('\n\033[1;92mvim-python is installed in your termux\n')
time.sleep(1.5)
elif pall == '32':
delay_print('\n\033[1;92mpython2-six is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install python2-six -y')
delay_print('\n\033[1;92mpython2-six is installed in your termux\n')
time.sleep(1.5)
elif pall == '33':
delay_print('\n\033[1;92mpython-static is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install python-static -y')
delay_print('\n\033[1;92mpython-static is installed in your termux\n')
time.sleep(1.5)
elif pall == '34':
delay_print('\n\033[1;92mvim is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install vim -y')
delay_print('\n\033[1;92mvim is installed in your termux\n')
time.sleep(1.5)
elif pall == '35':
delay_print('\n\033[1;92mtree is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install tree -y')
delay_print('\n\033[1;92mtree is installed in your termux\n')
time.sleep(1.5)
elif pall == '36':
delay_print('\n\033[1;92myoutubedr is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install youtubedr -y')
delay_print('\n\033[1;92myoutubedr is installed in your termux\n')
time.sleep(1.5)
elif pall == '37':
delay_print('\n\033[1;92mproot is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install proot -y')
delay_print('\n\033[1;92mproot is installed in your termux\n')
time.sleep(1.5)
elif pall == '38':
delay_print('\n\033[1;92mproot-distro is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install proot-distro -y')
delay_print('\n\033[1;92mproot-distro is installed in your termux\n')
time.sleep(1.5)
elif pall == '39':
delay_print('\n\033[1;92mopenjdk-17 is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install openjdk-17 -y')
delay_print('\n\033[1;92mopenjdk-17 is installed in your termux\n')
time.sleep(1.5)
elif pall == '40':
delay_print('\n\033[1;92munrar is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install unrar -y')
delay_print('\n\033[1;92munrar is installed in your termux\n')
time.sleep(1.5)
elif pall == '41':
delay_print('\n\033[1;92mgolang-doc is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install golang-doc -y')
delay_print('\n\033[1;92mgolang-doc is installed in your termux\n')
time.sleep(1.5)
elif pall == '42':
delay_print('\n\033[1;92mgolang is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install golang -y')
delay_print('\n\033[1;92mgolang is installed in your termux\n')
time.sleep(1.5)
elif pall == '43':
delay_print('\n\033[1;92mcowsay is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install cowsay -y')
delay_print('\n\033[1;92mcowsay is installed in your termux\n')
time.sleep(1.5)
elif pall == '44':
delay_print('\n\033[1;92mwireshark-gtk is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install x11-repo -y;apt install wireshark-gtk -y')
delay_print('\n\033[1;92mwireshark-gtk is installed in your termux\n')
time.sleep(1.5)
elif pall == '45':
delay_print('\n\033[1;92mx11-repo is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install x11-repo -y')
delay_print('\n\033[1;92mx11-repo is installed in your termux\n')
time.sleep(1.5)
elif pall == '46':
delay_print('\n\033[1;92mroot-repo is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install root-repo -y')
delay_print('\n\033[1;92mroot-repo is installed in your termux\n')
time.sleep(1.5)
elif pall == '47':
delay_print('\n\033[1;92munstable-repo is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install unstable-repo -y')
delay_print('\n\033[1;92munstable-repo is installed in your termux\n')
time.sleep(1.5)
elif pall == '48':
delay_print('\n\033[1;92minetutils is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install inetutils -y')
delay_print('\n\033[1;92minetutils is installed in your termux\n')
time.sleep(1.5)
elif pall == '49':
delay_print('\n\033[1;92mlf is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install lf -y')
delay_print('\n\033[1;92mlf is installed in your termux\n')
time.sleep(1.5)
elif pall == '50':
delay_print('\n\033[1;92mfindomain is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install findomain -y')
delay_print('\n\033[1;92mfindomain is installed in your termux\n')
time.sleep(1.5)
elif pall == '51':
delay_print('\n\033[1;92mjp2a is installing...\n\n')
os.system('apt update -y;apt upgrade -y;apt install jp2a -y')
delay_print('\n\033[1;92mjp2a is installed in your termux\n')
time.sleep(1.5)
elif pall == '95':
delay_print('\033[1;92mComing back')
os.system('sleep 1.0')
os.system('python basicx.py')
break
elif pall == '0' or pall == '00':
delay_print('\n\033[1;92mExiting...\n\n')
os.system('sleep 1.0')
exit()
elif pall == 'q' or pall == 'Q':
delay_print('\n\033[1;92mExiting...\n\n')
os.system('sleep 1.0')
exit()
else:
delay_print('\n\033[1;92mInvalid input\n')
os.system('sleep 1.0')
elif main == '02' or main == '2':
delay_print('\033[1;92mOk, all basic packages are installing in your termux, it might be take some time')
os.system('apt update -y')
os.system('apt upgrade -y')
os.system('apt install root-repo unstable-repo x11-repo inxi python2 python curl perl nodejs figlet php ruby o-editor termux-api netcat zip unzip fish cmatrix tor tar wget mpv jp2a openssh openssl clang nmap w3m dnsutils-static dnsutils coreutils python2-static vim-python python2-six python-static vim tree youtubedr proot proot-distro openjdk-17 unrar golang-doc golang cowsay wireshark-gtk inetutils lf findomain jp2a -y')
os.system('npm install ngrok -g')
elif main == '03' or main == '3':
os.system('clear')
delay_print('''\033[1;92m █████╗ ██████╗ ██████╗ ██╗ ██╗████████╗
██╔══██╗██╔══██╗██╔═══██╗██║ ██║╚══██╔══╝
███████║██████╔╝██║ ██║██║ ██║ ██║
██╔══██║██╔══██╗██║ ██║██║ ██║ ██║
██║ ██║██████╔╝╚██████╔╝╚██████╔╝ ██║
╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═════╝ ╚═╝
<══════════Created By MrHacker-X══════════>''')
delay_print("""\n\n\033[1;92mHello Guys I'm MrHacker-X, And I've created this tool for those who is beginner termux user and they have no any idea which type package we need to install in my termux or which not. \nGuys you can install total 51 basic packages in your termux that too just in one click and you have an option to install required basic packages manually. I hope This tool will help you a lot And Please Give Us feedback of this tool on github page,\n\nGuys you can also connect with us on Social media Pages, All social media link is given below:
[*] Instagram:
+ Username : @ mrhackerx5
+ Profile URL :\033[1;94m https://instagram.com/mrhackerx5/ \033[1;92m
[*] Github:
+ Username : @ MrHacker-X
+ Profile URL :\033[1;94m https://github.com/MrHacker-X/\033[1;92m
[*] YouTube:
+ Channel Name: Sololex
+ Channel URL :\033[1;94m https://youtube.com/c/Sololex/\033[1;92m
[*] Telegram:
+ Channel Name: MrHacker-X
+ Channel URL :\033[1;94m https://t.me/mrhackersx/\033[1;92m\n""")
while True:
delay_print('\n\033[1;92m[##] Select an option:\n\n[95] Back\n[00] Exit\n')
ask = input('\n\033[1;92m//Basic//: ')
if ask == '95':
delay_print('\n\033[1;92mComing Back\n')
time.sleep(1.0)
os.system('python basicx.py')
break
elif ask == '0' or ask == '00' or ask == 'q' or ask == 'Q':
delay_print('\n\033[1;92mExiting...\n\n')
time.sleep(1.0)
exit()
else:
delay_print('\n\033[1;92mInvalid Input\n')
time.sleep(0.5)
elif main == '00' or main == '0' or main == 'q' or main == 'Q':
delay_print('\n\033[1;92mExiting...\n\n')
os.system('sleep 1.0')
exit()
else:
delay_print('\n\033[1;92mInvalid Input\n')
os.system('sleep 1.0')
os.system('python basicx.py')