GO KALI FREE

WPScan

Vulnerability Analysis

Intermediatemedium risk

Learn how to use WPScan, the black-box WordPress vulnerability scanner: install it in Kali Linux, add a free API token, and scan a WordPress site to enumerate plugins, themes and users and match them against known vulnerabilities.

Installation

sudo apt install wpscan

Basic Syntax

wpscan --url <target_wordpress_url>

Quick Facts

Full Name
WPScan WordPress Scanner
License
AGPL
Language
Ruby
Vulnerability DB
WPVulnDB
Category
CMS Scanner
Target
WordPress Only

Tool Overview

To learn how to use WPScan, follow a beginner loop on a WordPress site you own or have written permission to test: confirm installation with wpscan --version, update the vulnerability database with wpscan --update, add a free API token from wpscan.com, and run a first scan against your lab WordPress site. Then enumerate vulnerable plugins, themes and users with --enumerate vp,vt,u and read the results before acting. WPScan v3.8.x is a Ruby gem and is pre-installed in Kali Linux.

For a worked first-scan example, scan your lab WordPress site at http://127.0.0.1:8080 with wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN --enumerate vp,vt,u --random-user-agent. An illustrative result identifies WordPress 6.5.2, three plugins of which one has a known CVE, and two usernames, admin and editor. This shows the shape of a real result, not guaranteed findings: check the version evidence and CVE references before updating components or planning any explicitly authorized login tests.

Not every WPScan finding needs the same response: read the CVE reference, check whether the vulnerable component is active and reachable, and fix critical and high-severity issues first. A vulnerable plugin that is installed but inactive is still worth removing, while a low-severity information disclosure can wait for the next maintenance window. WPScan finds known vulnerabilities; it cannot prove a site is secure, so pair the scan with updates, strong credentials and a firewall.

WPScan is a black box WordPress vulnerability scanner that enumerates active plugins, themes, user accounts, and security vulnerabilities. It is the most widely used WordPress security assessment tool.

The tool checks for known vulnerabilities in WordPress core, plugins, and themes by comparing detected versions against the WPVulnDB vulnerability database. It also supports user enumeration and password brute forcing.

WPScan is essential for WordPress security assessments, providing detailed information about installed components and their security status. It requires an API token for full vulnerability database access.

Quick Reference Commands

Verified quick-reference commands for WPScan
CommandPurpose
wpscan --url http://127.0.0.1:8080Run a baseline lab assessment.
wpscan --url http://127.0.0.1:8080 --enumerate vp,vt,uEnumerate vulnerable plugins, themes, and users.
wpscan --url http://127.0.0.1:8080 --detection-mode passive --throttle 500Use passive detection mode with a 500 ms delay.
wpscan --url http://127.0.0.1:8080 --format json -o wpscan.jsonSave machine-readable results.
wpscan | Kali Linux Tools

Common Commands

wpscan --url http://example.comBasic scan - Check basic components and structural versions
wpscan --url http://example.com --enumerate vp,vt,uDeep enumeration - Enumerate vulnerable plugins, vulnerable themes, and usernames
wpscan --url http://example.com --api-token YOUR_TOKENVulnerability DB check - Pull known exploitation CVEs utilizing a WPScan API token
wpscan --url http://192.168.1.1/wordpressBasic scan - Check WordPress for vulnerabilities
wpscan --url http://192.168.1.1 --enumerate uEnumerate users - Find WordPress usernames
wpscan --url http://192.168.1.1 --enumerate pEnumerate plugins - List installed plugins
wpscan --url http://192.168.1.1 -U users.txt -P passwords.txtPassword attack - Brute force WordPress logins
wpscan --url http://192.168.1.1 --api-token YOUR_TOKENVulnerability DB - Check against WPScan database
wpscan --url https://example.comBasic WordPress scan
wpscan --url https://example.com -e vpEnumerate vulnerable plugins
wpscan --url https://example.com -e vtEnumerate vulnerable themes
wpscan --url https://example.com -e uEnumerate usernames
wpscan --url https://example.com -e apEnumerate all plugins
wpscan --url https://example.com --detection-mode aggressiveAggressive detection
wpscan --url https://example.com --api-token TOKENWPVulnDB API integration
wpscan --url https://example.com -o results.json --format jsonJSON output
wpscan --url https://example.com -o results.txt --format cli-no-colorPlain text output
wpscan --url https://example.com --proxy http://127.0.0.1:8080Through Burp proxy
wpscan --url https://example.com --cookie 'session=abc'With authentication cookie
wpscan --url https://example.com --passwords passwords.txt --usernames adminBrute-force login
wpscan --url https://example.com -e ttEnumerate timthumbs
wpscan --url https://example.com --ruaRandom User-Agent
wpscan --url https://example.com --disable-tls-checksDisable TLS verification
wpscan --url https://example.com --throttle 500500ms between requests
wpscan --url https://example.com --forceForce updates

Step-by-Step Guide

  1. 1Confirm WPScan is installed with wpscan --version. WPScan v3.8.x is pre-installed in Kali Linux; if it is missing, run sudo apt install wpscan. On another system with Ruby installed, use gem install wpscan to install the Ruby gem.
  2. 2Update the vulnerability database before scanning: wpscan --update. This refreshes vulnerability data; upgrading the installed WPScan package is a separate task.
  3. 3Get a free Researcher-tier API token at wpscan.com for non-commercial use (25 vulnerability-database requests per day). Save it privately in your WPScan configuration or pass --api-token YOUR_TOKEN on each scan; replace YOUR_TOKEN with your token and never commit it to a repository.
  4. 4Confirm the target is WordPress by checking for /wp-admin/ and /wp-content/ paths or WordPress assets in the page source. Only scan sites you own or have written permission to test; this walkthrough uses your own lab WordPress site at http://127.0.0.1:8080.
  5. 5Run your first basic scan: wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN. Read the detected WordPress version and the Interesting Findings block before moving to deeper enumeration.
  6. 6Enumerate vulnerable plugins, vulnerable themes and users: wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN --enumerate vp,vt,u. Here vp means vulnerable plugins, vt vulnerable themes and u users; other codes include p plugins, ap all plugins, t themes, tt timthumbs, cb config backups and dbe db exports. Verify detected versions before treating a vulnerability match as confirmed.
  7. 7Run aggressive plugin enumeration on the lab: wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN --enumerate ap --plugins-detection aggressive. This looks for inactive or hidden plugins and sends more requests; on authorized live targets, agree on request limits and use --throttle 500 if needed.
  8. 8Enumerate users separately: wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN --enumerate u. Note valid usernames, such as admin and editor in the sample, and save approved usernames one per line in users.txt. User enumeration does not reveal passwords.
  9. 9Only with written permission that explicitly covers login testing, test the lab with wpscan --url http://127.0.0.1:8080 -U users.txt -P passwords.txt. Use small, approved wordlists, agree on attempt limits and stop if account lockouts occur; skip this step when credential testing is outside scope.
  10. 10Triage findings by severity and exposure, verify each CVE matches the component, installed version and relevant prerequisites, and save a report: wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN --enumerate vp,vt,u --format json -o wpscan.json. This reruns the scan, so plan for API requests; protect the report, patch verified issues and rescan.

Warnings

Use Cases

WordPress Auditing

Scan WordPress installations for known vulnerabilities.

Plugin Enumeration

Discover installed plugins and their versions.

User Discovery

Enumerate WordPress user accounts.

Brute Force

Test WordPress login credentials against wordlists.

Authenticated Scanning

Scan behind logins with --cookie or --http-auth on sites you own.

CI/CD & Scheduled Scans

Run WPScan from cron or CI with JSON output for recurring WordPress audits.

Theme Vulnerability Checks

Check installed themes for known CVEs before a WordPress update.

Key Features

Related Tools

Nikto

Vulnerability Analysis

Learn how to use Nikto, an open-source web server scanner written in Perl and pre-installed on Kali Linux, to audit servers you own or have written permission to test. Its 6700+ checks for potentially dangerous files and programs, plus tests for outdated software and misconfigurations, highlight issues that need verification.

Hydra

Password Attacks

Hydra is a parallelized login cracker that supports numerous protocols including FTP, HTTP, HTTPS, SMB, SSH, and many more. It performs rapid dictionary attacks against login pages and services to test password strength.

Nuclei

Vulnerability Analysis

Nuclei is used to send requests across targets based on templates, allowing zero false positives and providing rapid scanning over large infrastructure footprints.

Wapiti

Web Application

Wapiti allows you to audit the security of your websites or web applications. It performs black-box scanning by crawling pages and injecting payloads to discover vulnerabilities like SQL injection, XSS, and file inclusions.

Burp Suite

Web Application

Burp Suite is the industry-standard web application security testing platform from PortSwigger, free as Community Edition on Kali Linux. Learn how to use Burp Suite: install it, route your browser through its proxy, intercept your first request, and test it with Repeater and Intruder.

XSSer

Web Application

XSSer (Cross Site Scripting Exploiter) is an automatic framework to detect, exploit, and report XSS vulnerabilities in web applications. It contains features to bypass several filters and various options for automated payload generation.

Related Cybersecurity Guides

Tools · Beginner

How to Use WPScan: WordPress Vulnerability Scanning in Kali Linux

How to use WPScan in Kali Linux: install it, save your free API token, run your first WordPress vulnerability scan — cheat sheet, 15 FAQs.

Web Security · Intermediate

What Is XSS? Cross-Site Scripting Examples & How to Prevent XSS Attacks

Learn what XSS is, its types, and how to prevent XSS with a worked DVWA example, context-aware defenses, testing tips, and a cheat sheet.

Web Security · Intermediate

Web Security Fundamentals: OWASP Top 10 and Beyond

A comprehensive guide to web application security covering the OWASP Top 10 vulnerabilities, defense in depth strategies, and secure development lifecycle practices.

Tools · Beginner

Nikto Commands: Complete Guide to Web Server Scanning in Kali Linux

Nikto commands cheat sheet: install Nikto, run your first web server scan, read the results, tune scans and save reports — with a worked example.

Frequently Asked Questions

What is WPScan used for?

WPScan is used for scanning WordPress installations for vulnerabilities, enumerating plugins and themes, discovering users, and testing passwords. It is the most popular WordPress security scanner.

Do I need a WPVulnDB API token?

An API token is not required for basic scanning, but it provides access to the full vulnerability database. Without it, WPScan can only detect plugins/themes, not match them to known CVEs.

Can WPScan brute force WordPress logins?

Yes, WPScan can brute force WordPress login pages using wordlists. Use -U for usernames and -P for password lists.

How does WPScan enumerate plugins?

WPScan checks for plugin files in the /wp-content/plugins/ directory and compares detected versions against the WPVulnDB for known vulnerabilities.

How do I install WPScan?

Install WPScan using: sudo apt install wpscan on Kali Linux. On other systems, install via Ruby: gem install wpscan, or use Docker: docker run wpscanteam/wpscan.

How do I use WPScan for a basic scan?

Run wpscan --url http://example.com to perform a basic WordPress scan. Add --api-token YOUR_TOKEN for vulnerability database matching.

What are the most common WPScan commands?

Common commands include: wpscan --url target (basic scan), wpscan --url target --enumerate vp,vt,u (all enumeration), wpscan --url target -U users.txt -P passwords.txt (brute force).

How do I enumerate WordPress users with WPScan?

Use wpscan --url target --enumerate u to enumerate WordPress user accounts. This discovers valid usernames that can be used for further attacks.

How do I get a WPVulnDB API token?

Register for a free account at wpscan.com/api. Free tokens allow 25 requests per day; paid plans offer more. Use the token with --api-token flag.

Is WPScan legal to use?

WPScan itself is legal software. However, scanning WordPress sites without permission from the owner may violate laws. Always obtain written authorization before testing.

How does WPScan compare to Nikto?

WPScan is WordPress-specific with plugin/theme matching and brute force. Nikto is a general web scanner with 6700+ tests. Use WPScan for WordPress; Nikto for general web scanning.

How does WPScan detect vulnerable themes?

WPScan checks /wp-content/themes/ and compares detected theme versions against the WPVulnDB for known vulnerabilities and CVEs.

What is the --enumerate flag in WPScan?

The --enumerate flag specifies what to enumerate: u (users), p (plugins), vp (vulnerable plugins), vt (vulnerable themes), tt (timthumbs), and more.

Why is WPScan not detecting plugins?

WPScan may miss plugins that are not in the default wordlist or have non-standard directory names. Use --enumerate p to force plugin enumeration.

How do I save WPScan results?

Use --output-format json --output results.json to save results in JSON format. WPScan also supports text and CLI output formats.

What is WPScan's rate limiting?

Use --rate-limit to control scan speed and avoid triggering WAFs: wpscan --url target --rate-limit 100 sets 100 requests per second.

How long does a WPScan scan take?

A basic scan takes 1-3 minutes. Enumeration with API token checks takes 5-10 minutes depending on the number of plugins/themes and network speed.

Can WPScan scan multiple WordPress sites?

WPScan scans one site at a time. For multiple sites, create a bash script to iterate through a list of URLs.

What is WPScan's --stealthy flag?

The --stealthy flag reduces scan aggressiveness to avoid detection by security plugins and WAFs. Use it for stealthier WordPress assessments.

How do I use WPScan in Kali Linux?

WPScan is pre-installed in Kali Linux. Check it with wpscan --version and update the vulnerability database with wpscan --update. Get a free token at wpscan.com, then run wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN against your own WordPress lab. If the tool is missing, install it with sudo apt install wpscan.

How do I scan a WordPress website with WPScan?

Only scan sites you own or have written permission to test. For a local WordPress lab, run wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN --enumerate vp,vt,u --random-user-agent. Replace YOUR_TOKEN with your token; vp, vt and u request vulnerable plugins, vulnerable themes and usernames. Review detected versions and CVE references before acting.

Is WPScan free?

WPScan is free and open source. A free Researcher-tier API token from wpscan.com is available for non-commercial use and allows 25 vulnerability-database requests per day. Commercial use requires a paid plan.

How do I update WPScan?

Run wpscan --update to refresh the vulnerability database. On Kali Linux, update the WPScan package with sudo apt update && sudo apt upgrade wpscan. These are separate tasks: the first refreshes vulnerability data, while the second upgrades the installed tool.

How do I run WPScan in Docker?

Use the official image: docker run --rm -it wpscanteam/wpscan --url http://127.0.0.1:8080 --api-token YOUR_TOKEN. Docker avoids installing Ruby and the gem on the host; pass --api-token the same way and add -v $(pwd):/wpscan to save reports outside the container.

How is WPScan different from Wordfence?

WPScan is a command-line scanner that finds known vulnerabilities in WordPress core, plugins and themes from outside the site. Wordfence is a WordPress plugin that runs inside WordPress as a firewall and malware scanner. They complement each other: WPScan audits the site, Wordfence protects it day to day.

Tags

#wordpress#web#scanning#vulnerability

Output Explanation

Read this illustrative lab scan from top to bottom; actual output varies with detection mode and API data. The banner identifies WPScan v3.8.x, not the WordPress version. A line such as 'WordPress version 6.5.2 identified' is the core fingerprint: review the detection evidence, confirm the version and check core vulnerability references before planning an update. In 'Interesting Findings', headers such as Server reveal server technology, robots.txt can disclose paths, and a public readme.html exposes installation information. Review each reported URL only within scope, reduce unnecessary disclosures and harden headers; these observations alone do not prove an exploitable flaw. Next, inspect each plugin section for its slug, location, detected version and confidence. In the sample, litespeed-cache 6.3 has 'Unauthenticated Privilege Escalation', CVE-2024-28000, rated critical at CVSS 9.8 in the advisory, with a reference such as https://nvd.nist.gov/vuln/detail/CVE-2024-28000. Follow the references to verify the affected range and prerequisites; this issue was fixed in 6.4, so upgrade to a current supported release rather than treating 6.4 as today's recommended version. The other sample plugin sections, akismet 5.3.2 and hello-dolly 1.7.2, show detected versions but no vulnerability match in this illustrative report; confirm their versions and check for updates rather than assuming they are secure. Read each theme section the same way: twentytwentyfour 1.1 has no match in this sample, but still needs version verification and an update check. If a theme CVE appears, record its title, severity, affected version range, fixed version and references before remediation. WPScan may not print severity for every issue, so consult the linked advisory. The user enumeration block lists admin and editor with detection evidence: record validated usernames, review whether author archives or other public endpoints expose them, and use strong passwords and MFA. Discovering a username does not show that the account is compromised. At the end, 'No vulnerabilities found' means no known matches were returned for the detected components and available API data, not that the site is secure: check token validity, quota, scan coverage and potentially missed plugins. If the summary instead lists findings, prioritize confirmed critical and high-severity issues, update or remove affected components, save JSON evidence with --format json -o wpscan.json and rescan after fixes. Any login testing must be explicitly covered by written permission.

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.