-
Notifications
You must be signed in to change notification settings - Fork 0
/
Linux Update.py
45 lines (26 loc) · 928 Bytes
/
Linux Update.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
from alive_progress import alive_bar
from time import sleep
from colorama import init
from termcolor import colored
init()
linux = "sudo apt update"
print(colored("Hello", "white"))
user_linux = input(colored("[+]Kali@kali- Wheter to update the application?: y/n: ", "blue"))
if user_linux == "n":
print(colored("[+] kali@kali", "blue"))
elif user_linux == "sudo apt update":
print(colored("root", "red"))
print(colored("root- Update system", "red"))
with alive_bar(100) as bar:
for i in range(100):
sleep(0.03)
bar()
elif user_linux == "y":
print(colored("kali@kali", "blue"))
print(colored("kali@kali- Update system", "blue"))
with alive_bar(100) as bar:
for i in range(100):
sleep(0.03)
bar()
else:
print("Oh no! System Crash XD")