Fixes detection of Users via WP JSON when blog uses basic auth

This commit is contained in:
Erwan
2020-03-12 13:12:40 +01:00
committed by GitHub
parent 98739cce5a
commit 4f7dec4635

View File

@@ -21,7 +21,7 @@ module WPScan
loop do
current_page += 1
res = Typhoeus.get(api_url, params: { per_page: MAX_PER_PAGE, page: current_page })
res = Browser.get(api_url, params: { per_page: MAX_PER_PAGE, page: current_page })
total_pages ||= res.headers['X-WP-TotalPages'].to_i