-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows_prev_esc.py
97 lines (85 loc) · 2.54 KB
/
windows_prev_esc.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
import os
def os_windows_system():
os.system("cls")
if windows != 0:
print("Check the windows info")
os.system("systeminfo")
os_user_info()
else:
os.system("cls")
print("Check the windows info")
os.system("systeminfo")
gotomain = input("Press Enter to return to Main Menu")
main()
def os_user_info():
if windows != 0:
print("Check The User Info - Prev-esc")
os.system("whomai /all")
os.system("net users")
os.system("net user Administrators")
os.system("net group /domain")
os.system("net localgroup")
os.system("net localgroup Administrators")
os.system("net accounts")
os.system("net share")
os_updates_patches()
else:
os.system("cls")
print("Check The User Info - Prev-esc")
os.system("whomai /all")
os.system("net users")
os.system("net user Administrators")
os.system("net group /domain")
os.system("net localgroup")
os.system("net localgroup Administrators")
os.system("net accounts")
os.system("net share")
gotomain = input("Press Enter to return to Main Menu")
main()
def os_updates_patches():
if windows != 0:
print("OS-Updates and Patches")
os.system("icacls config\SAM")
os.system("wmic qfe")
os.system("Get-ChildItem Env: | ft Key,Value")
os.system("wmic logicaldisk get caption,description,providername")
gotomain = input("Press Enter to return to Main Menu")
main()
else:
os.system("cls")
os.system("icacls config\SAM")
os.system("wmic qfe")
os.system("Get-ChildItem Env: | ft Key,Value")
os.system("wmic logicaldisk get caption,description,providername")
gotomain = input("Press Enter to return to Main Menu")
main()
def main():
global windows
windows = 0
os.system("cls")
print("""
█░█░█ █ █▄░█ █▀▄ █▀█ █░█░█ █▀ █▀█ █▀█ █▀▀ █░█ █▀▀ █▀ █▀▀
▀▄▀▄▀ █ █░▀█ █▄▀ █▄█ ▀▄▀▄▀ ▄█ █▀▀ █▀▄ ██▄ ▀▄▀ ██▄ ▄█ █▄▄
""")
options = input("""
1). Check windows info
2). Check User info
3). Check Updates info
4). Full Scan
5). Exit
WXP>> """)
if options == "1":
os_windows_system()
elif options == "2":
os_user_info()
elif options == "3":
os_updates_patches()
elif options == "4":
windows = windows + 1
os_windows_system()
elif options =="5":
exit()
else:
Bad_option = input("Press Enter to return the main menu")
main()
main()