Skip to content

Commit fd6a58a

Browse files
committed
URI decode users
1 parent e47f38b commit fd6a58a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/gather/advantech_webaccess_creds.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def get_users_page(sid)
119119
html = res.get_html_document
120120

121121
users = html.search('a').map { |a|
122-
a.attributes['href'].text.scan(/broadWeb\/user\/upAdminPg\.asp\?uname=(.+)/).flatten.first
123-
}.delete_if { |user| user.nil? }
122+
Rex::Text.uri_decode(a.attributes['href'].text.scan(/broadWeb\/user\/upAdminPg\.asp\?uname=(.+)/).flatten.first || '')
123+
}.delete_if { |user| user.blank? }
124124

125125
users
126126
end

0 commit comments

Comments
 (0)