wpscanteam / wpscan

WPScan WordPress security scanner. Written for security professionals and blog maintainers to test the security of their WordPress websites. Contact us via contact@wpscan.com
https://wpscan.com/wordpress-cli-scanner
Other
8.54k stars 1.26k forks source link

Wpscan not following redirect when I set format to json #1832

Open j0se-ad opened 7 months ago

j0se-ad commented 7 months ago

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/"
}