GO KALI FREE
BeginnerTools

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.

#how to use wpscan#what is wpscan#wpscan tutorial#wpscan kali linux#wordpress vulnerability scanner#wpscan cheat sheet#wpscan api token#wordpress security scanner

How to Use WPScan: WordPress Vulnerability Scanning Tutorial

WPScan is a free, open-source black-box WordPress vulnerability scanner. Given

just a site's URL, it identifies the WordPress version, enumerates installed

themes and plugins, discovers usernames, and checks everything it finds against

the WPScan Vulnerability Database for known CVEs. It ships pre-installed on

Kali Linux, which makes it the standard first tool for auditing any WordPress

site — and WordPress powers a huge share of the web, so this is a skill every

web pentester uses constantly.

Only scan WordPress sites you own or have explicit written permission to
test. Running WPScan against a site without authorization is illegal in most
jurisdictions, even if you only run a "read-only" enumeration scan.

What Is WPScan?

WPScan is a command-line security scanner for WordPress. It identifies the WordPress version when possible, looks for recognizable plugins and themes, and checks detected versions against a database of known vulnerabilities. It can also report publicly visible usernames and exposed files so site owners can review what their installation reveals.

WPScan 4, released in May 2026, is the current major version. Run wpscan --version to see which version is installed on your machine. Refreshing the scanner's database does not upgrade the scanner itself.

WPScan is not WP-CLI. WP-CLI manages WordPress: it can update core, configure settings, and manage plugins from the command line. WPScan audits WordPress and reports what it finds; it does not apply the fixes. Every WPScan command in this guide starts with wpscan, not wp.

A remotely detected version is a clue, not an authoritative inventory. A site can reveal its core version while giving away very little about installed plugins or themes. Likewise, an exposed file can be worth reviewing even if it has no associated vulnerability record. WPScan checks for known vulnerabilities; it is not a malware scanner, cannot tell you whether a site has been compromised, and does not discover zero-days or audit custom code for new vulnerabilities.

Why You Need WPScan

You are auditing a WordPress site and need to find outdated versions,

vulnerable plugins, or misconfigurations — WPScan specializes in WordPress

security. It checks core versions, themes, plugins, user enumeration, and

exposed sensitive files against a continuously updated vulnerability

database. A generic web scanner will miss WordPress-specific issues; WPScan

knows exactly where WordPress hides version information, readme files, and

user data, and it maps each finding to a real vulnerability record.

