Skip to content

Commit 52be3d8

Browse files
committed
Minor ruby style cleanup
1 parent ceed293 commit 52be3d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def process_hashes_and_versions(hashes_and_versions)
9696
hash = Rex::Text.to_hex(Rex::Text.decode_base64(hash), "")
9797
hashtype = 'dynamic_1405'
9898
version_name = 'v8'
99-
if !(version >= VERSION_8 && version < VERSION_9)
100-
print_warning("Unknown McAfee version #{version_name} - Assuming v8")
99+
unless version >= VERSION_8 && version < VERSION_9
100+
print_warning("Unknown McAfee version #{version} - Assuming v8")
101101
end
102102
end
103103

@@ -110,13 +110,13 @@ def process_hashes_and_versions(hashes_and_versions)
110110
private_data: hash,
111111
session_id: session_db_id,
112112
jtr_format: hashtype,
113-
workspace_id: myworkspace_id,
113+
workspace_id: myworkspace_id
114114
}
115115

116116
create_credential(credential_data)
117117

118118
# Store McAfee password hash as loot
119-
loot_path = store_loot('mcafee.hash', 'text/plain', session, 'mcafee:'+hash, 'mcafee_hashdump.txt', 'McAfee Password Hash')
119+
loot_path = store_loot('mcafee.hash', 'text/plain', session, "mcafee:#{hash}", 'mcafee_hashdump.txt', 'McAfee Password Hash')
120120
print_status("McAfee password hash saved in: #{loot_path}")
121121
end
122122
end

0 commit comments

Comments
 (0)