Skip to content

WPScan

85 commands

A WordPress security scanner that enumerates versions, plugins, themes and users and checks them against a vulnerability database.

  • WordPress
  • CMS
  • enumeration

Install WPScan

sudo apt install wpscan

Basic WordPress Scan3

wpscan --url https://example.com

Performs a simple scan to detect core version, main theme, and common plugins.

wpscan --url https://example.com --verbose

Runs a basic scan with verbose output to show more details about the execution.

wpscan --url https://example.com --no-banner

Runs the scan without displaying the WPScan ASCII art banner.

Connection Options2

wpscan --url https://example.com --random-user-agent

Uses a random user-agent for each request to bypass basic firewall rules.

wpscan --url https://example.com --user-agent "CustomAgent/1.0"

Sets a specific custom User-Agent string for all requests.

Enumeration - Plugins3

wpscan --url https://example.com --enumerate vp

Enumerates only plugins that are known to be vulnerable.

wpscan --url https://example.com --enumerate p

Enumerates the most popular WordPress plugins.

wpscan --url https://example.com --enumerate ap

Enumerates all plugins (aggressive detection, may take a long time).

Enumeration - Themes3

wpscan --url https://example.com --enumerate vt

Enumerates only themes that are known to be vulnerable.

wpscan --url https://example.com --enumerate t

Enumerates the most popular WordPress themes.

Link
wpscan --url https://example.com --enumerate at

Enumerates all themes (aggressive detection).

Link

Enumeration - Users2

wpscan --url https://example.com --enumerate u

Enumerates users using default methods (IDs 1-10).

Link
wpscan --url https://example.com --enumerate u1-50

Enumerates users with IDs specifically within the range of 1 to 50.

Link

Enumeration - Files3

wpscan --url https://example.com --enumerate tt

Scans specifically for TimThumb files (image resizing scripts often vulnerable).

Link
wpscan --url https://example.com --enumerate cb

Scans for configuration backup files (e.g., wp-config.php.bak).

Link
wpscan --url https://example.com --enumerate dbe

Scans for database export files which may contain sensitive data.

Link

Enumeration - Media1

wpscan --url https://example.com --enumerate m

Enumerates media IDs range to identify attachment names.

Link

Enumeration - Combined1

wpscan --url https://example.com --enumerate vp,vt,tt,cb,dbe,u,m

Runs a comprehensive enumeration for vuln plugins, themes, timthumbs, backups, DB exports, users, and media.

Link

Vulnerability Database API1

wpscan --url https://example.com --api-token YOUR_TOKEN

Uses the WPVulnDB API token to display specific vulnerability data for identified components.

Link

Detection Mode4

wpscan --url https://example.com --detection-mode passive

Forces passive detection mode, processing only the homepage and avoiding aggressive requests.

Link
wpscan --url https://example.com --detection-mode aggressive

Forces aggressive detection mode, requesting every potential plugin/theme url to verify existence.

Link
wpscan --url https://example.com --plugins-detection mixed

Uses a mix of passive and aggressive methods for plugin detection.

Link
wpscan --url https://example.com --plugins-version-detection passive

Checks plugin versions solely based on the readme file or file headers without aggressive probing.

Link

Bypass & Evasion4

wpscan --url https://example.com --stealthy

Alias command that enables random user agent, passive detection, and passive version detection.

Link
wpscan --url https://example.com --throttle 500

Waits 500 milliseconds between requests to avoid hitting rate limits.

Link
wpscan --url https://example.com --request-timeout 60

Sets the request timeout to 60 seconds for slow servers.

Link
wpscan --url https://example.com --connect-timeout 30

Sets the connection timeout to 30 seconds.

Link

Performance2

wpscan --url https://example.com --max-threads 10

Increases the scanning speed by using 10 concurrent threads.

Link
wpscan --url https://example.com --request-timeout 10 --connect-timeout 5

Highly restrictive timeouts for failing fast on unresponsive targets.