Prerequisites

  • Kali Linux (WPScan pre-installed) or any Linux system with Ruby
  • A free WPScan API token from wpscan.com (needed for vulnerability data)
  • A target you own or have written permission to test
  • Basic understanding of WordPress architecture (themes, plugins, users)
  • WPScan 4: What's New in 2026

    ChangeWhat it means in practice
    New installs use ~/.config/wpscan/Store your configuration and API token there under the account that runs WPScan.
    Upgraded installs keep using ~/.wpscan/If you upgraded an existing installation, check the older location before creating a second configuration file. A token saved in the wrong directory can look like a missing token.
    Mixed detection is the defaultMixed mode adds more targeted requests than passive mode. Set --detection-mode passive explicitly when that is the scope you agreed to.
    WPScan 4.2.0 added --max-response-sizeThe default is 16 MiB per response. The setting limits how much response data WPScan reads, not how many requests it sends. Clues beyond the cap may not be inspected.
    WPScan 4 requires Ruby 3.3 or laterRun ruby -v in the same shell where you launch WPScan, especially if you manage more than one Ruby installation.

    If you manage WPScan with RubyGems, the install command is:

    gem install wpscan
    

    For a Homebrew-managed installation, use:

    brew tap wpscanteam/tap && brew install wpscan
    

    On Kali, stick with the package manager you already use for WPScan unless you intend to switch. Installing a gem alongside the Kali package can leave two wpscan executables on your path. After installing or upgrading, run wpscan --version again to check which one your shell actually launches.

    Installation and API Token Setup

    On Kali Linux, WPScan is already installed. Keep its vulnerability database

    fresh before every assessment:

    wpscan --update
    

    On another system, install it with your package manager or RubyGems:

    sudo apt install wpscan
    # or
    sudo gem install wpscan
    

    Vulnerability data requires a free API token. Register at wpscan.com, copy

    your token, and pass it on every scan with --api-token. Without a token,

    WPScan still enumerates plugins, themes, and users — but it cannot tell you

    whether any of them are actually vulnerable, which is the whole point of the

    scan.

    How to Use WPScan in 6 Steps

    Use these examples only on a lab site you own or have explicit written permission to test. In these examples, https://example.com stands for a lab site you own or have explicit written permission to test.

  • Update WPScan's local database. Refresh the detection data before the first scan. This updates the local metadata WPScan uses to recognize components; the API token in the next step is what lets it retrieve vulnerability details.
  • ```bash

    wpscan --update

    ```

  • Get and save a free API token. Sign up at wpscan.com for a Researcher account if your use is non-commercial. Save the token in scan.yml in your active WPScan configuration directory. Add api_token under the existing cli_options key rather than replacing settings you already use.
  • ```yaml

    cli_options:

    api_token: 'YOUR_API_TOKEN'

    ```

    Keep this file readable only by your account and out of shared repositories. See the WPScan 4 section below if you are unsure which directory your installation uses.

  • Run a gentle first scan. Explicitly choose passive detection so you do not inherit the more probing mixed default. Passive mode still sends HTTP requests; it relies more on clues in ordinary responses.
  • ```bash

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

    ```

  • Read the results in order. Start with the detected WordPress version. Next, review Interesting Findings for items that need context, such as a reachable readme. Finally, look for vulnerable plugins and check whether API lookups succeeded. A missing vulnerability section after a token error is not the same as a successful lookup with no matches.
  • Run a focused plugin and theme follow-up. Use vp and vt to focus on detectable plugins and themes with known vulnerabilities. Compare the results with the installed inventory in the WordPress dashboard. Review user accounts in the dashboard separately; a list of publicly visible names is not an account inventory.
  • ```bash

    wpscan --url https://example.com --detection-mode passive --enumerate vp,vt

    ```

  • Fix what you confirm, then scan again. Update affected components to supported releases that contain the fixes, or remove plugins and themes the site does not need. Verify the installed versions in WordPress, then repeat the relevant scan with the same settings. A finding disappearing after a blocked request or a failed API lookup does not verify the fix.
  • Your First Scan: A Worked Example

    Run a basic scan against a site you own, replacing the URL and token:

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

    WPScan first fingerprints the site: it detects the WordPress version (from

    readme.html, generator tags, and other markers), checks whether XML-RPC is

    enabled, and lists interesting findings such as exposed readme files, debug

    logs, or directory listings. Then it enumerates components and cross-checks

    each one against the vulnerability database.

    A typical result has three kinds of output to read carefully:

  • WordPress version — if it is outdated, WPScan lists the known
  • vulnerabilities for that exact version and the version that fixes them.

  • Interesting findings — misconfigurations such as an exposed
  • wp-config.php backup, an open uploads directory, or XML-RPC being enabled.

    Not every finding is exploitable; verify each one before reporting it.

  • Vulnerable plugins or themes — each entry cites a CVE reference, the
  • affected versions, and the fixed version. The fix is almost always "update

    the plugin or theme" — say so in your report, with the version number.

    Save results for your report instead of scrolling back through terminal

    output:

    wpscan --url https://example.com --api-token YOUR_TOKEN --output results.txt
    wpscan --url https://example.com --api-token YOUR_TOKEN --format json --output results.json
    

    Worked Example: Reading a Real WPScan Report

    Illustrative output: This excerpt uses historical versions and simplified labels to show how to read three findings. It represents a lab instance at example.com that you own or have explicit written permission to test. The fixed versions shown are historical patch points, not recommendations for what to install today.

    [+] URL: https://example.com/
    
    [+] A. WordPress version 6.5.4 identified (outdated)
     | Fixed in: 6.5.5 for the security issue shown on the 6.5 branch
    
    [+] B. Essential Addons for Elementor
     | Detected version: 5.7.1
     | [!] Known vulnerability: privilege escalation
     | CVE reference: CVE-2023-32243
     | Affected versions: 5.4.0 through 5.7.1, inclusive
     | Fixed in: 5.7.2
    
    [+] C. Interesting finding: WordPress readme reachable without signing in
     | Location: https://example.com/readme.html
    

    A. Outdated WordPress core. The scanner believes core is at 6.5.4, which predates the 6.5.5 security release on that branch. Verify the installed version in the WordPress dashboard and use the official WordPress release notes to confirm the patch. If the dashboard shows a newer version than the scan does, check whether a cache is still serving old version clues before concluding the update failed. The fix is to update to a supported WordPress release that includes the patch, not to stop at 6.5.5 simply because that number appears in the report.

    B. Vulnerable plugin. The detected version, 5.7.1, is inside the affected range for CVE-2023-32243. Verify the exact plugin name and installed version in the dashboard, then use the CVE identifier to check the advisory's affected range and first fixed release. Fix it by updating to a supported version that includes the 5.7.2 patch. If the site does not need the plugin, remove it instead. If the scan reports a vulnerable plugin but cannot determine its version, verify the version before marking the finding confirmed.

    C. Interesting finding: exposed readme. The readme was reachable without signing in. That is an exposure to review, not a CVE or reliable proof of the current WordPress version. Verify that the response contains the actual readme: some sites return a successful HTTP status even for a generic error page. If the file does not need to be public, remove it or restrict access through the site's normal web-server configuration. There is no fixed version for this finding; the verification is that the content is no longer publicly reachable, including after the next core update.

    A scan is only as useful as how well you read it. A confirmed vulnerability finding means a known weakness is present, not that anyone has exploited it.

    Enumeration Options: What Each Code Means

    --enumerate takes a comma-separated list of codes. The ones you will use

    most:

    # Enumerate vulnerable plugins only (fast, low noise)
    wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate vp
    
    # Enumerate vulnerable themes only
    wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate vt
    
    # Enumerate users (usernames for later password testing)
    wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate u
    
    # Enumerate config backups (exposed wp-config.php copies leak DB credentials)
    wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate cb
    
    # Everything commonly needed in one pass
    wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate vp,vt,u,cb,tt
    
    CodeEnumerates
    vpVulnerable plugins
    apAll plugins (slower, noisier)
    vtVulnerable themes
    atAll themes
    uUsernames
    cbConfig backups (wp-config.php~ and similar)
    ttTimThumb files

    Start with vp,vt,u on a first pass. Full enumeration (ap,at) sends many

    more requests, takes much longer, and is more likely to get you rate-limited

    or blocked — save it for when the quick pass finds nothing and you have a

    reason to dig deeper.

    How WPScan Enumerates Users

    User enumeration works through the WordPress REST API, author archive pages

    (/?author=1, /?author=2, ...), and login-page behavior. That is why

    --enumerate u is so valuable: it hands you the exact usernames to test in

    the password-attack phase, instead of guessing common names like admin.

    Password Attacks with WPScan

    Once you have usernames, test passwords against them with a wordlist. On Kali,

    rockyou.txt is the standard list (you may need to decompress it first):

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

    Test several discovered usernames at once by passing a usernames file, and

    remember this phase is loud: it generates many login attempts, can lock

    accounts out, and will show up in the target's logs. Only run it with explicit

    permission, and prefer it against a lab target rather than a production site.

    Authenticated Scans: WP-Auth and HTTP Auth

    Use these examples only on a lab instance you own or have explicit written permission to test. The credentials below are placeholders, and example.com stands for the authorized lab host.

    Use --wp-auth login:password when you need a reliable WordPress inventory. It queries the WordPress REST API at /wp-json/wp/v2/plugins and /wp-json/wp/v2/themes. The relevant REST permissions let WPScan read what is installed instead of inferring it from public pages. Use a dedicated lab credential with the permissions needed to read the inventory. If the account cannot read those routes, verify the inventory in the dashboard rather than changing production permissions for the scanner.

    wpscan --url https://example.com --detection-mode passive --wp-auth 'lab-reviewer:EXAMPLE_PASSWORD'
    

    Use --http-auth login:password when the web server puts an HTTP Basic authentication prompt in front of the site. A staging server may require these credentials before it serves any WordPress page. Passing that gate does not sign you into WordPress or grant access to its plugin inventory.

    wpscan --url https://example.com --detection-mode passive --http-auth 'lab-gate:EXAMPLE_PASSWORD'
    

    If a password contains $, single-quote the entire login:password pair so the shell treats it literally. If you use double quotes, escape each dollar sign as \$. Quoting prevents shell expansion; it does not hide a password from shell history or process listings. Use disposable lab credentials over HTTPS, and do not share command transcripts containing real credentials. Neither authentication option replaces the WPScan API token for vulnerability lookups.

    Scanning Many Sites and Automating WPScan

    Keep a targets.txt file with one lab or owned URL per line. Use it as a coverage checklist: before each manual scan, confirm the hostname, the owner's written authorization where needed, and the agreed testing window. Check where the site redirects before proceeding. Automate the handling of saved reports rather than turning a URL list into an unattended scan queue.

    For the examples below, example.com is the lab site you own or have explicit written permission to test. Choose text for a report you plan to read, or JSON for a report another tool will process. Running both commands makes two separate scans.

    wpscan --url https://example.com --detection-mode passive --output results.txt
    wpscan --url https://example.com --detection-mode passive --format json --output results.json
    

    Give each saved run a distinct filename so a rescan does not replace your original evidence. Once you have collected the JSON reports, run this Bash loop in the report directory to check that each file contains a readable JSON object. It requires jq and makes no network requests.

    for report in ./*.json; do
      [ -f "$report" ] || continue
      if jq -e 'type == "object"' "$report" >/dev/null; then
        printf 'Readable JSON: %s\n' "$report"
      else
        printf 'Review report file: %s\n' "$report" >&2
      fi
    done
    

    A readable file is not necessarily a successful scan. For each site, record the scanner version, scan settings, and whether API lookups completed. After applying fixes, rescan the same authorized site and compare the specific components or exposures you changed, not just the total number of findings. Keep reports private: they can contain account names, file locations, and details about software that still needs patching.

    Stealth, Speed, and Reliability Flags

    # Rotate the user agent so requests look less like a scanner
    wpscan --url https://example.com --api-token YOUR_TOKEN --random-user-agent
    
    # Slow down between requests (milliseconds) to avoid rate limits
    wpscan --url https://example.com --api-token YOUR_TOKEN --throttle 1000
    
    # Follow redirects (useful when a site redirects http to https or www)
    wpscan --url https://example.com --api-token YOUR_TOKEN --follow-redirection
    
    # Control how aggressively WPScan fingerprints (passive, aggressive, mixed)
    wpscan --url https://example.com --api-token YOUR_TOKEN --detection-mode aggressive
    

    Passive detection only reads headers and HTML already returned; aggressive

    detection sends extra probes to confirm versions. Mixed (the default) is the

    right starting point for most assessments.

    WPScan Commands Cheat Sheet

    Every scan command in the first table is a manual example for an authorized lab instance of example.com that you own or have explicit written permission to test. Use the protected configuration file for a real API token; YOUR_TOKEN is a placeholder.

    Everyday taskCommand
    Run a first passive scanwpscan --url https://example.com --detection-mode passive
    Update the local databasewpscan --update
    Check the installed versionwpscan --version
    Save text outputwpscan --url https://example.com --detection-mode passive --output results.txt
    Save JSON outputwpscan --url https://example.com --detection-mode passive --format json --output results.json
    Supply a token explicitlywpscan --url https://example.com --detection-mode passive --api-token YOUR_TOKEN

    The short codes below are values for --enumerate. Treat the results as what WPScan could detect, not everything installed on the server. Keep lab traffic attributable and do not use scanner settings to work around security controls.

    Enumeration code or flagMeaning
    vpLooks for detectable plugins with known vulnerabilities.
    apLooks for all plugins WPScan can detect, not just vulnerable ones.
    vtLooks for detectable themes with known vulnerabilities.
    atLooks for all themes WPScan can detect, not just vulnerable ones.
    uEnumerates discoverable WordPress users; it is not a complete account inventory.
    cbChecks for exposed WordPress configuration backups.
    ttChecks for traces of the legacy TimThumb image script.
    --detection-mode passiveRelies on clues from ordinary responses and generally makes fewer targeted requests.
    --detection-mode mixedCombines passive clues with more targeted checks; this is the WPScan 4 default.
    --detection-mode aggressiveRelies more heavily on direct checks and can generate more traffic.
    --throttle 1000Waits 1,000 milliseconds between requests to reduce load during an approved scan.
    --proxy http://127.0.0.1:8080Routes approved lab traffic through a local Burp listener for inspection. The loopback address is the proxy, not the scan target.
    --wp-authSupplies WordPress credentials for REST API inventory.
    --http-authSupplies credentials for HTTP Basic authentication in front of the site.
    --follow-redirectionFollows a redirect to a different host without prompting; confirm that destination is already in scope before using it.
    --ignore-main-redirectDo not follow the main redirect.
    --max-response-size 16Limits the data read per response to 16 MiB on WPScan 4.2.0 or later.

    Troubleshooting WPScan Problems

    ProblemLikely causeFix
    The WordPress version could not be detectedThe page did not reveal a reliable version clue, or WPScan received a cached page, login prompt, or redirect instead of the expected site.Confirm the authorized WordPress base URL and check what it serves. Verify the installed version in the dashboard. An unknown version does not mean WordPress is absent or current.
    No plugins foundPublic responses did not expose recognizable plugin assets, or a cache rewrote the clues WPScan uses.Compare the result with the dashboard's Plugins screen. On an authorized lab site, use the authenticated inventory if you need to reconcile the two.
    No users foundThe public pages did not reveal usable account clues.Check the Users screen with an authorized account. If the goal was to verify that accounts are not publicly visible, record what the passive check could see rather than treating it as a full account audit.
    The request was blockedA firewall or web application firewall (WAF) denied the traffic.Stop and review the denial with the operator. Confirm the expected hostname and agree on a testing window or approved staging environment. Do not change scanner identity to get around the block.
    SSL connect errorThe HTTPS endpoint is unreachable, or the certificate is expired, untrusted, or issued for a different hostname.Check that the URL uses https, is reachable from the scan host, and presents a valid certificate for that hostname with a trusted chain. Fix the TLS problem before retrying.
    Rate limitingThe site limited requests, or WPScan's API quota was reached.Identify which service returned the limit. Pause and respect any retry interval on the site; for an API quota, check your account and wait for the reset. Resume only within the agreed request rate.
    API token errorsA token is missing, invalid, or saved under a different user's configuration directory.Check which account is running WPScan and which configuration directory it uses. Verify or replace the token without printing it. Treat vulnerability data as missing until lookups succeed.
    Ruby errors or database update failuresWPScan may be using an incompatible Ruby, or wpscan --update cannot access its local data or upstream update service.Check ruby -v: WPScan 4 needs Ruby 3.3 or later. Check local permissions and connectivity. If you need to reinstall, use the same path you installed with, such as gem or apt, then retry the update.

    WPScan vs Wordfence vs Nuclei vs Nikto

    These tools look at different layers. Choose based on the question you need to answer, not on which tool reports the most findings.

    ToolWhat it isBest forWPScan's edge/limit
    WPScanA WordPress-specific, database-backed command-line scanner.Checking detected core, plugin, and theme versions against known vulnerability records.Detailed WordPress version and patch context, but not a firewall, malware scanner, or general server audit.
    WordfenceA WordPress plugin that provides a firewall and scanner from inside WordPress.Ongoing site protection and internal file-integrity or malware checks.WPScan provides a separate point-in-time view of what is visible from outside. It does not block traffic or inspect files from inside the installation.
    NucleiA general template-based scanner with WordPress templates.Running approved, repeatable checks across a mix of technologies.WPScan offers a dedicated WordPress inventory and vulnerability workflow; Nuclei coverage depends on the templates selected.
    NiktoA general web-server scanner with some WordPress checks.Reviewing server-level issues such as risky defaults or exposed files.WPScan ties WordPress components to known affected and fixed versions. Nikto is broader at the web-server layer.

    Practice Safely

    Never practice on a live site you do not own. The safe options are a local

    WordPress install on your own machine or VM, or a lab environment built for

    this purpose. Point WPScan at your lab, run the full vp,vt,u,cb,tt pass,

    then deliberately install an outdated plugin and watch WPScan flag it — that

    is how you learn to read real findings instead of just running commands.

    Common Mistakes

  • Running without an API token. You get enumeration but no vulnerability
  • data, so the scan looks clean when it is not.

  • Scanning without permission. Enumeration is still an active test and
  • still needs authorization.

  • Reporting every finding as critical. Verify interesting findings
  • (directory listing, exposed backups) before writing them up, and check the

    fixed version WPScan reports.

  • Jumping straight to full enumeration. Start with vp,vt,u; full
  • plugin/theme enumeration is slow and noisy.

  • Brute-forcing on production. Password attacks can lock accounts and
  • fill logs — lab first, permission always.

    Best Practices

  • Always use an API token, and run wpscan --update before an assessment.
  • Scan in phases: version and interesting findings first, then vp,vt,u,
  • then deeper enumeration only if needed.

  • Use --random-user-agent and --throttle on any target with rate limiting.
  • Save output with --output (and --format json for tooling) so findings
  • are reproducible for your report.

  • Pair WPScan with a general scanner: WPScan for WordPress-specific issues,
  • Nikto or Nuclei for broader web-server checks.

    Keep Learning

  • Nikto Guide: How to Use Nikto for Web Server Vulnerability Scanning in Kali Linux
  • Nuclei Guide: Automated Vulnerability Scanning
  • WhatWeb Guide: Website Fingerprinting & Technology Detection
  • Web Security Fundamentals: OWASP Top 10 and Beyond
  • OWASP Top 10 2025: All 10 Risks Explained With Examples & How to Test Them
  • WPScan
  • Nikto
  • Nuclei
  • Burp Suite
  • Is WPScan Legal and Safe to Use?

    Only scan sites you own or have explicit written permission to test. For someone else's site, get the allowed hostnames, checks, testing window, and stop conditions in writing. A site being publicly reachable does not make it an authorized target. If it redirects to an unapproved host, stop and confirm scope before continuing.

    Enumeration is still an active test in the operational sense: even passive detection sends requests to the site. Practice in an isolated lab first and use the least probing settings that answer your question. Password attacks can lock accounts and trigger alerts. They are not part of this workflow; if you need to validate an account-lockout policy, use a designated test account in an isolated lab rather than a production account.

    WPScan's free Researcher plan is for non-commercial use. If you use WPScan as part of a paid service, such as a client security assessment, you need a commercial license. A client's written permission to test and your license to use the tool are separate requirements. Check the current terms before offering the service. WPScan's own WordPress plugin is no longer actively supported for non-enterprise customers, so use the CLI for this workflow.

    Summary

    WPScan is the premier WordPress security scanner. Success requires an API

    token, a permissioned target, and the right enumeration options: start with

    vp,vt,u, read version and vulnerability findings against their fixed

    versions, and only go deeper (full enumeration, password attacks) when the

    assessment calls for it.

    Knowledge Check

  • What does the WPScan API token add that a local database update does not?
  • Where does a fresh WPScan 4 install store configuration, and which path can an upgraded install keep using?
  • How do passive, mixed, and aggressive detection differ, and which is the WPScan 4 default?
  • A report shows Essential Addons for Elementor at 5.7.1, with affected versions through 5.7.1 and a fix in 5.7.2. What should you verify before marking the issue confirmed and then fixed?
  • What does --enumerate cb check for?
  • What does --wp-auth give WPScan access to that --http-auth alone does not?
  • If WPScan says "The WordPress version could not be detected," what should you check before interpreting the result?
  • Which tool audits a WordPress site for known vulnerabilities, and which tool manages the installation?
  • Answers: 1. The token enables vulnerability lookups; the local update refreshes detection metadata. 2. Fresh installs use ~/.config/wpscan/; upgraded installs can keep using ~/.wpscan/. 3. Passive relies on ordinary responses, mixed adds targeted checks, and aggressive relies more heavily on direct checks; mixed is the default. 4. Confirm the installed version and affected range against the dashboard and advisory, then verify that the installed update contains the fix or that the plugin was removed. 5. Exposed WordPress configuration backups. 6. The WordPress REST plugin and theme inventory, subject to the account's permissions. 7. Check the authorized base URL, what it returns, and the installed version in the dashboard. 8. WPScan audits; WP-CLI manages.

    Frequently Asked Questions

    What is WPScan?

    WPScan is a free, open-source WordPress security scanner that detects outdated versions, vulnerable plugins and themes, weak passwords, and misconfigurations. It is pre-installed on Kali Linux.

    Do I need an API token for WPScan?

    Yes, a free API token from wpscan.com is required to check vulnerabilities against the WPScan Vulnerability Database. Without it, WPScan can still enumerate plugins, themes, and users, but vulnerability detection is severely limited.

    How do I install WPScan?

    WPScan comes pre-installed on Kali Linux. On other systems install it with sudo apt install wpscan or sudo gem install wpscan, then run wpscan --update to refresh the vulnerability database.

    How do you enumerate WordPress plugins with WPScan?

    Use wpscan --url https://example.com --enumerate vp for vulnerable plugins, or --enumerate ap for all plugins. WPScan probes plugin directories and reads readme files to identify installed components.

    How does WPScan enumerate users?

    Use --enumerate u to discover usernames through the WordPress REST API, author archives, and login page behavior. These usernames can then be tested in a password attack with permission.

    How do you brute force WordPress logins with WPScan?

    Use wpscan --url https://example.com --usernames admin --passwords /usr/share/wordlists/rockyou.txt to test passwords against discovered or specified usernames. Only do this on targets you own or have written permission to test.

    How do you avoid being detected by WPScan scans? (i.e. scan more quietly)

    Use --random-user-agent, --throttle 1000 to slow requests, and --detection-mode passive for a lighter fingerprint. Note that no flag makes an unauthorized scan legal — always have permission first.

    What does --enumerate cb do?

    The --enumerate cb flag searches for WordPress configuration backup files (such as wp-config.php~ and wp-config.php.bak) exposed in the web root, which can leak database credentials.

    What common WordPress vulnerabilities does WPScan find?

    WPScan identifies outdated WordPress core versions, vulnerable themes/plugins with known CVEs, exposed wp-config.php backups, directory listing, XML-RPC being enabled, and weak admin credentials.

    Is WPScan free?

    WPScan itself is free and open source. Vulnerability data requires a free API token from wpscan.com; without a token, enumeration still works but vulnerability matching does not.

    How do I use WPScan on Kali Linux?

    Install WPScan through Kali's package manager if it is not already installed. Run wpscan --version to check the installed release and wpscan --update to refresh local detection data. Save a WPScan API token for vulnerability lookups. For your first scan, use the --url and --detection-mode passive options on a lab site you own or have explicit written permission to test. Verify reported versions in the WordPress dashboard before making changes.

    Where does WPScan 4 store its configuration and API token?

    A fresh WPScan 4 installation uses ~/.config/wpscan/. An installation upgraded from an older version keeps using ~/.wpscan/ if it was already configured there. Save the token in the configuration file in the active directory for the user account that runs WPScan, and keep that file private.

    Why does WPScan say "The WordPress version could not be detected"?

    WPScan did not find a reliable version clue in the responses it received. The site may omit version details, or the scanner may have received a cached page, login prompt, or redirect instead of the expected WordPress page. Check the authorized site URL and confirm the installed version in the WordPress dashboard. The message does not establish that WordPress is absent or up to date.

    Is WPScan the same as WP-CLI?

    No. WPScan audits WordPress and matches detected versions against known vulnerabilities. WP-CLI administers WordPress and can manage plugins, settings, and updates. WPScan commands start with wpscan; WP-CLI commands start with wp.

    Can I use WPScan for commercial client work?

    Yes, with a commercial license and explicit written permission from the client to test the sites in scope. The free Researcher plan is for non-commercial use, not scans performed as part of a paid service. Confirm the current license terms before you begin client work.

    Continue Learning

    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.

    Tools · Beginner

    How to Use Dirb: Beginner's Guide to Directory Brute-Forcing in Kali Linux

    Learn how to use Dirb in Kali Linux: run your first directory scan, pick the right wordlist, and read the results — with a worked example and cheat sheet.

    Tools · Intermediate

    How to Use Metasploit: Beginner's Guide to the Metasploit Framework in Kali Linux

    Learn how to use Metasploit in Kali Linux: start msfconsole, search modules, run your first lab exploit, and master Meterpreter with a cheat sheet.

    Tools · Beginner

    How to Use Netcat: Beginner's Guide to the nc Command in Kali Linux

    How to use Netcat (nc) in Kali Linux: test ports, run a listener, grab banners, transfer files, and catch a reverse shell — worked example and cheat sheet.

    Related Security Tools

    Vulnerability Analysis

    WPScan

    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.

    Web Application

    Burp Suite

    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.

    Vulnerability Analysis

    Nikto

    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.

    Web Application

    DIRB

    DIRB is a web content scanner that finds hidden directories, backup files, and other sensitive content on web servers by launching dictionary-based attacks against a target URL. This beginner tutorial shows how to use DIRB in Kali Linux: install it, run your first scan, read the output, switch wordlists, and hand verified findings to the next tool.

    Written by GO KALI FREE Team