-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddr.py
147 lines (100 loc) · 2.81 KB
/
addr.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
import winreg
import os
print("Scanning Registry...")
print("Scanning Registry...")
print("Done.")
# CurrentVersion
print('''
Information from SOFTWARE\Microsoft\Windows NT\CurrentVersion
---------------------------------------------------------------''')
def reg():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_LOCAL_MACHINE)
regkey = winreg.OpenKey(access_reg, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
reg()
print('''
''')
# Environment
print('''
Information from \Environment
---------------------------------------------------------------''')
def reg1():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_CURRENT_USER)
regkey = winreg.OpenKey(access_reg, r"Environment")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
reg1()
print('''
''')
# HKEY_CURRENT_USER\Volatile
print('''
Information from HKEY_CURRENT_USER\Volatile Environment
---------------------------------------------------------------''')
def reg2():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_CURRENT_USER)
regkey = winreg.OpenKey(access_reg, r"Volatile Environment")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
reg2()
print('''
''')
# HARDWARE\DESCRIPTION\SYSTEM
print('''
Information from HARDWARE\DESCRIPTION\SYSTEM
---------------------------------------------------------------''')
def reg3():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_LOCAL_MACHINE)
regkey = winreg.OpenKey(access_reg, r"HARDWARE\DESCRIPTION\SYSTEM")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
reg3()
print('''
''')
# SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
print('''
Information from SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform
---------------------------------------------------------------''')
def reg4():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_LOCAL_MACHINE)
regkey = winreg.OpenKey(access_reg, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
reg4()
print('''
''')
# \SOFTWARE\Microsoft\Windows Defender
print('''
Information from \SOFTWARE\Microsoft\Windows Defender
---------------------------------------------------------------''')
def reg5():
access_reg = winreg.ConnectRegistry(None,winreg.HKEY_LOCAL_MACHINE)
regkey = winreg.OpenKey(access_reg, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform")
for n in range(20):
try:
x = winreg.EnumValue(regkey, n)
print(x)
except:
break
reg5()
os.system("py registry.py > Files\RegistryInfo.txt")