Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have WPScan Follow Redirects #1832

Open
j0se-ad opened this issue Feb 26, 2024 · 1 comment
Open

Have WPScan Follow Redirects #1832

j0se-ad opened this issue Feb 26, 2024 · 1 comment

Comments

@j0se-ad
Copy link

j0se-ad commented Feb 26, 2024

Hi. I'm running wpscan on my python script and these are the logs for it:
I noticed that wpscan is stopping when identifying redirects but does not follow them, instead it just throws and error and stops the scan.

Can you help please?

2024-02-26 19:26:49,545 - ERROR - WPScan command failed with error: Command '['wpscan', '--url', 'mysite1.wpengine.com', '--enumerate', 'ap,at,tt,cb,dbe,u,m', '--plugins-detection', 'mixed', '--format', 'json', '--random-user-agent', '--disable-tls-checks']' returned non-zero exit status 4.
2024-02-26 19:26:49,547 - ERROR - Error output: {
  "banner": {
    "description": "WordPress Security Scanner by the WPScan Team",
    "version": "3.8.25",
    "authors": [
      "@_WPScan_",
      "@ethicalhack3r",
      "@erwan_lr",
      "@firefart"
    ],
    "sponsor": "Sponsored by Automattic - https://automattic.com/"
  },
  "scan_aborted": "The URL supplied redirects to https://mysite2.ua/. Use the --ignore-main-redirect option to ignore the redirection and scan the target, or change the --url option value to the redirected URL.",
  "target_url": "http://mysite1.wpengine.com/"
}

@alexsanford alexsanford changed the title Wpscan not following redirect when I set format to json Have WPScan Follow Redirects Feb 6, 2025
@alexsanford
Copy link
Contributor

Added this as a feature request. We may want to add an option to enable this, so it still may not do it by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants