File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed
modules/post/windows/gather/credentials Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,23 @@ def initialize(info = {})
39
39
) )
40
40
end
41
41
42
+ def run
43
+ print_status ( "Looking for McAfee password hashes on #{ sysinfo [ 'Computer' ] } ..." )
44
+
45
+ vse_keys = enum_vse_keys
46
+ if vse_keys . empty?
47
+ vprint_error ( "McAfee Virus Scan Enterprise not installed or insufficient permissions" )
48
+ return
49
+ end
50
+
51
+ hashes_and_versions = extract_hashes_and_versions ( vse_keys )
52
+ if hashes_and_versions . empty?
53
+ vprint_error ( "No hashes extracted" )
54
+ return
55
+ end
56
+ process_hashes_and_versions ( hashes_and_versions )
57
+ end
58
+
42
59
def enum_vse_keys
43
60
vprint_status ( 'Enumerating McAfee VSE installations' )
44
61
keys = [ ]
@@ -126,20 +143,4 @@ def process_hashes_and_versions(hashes_and_versions)
126
143
end
127
144
end
128
145
129
- def run
130
- print_status ( "Looking for McAfee password hashes on #{ sysinfo [ 'Computer' ] } ..." )
131
-
132
- vse_keys = enum_vse_keys
133
- if vse_keys . empty?
134
- vprint_error ( "McAfee Virus Scan Enterprise not installed or insufficient permissions" )
135
- return
136
- end
137
-
138
- hashes_and_versions = extract_hashes_and_versions ( vse_keys )
139
- if hashes_and_versions . empty?
140
- vprint_error ( "No hashes extracted" )
141
- return
142
- end
143
- process_hashes_and_versions ( hashes_and_versions )
144
- end
145
146
end
You can’t perform that action at this time.
0 commit comments