1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

Minor ruby style cleanup

This commit is contained in:
Jon Hart 2015-01-21 20:27:38 -08:00
parent ceed293969
commit 52be3d80b7
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3

View File

@ -96,8 +96,8 @@ class Metasploit3 < Msf::Post
hash = Rex::Text.to_hex(Rex::Text.decode_base64(hash), "")
hashtype = 'dynamic_1405'
version_name = 'v8'
if !(version >= VERSION_8 && version < VERSION_9)
print_warning("Unknown McAfee version #{version_name} - Assuming v8")
unless version >= VERSION_8 && version < VERSION_9
print_warning("Unknown McAfee version #{version} - Assuming v8")
end
end
@ -110,13 +110,13 @@ class Metasploit3 < Msf::Post
private_data: hash,
session_id: session_db_id,
jtr_format: hashtype,
workspace_id: myworkspace_id,
workspace_id: myworkspace_id
}
create_credential(credential_data)
# Store McAfee password hash as loot
loot_path = store_loot('mcafee.hash', 'text/plain', session, 'mcafee:'+hash, 'mcafee_hashdump.txt', 'McAfee Password Hash')
loot_path = store_loot('mcafee.hash', 'text/plain', session, "mcafee:#{hash}", 'mcafee_hashdump.txt', 'McAfee Password Hash')
print_status("McAfee password hash saved in: #{loot_path}")
end
end