@@ -92,7 +92,7 @@ def gather_prefetch_info(name_offset, hash_offset, lastrun_offset, runcount_offs
92
92
client . railgun . kernel32 . SetFilePointer ( handle , hash_offset , 0 , nil )
93
93
hash = client . railgun . kernel32 . ReadFile ( handle , 4 , 4 , 4 , nil )
94
94
95
- # Finds the LastModified timestamp (MACE)
95
+ # Finds the LastModified/Created timestamp (MACE)
96
96
lm = client . priv . fs . get_file_mace ( filename )
97
97
98
98
# Finds the Creation timestamp (MACE)
@@ -119,12 +119,6 @@ def run
119
119
120
120
print_status ( "Prefetch Gathering started." )
121
121
122
- if not is_admin?
123
- print_error ( "You don't have enough privileges. Try getsystem." )
124
- return nil
125
- end
126
-
127
-
128
122
begin
129
123
130
124
# Check to see what Windows Version is running.
@@ -136,6 +130,10 @@ def run
136
130
sysnfo = client . sys . config . sysinfo [ 'OS' ]
137
131
138
132
if sysnfo =~/(Windows XP)/
133
+ if not is_system?
134
+ print_error ( "You don't have enough privileges. Try getsystem." )
135
+ return nil
136
+ end
139
137
# Offsets for WinXP
140
138
print_good ( "Detected Windows XP (max 128 entries)" )
141
139
name_offset = 0x10
@@ -146,6 +144,10 @@ def run
146
144
key_value = "StandardName"
147
145
148
146
elsif sysnfo =~/(Windows 7)/
147
+ if not is_admin?
148
+ print_error ( "You don't have enough privileges. Try getsystem." )
149
+ return nil
150
+ end
149
151
# Offsets for Win7
150
152
print_good ( "Detected Windows 7 (max 128 entries)" )
151
153
name_offset = 0x10
0 commit comments