Link

Proxy & Tor3

wpscan --url https://example.com --proxy http://127.0.0.1:8080

Routes all traffic through an HTTP proxy (e.g., Burp Suite).

Link
wpscan --url https://example.com --proxy socks5://127.0.0.1:9050

Routes all traffic through a SOCKS5 proxy (e.g., Tor).

Link
wpscan --url https://example.com --proxy-auth username:password

Provides authentication credentials for the proxy server.

Link

Authentication (Target)2

wpscan --url https://example.com --http-auth username:password

Uses HTTP Basic Authentication for targets protected by .htaccess/htpasswd.

Link
wpscan --url https://example.com --cookie "wordpress_logged_in_hash=value"

Supplies a session cookie to simulate a logged-in user scan.

Link

Networking2

wpscan --url https://example.com --headers "X-Custom-Header: value"

Adds custom HTTP headers to every request sent by the scanner.

Link
wpscan --url https://example.com --disable-tls-checks

Disables SSL/TLS certificate verification (useful for self-signed certificates).

Link

Advanced Scanning4

wpscan --url https://example.com --force

Forces the scan to proceed even if the target does not appear to be WordPress.

Link
wpscan --url https://example.com --ignore-main-redirect

Prevents the scanner from following a redirect on the main URL.

Link
wpscan --url https://example.com --wp-content-dir custom-content

Manually specifies the wp-content directory if it has been renamed for security.

Link
wpscan --url https://example.com --wp-plugins-dir custom-plugins

Manually specifies the plugins directory location.

Link

Brute Force - Preparation1

wpscan --url https://example.com --enumerate u

First step of brute force: identifying valid usernames to attack.

Link

Brute Force10

wpscan --url https://example.com --passwords rockyou.txt --usernames admin

Performs a password dictionary attack against a single username 'admin'.

Link
wpscan --url https://example.com --passwords pass.txt --usernames users.txt

Performs a password attack using a list of usernames and a list of passwords.

Link
wpscan --url https://example.com --wordlist dictionary.txt --threads 20

Runs a brute force attack with increased concurrency (20 threads).

Link
wpscan --url https://example.com --password-attack wp-login

Forces the brute force attack to use the standard wp-login.php form.

Link
wpscan --url https://example.com --password-attack xmlrpc

Forces the brute force attack to use the XML-RPC interface (faster than wp-login).

Link
wpscan --url https://example.com --multicall-max-passwords 500

Attempts 500 passwords per single XML-RPC request to optimize speed.

Link
wpscan --url https://example.com --exclude-content-based "Error"

Excludes responses containing specific text 'Error' from valid login results.

Link
wpscan --url https://example.com -U users.txt -P passwords.txt --login-uri /my-custom-login

Targets a custom login page URL instead of the default wp-login.php.

Link
wpscan --url https://example.com -U admin -P pass.txt --password-attack wp-login --request-timeout 90

Brute force on wp-login with extended timeout to handle server lag.

Link
wpscan --url https://example.com -U admin -P pass.txt --view-state "XYZ"

Passes a specific ViewState parameter if required by the login form.

Link

Output & Logging5

wpscan --url https://example.com --format json

Outputs the scan results to the console in JSON format.

Link
wpscan --url https://example.com --format cli-no-colour

Outputs text results without ANSI color codes (good for logging).

Link
wpscan --url https://example.com --output report.txt

Saves the default output into a file named report.txt.

Link
wpscan --url https://example.com --format json --output result.json

Saves the scan results in JSON format to a specific file.

Link
wpscan --url https://example.com --debug-output

Prints raw requests and responses to the console for debugging scan issues.

Link

Update1

wpscan --update

Updates the WPScan internal database (requires internet connection).

Link

General1

wpscan --version

Displays the currently installed version of WPScan.

Link

Automation1

wpscan --url https://example.com --no-update

Prevents WPScan from attempting to update the database before scanning (faster start).

Link

Scope Control1

wpscan --url https://example.com --scope-include-content

Allows the scanner to analyze content that might be outside the main domain scope.

Link

Advanced Enumeration1

wpscan --url https://example.com --enumerate u --users-detection-mode mixed

Uses both passive (author archives) and aggressive (login error messages) techniques to find users.

Link

Custom Directories1

wpscan --url https://example.com --wp-themes-dir css/themes

Specifies a custom location for the themes directory.

Link

Config Backup1

wpscan --url https://example.com --config-file custom_config.yml

Uses a YAML configuration file to define scan parameters instead of command line flags.

Link

API Integration1

wpscan --url https://example.com --api-token TOKEN --enumerate vp,vt

Combines API token with vulnerable plugin/theme enumeration for rich vulnerability data.

Link

Request Modifiers1

wpscan --url https://example.com --exclude-usernames admin,root

Excludes specific usernames from being reported or attacked.

Link

Debugging1

wpscan --url https://example.com --log file.log

Creates a log file capturing the standard output of the scan.

Link

Complex Scan2

wpscan --url https://example.com -e vp,vt,u --api-token TOKEN --random-user-agent --ignore-main-redirect

A realistic red-team scan: enumerate vulns/users, use API, fake UA, and ignore redirects.

Link
wpscan --url https://example.com --stealthy --api-token TOKEN --format json --output scan.json

A stealthy, automated scan saving results to JSON for CI/CD pipelines.

Link

Detection Tweaks2

wpscan --url https://example.com --plugins-version-detection aggressive

Aggressively probes plugins to determine their exact versions.

Link
wpscan --url https://example.com --themes-version-detection mixed

Uses mixed methods to determine theme versions.

Link

Enumeration - TimThumb1

wpscan --url https://example.com --enumerate tt

Specific check for legacy TimThumb vulnerability existence.

Link

Network Security1

wpscan --url https://example.com --ssl-client-cert client.crt --ssl-client-key client.key

Provides client-side SSL certificates if the server requires mutual TLS.

Link

Basic Scan1

wpscan --help

Displays the full help menu with all available flags and options.

Link

Enumeration3

wpscan --url https://example.com --enumerate ap --plugins-list plugins.txt

Uses a custom list of plugins to check against the target instead of the default database.

Link
wpscan --url https://example.com --enumerate at --themes-list themes.txt

Uses a custom list of themes to check against the target.

Link
wpscan --url https://example.com --enumerate u --users-list users.txt

Checks for the existence of specific users from a provided list.

Link

Output2

wpscan --url https://example.com --format cli

Forces the standard command line interface output format.

Link
wpscan --url https://example.com --no-banner --format json

Clean JSON output without the banner, suitable for parsing by other tools.

Link

Authentication1

wpscan --url https://example.com --cookie "PHPSESSID=123; path=/"

Sets a generic PHP session ID cookie for the scan.

Link

Bypass1

wpscan --url https://example.com --random-user-agent --throttle 1000

Slow, randomized scan (1 request/sec) to evade WAF rate limiting.

Link

Enumeration - All1

wpscan --url https://example.com --enumerate vp,vt,tt,cb,dbe,u,m --detection-mode aggressive

Maximum noise scan: enumerates everything possible with aggressive detection enabled.

Link

Network1

wpscan --url https://example.com --server https://githack.com

Specifies a custom server URL for WPScan updates (rarely used).

Link

Headers1

wpscan --url https://example.com --headers "Authorization: Bearer XYZ"

Passes an OAuth bearer token in the headers for scans behind API gateways.

Link

Enumeration - Range1

wpscan --url https://example.com --enumerate m1-100

Enumerates media attachments specifically within ID range 1 to 100.

Link

Full Audit1

wpscan --url https://example.com --enumerate vp,vt,u --api-token TOKEN --random-user-agent --format json --output audit.json

Complete audit command generating a JSON report with vuln data and randomized agent.

Link