Skip to content

Commit e47f38b

Browse files
committed
Look at the right link to extract users
1 parent ba50f2f commit e47f38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/gather/advantech_webaccess_creds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ 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\/delAdmin\.asp\?uname=(.+)/).flatten.first
122+
a.attributes['href'].text.scan(/broadWeb\/user\/upAdminPg\.asp\?uname=(.+)/).flatten.first
123123
}.delete_if { |user| user.nil? }
124124

125125
users

0 commit comments

Comments
 (0)