added peer to users table
parent
797bd9e04d
commit
5bb8dbcafc
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue