Repository navigation
Expand file tree
/
Copy pathPyarchlinux.py
More file actions
116 lines (108 loc) · 3.39 KB
/
Copy pathPyarchlinux.py
File metadata and controls
116 lines (108 loc) · 3.39 KB
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
import turtle
import os
import time
os.system("cls")
print("Starting initrd of Pyarch Linux.")
time.sleep(1)
print("[ OK ] Started pythond: it may appear soon.")
print("[ OK ] Started Pylinux kernel.")
print("[ OK ] Started Startup KRNE.")
print("[ OK ] Programs: 5")
time.sleep(0.15)
print("[ OK ] Initrd loaded successfully.")
time.sleep(0.15)
print("[ OK ] Reached target Stage 2.")
time.sleep(0.15)
print(" Handing off to pythond...")
time.sleep(0.4)
print("")
print("Welcome to Pyarch Linux!")
print("")
time.sleep(0.44)
print("[ OK ] Started PyNetworkmanager.")
time.sleep(0.15)
print("[ OK ] Started PythonGNU Utilities.")
time.sleep(0.15)
print("[ OK ] Reached target WSL without WSL.")
time.sleep(0.15)
print("[ OK ] Loaded Pybash.")
time.sleep(0.15)
print("[ OK ] Started /dev/tty1.")
time.sleep(0.15)
print("[ OK ] Reached target BASH.")
time.sleep(0.15)
print("Pyarch Linux (0.12-python @ tty1)")
ShutdownTriggered = False
def target():
while True:
yx = os.getcwd()
xx = str(input("user@archlinux:"+str(yx)+"$ "))
if xx == "clear":
os.system("cls")
elif xx == "fastfetch":
print(" o user@archlinux")
print(" ooo ---------------------")
print(" ooooo OS : Pyarch Linux x86_64")
print(" ooooooo DE : Python3")
print(" oooo oooo WM : does not exist")
print(" oooo oooo Packages : Git")
print("oooo pip oooo Kernel : Linux 0.12-python")
print("ooo XHX ooo Init system : pythond 261.1")
elif "cd" in xx:
try:
dir = input("chdir > ")
os.chdir(dir)
except OSError:
print("cd: invalid directory")
continue
elif xx == "exit":
break
elif xx == "ls":
print(os.getcwd())
print(os.listdir())
elif "sudo" in xx:
try:
sudopass = str(input("[sudo] password for root: "))
if sudopass == "a":
sudosu = xx.strip("sudo")
os.system("powershell"+str(sudosu))
continue
else:
print("sudo: Invalid password")
continue
except KeyboardInterrupt:
print("")
print("sudo: a password is required")
continue
else:
os.system(xx)
continue
while True:
if ShutdownTriggered == True:
break
else:
try:
passwd = input("user password: ")
except KeyboardInterrupt:
print("System going down NOW!")
break
if passwd == "a":
target()
else:
print("Error")
continue
time.sleep(0.15)
print("[ OK ] Closed BASH Apps.")
time.sleep(0.35)
print("[ OK ] Closed 5 services.")
time.sleep(0.125)
print("[ OK ] Started return to OS.")
time.sleep(0.125)
print("[ OK ] Generated Shutdown binary.")
print("[ OK ] Executed Shutdown binary.")
time.sleep(0.01)
print(" Reaching target...")
time.sleep(0.5)
print("[ OK ] Reached target Exit the Container.")
time.sleep(2)
exit