Merge branch 'master' of github.com:wpscanteam/wpscan

This commit is contained in:
erwanlr
2020-03-13 16:04:11 +01:00
3 changed files with 3 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ cli_options:
api_token: YOUR_API_TOKEN
```
## Load APi Token From ENV
## Load API Token From ENV (since v3.7.10)
The API Token will be automatically loaded from the ENV variable `WPSCAN_API_TOKEN` if present. If the `--api-token` CLI option is also provided, the value from the CLI will be used.

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

View File

@@ -20,7 +20,7 @@ module WPScan
class DebugLog < InterestingFinding
# @ return [ Hash ]
def references
@references ||= { url: 'https://codex.wordpress.org/Debugging_in_WordPress' }
@references ||= { url: ['https://codex.wordpress.org/Debugging_in_WordPress'] }
end
end