Skip to content

Commit 5bb8dbc

Browse files
committed
added peer to users table
1 parent 797bd9e commit 5bb8dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/misc/dahua_dvr_auth_bypass.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ def grab_users
207207
users_table = Rex::Ui::Text::Table.new(
208208
'Header' => 'Dahua Users Hashes and Rights',
209209
'Indent' => 1,
210-
'Columns' => ['Username', 'Password Hash', 'Groups', 'Permissions', 'Description']
210+
'Columns' => ['Peer', 'Username', 'Password Hash', 'Groups', 'Permissions', 'Description']
211211
)
212212
data.each do |val|
213213
usercount += 1
214214
user, md5hash, groups, rights, name = val.match(/^.*:(.*):(.*):(.*):(.*):(.*):(.*)$/).captures
215-
users_table << [user, md5hash, groups, rights, name]
215+
users_table << [ peer, user, md5hash, groups, rights, name]
216216
# Write the dahua hash to the database
217217
hash = "#{rhost} #{user}:$dahua$#{md5hash}"
218218
report_hash(rhost, rport, user, hash)

0 commit comments

Comments
 (0)