wp

wp is a command for Claude Code from pashki975/thm-claude-kit. It costs 19 tokens per session (757 once invoked), scanned A, original, MIT.

A command for enumerating and testing WordPress sites with WPScan, a security tool made for WordPress. It starts with low-cost checks before considering login attacks or exploits.

In plain words
What is it for?
Use it during authorized WordPress security assessments to inspect versions and entry points, identify vulnerable components, and choose a matching next test.
Why use it?
It helps reveal users, plugins, themes, exposed files, and likely weaknesses while requiring a specific reason before noisier testing.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/pashki975/thm-claude-kit/wp
Clone the repo
git clone --depth 1 https://github.com/pashki975/thm-claude-kit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wp

README.md
[![agentmods](https://agentmods.dev/badge/commands/pashki975/thm-claude-kit/wp.svg)](https://agentmods.dev/commands/pashki975/thm-claude-kit/wp)
Your own site
<a href="https://agentmods.dev/commands/pashki975/thm-claude-kit/wp"><img src="https://agentmods.dev/badge/commands/pashki975/thm-claude-kit/wp.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 757 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.00757
Opus 5 $0.00010 $0.00378
Sonnet 5 $0.00004 $0.00151
Haiku 4.5 $0.00002 $0.00076

Measured 3d ago against content hash 1a4424b5a4e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/wp.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Attack the WordPress site at: $ARGUMENTS (e.g. http://10.10.x.x or http://blog.thm)

WordPress has its own tool (wpscan) and a distinct attack chain, so this is separate from the generic /enum-web path. Same gating discipline: enumerate cheaply, form a hypothesis about the way in (vulnerable plugin? weak creds? exposed config?), THEN run the heavy/noisy steps.

The gate

Before brute-forcing logins or firing an exploit, say a one-line hypothesis from what enum found:

  • A specific vulnerable plugin/theme version → that CVE is the way in (don't brute logins).
  • A discovered username + a login form → password attack is justified (mind lockout).
  • xmlrpc.php enabled → amplified brute or pingback SSRF may fit. State it, then run only the step that matches. Get a wpscan API token (free) for CVE data: add --api-token <token> to enrich plugin/theme vuln output.

1. CHEAP enumeration — always

  • Passive + light: wpscan --url $ARGUMENTS --enumerate vp,vt,u --plugins-detection passive (vp=vuln plugins, vt=vuln themes, u=users)
  • Read the site: /wp-login.php (version, custom login), /?author=1 (username leak), /readme.html, /wp-content/ listing, robots.txt. Note the WP core version.
  • Check xmlrpc.php: is it enabled? (POST to it — 405 vs 200 tells you).

2. Map versions to known vulns (gate the exploit)

  • Note core, plugin, and theme versions from enum. For anything flagged, verify the CVE actually applies to THIS version before chasing it. searchsploit wordpress <plugin> for local PoCs.
  • Common wins: outdated plugin with auth-bypass/RCE/LFI/SQLi; a theme with file-upload.

3. Credential attack — only if enum gave a username and no easier path

  • wpscan --url $ARGUMENTS -U users.txt -P /usr/share/wordlists/rockyou.txt (wpscan brute uses wp-login by default; add --password-attack xmlrpc if xmlrpc is enabled — faster).
  • Watch for lockout plugins; if present, prefer the CVE path over brute.

4. Authenticated → shell (once you have wp-admin)

  • Appearance → Theme Editor: edit 404.php/header.php of an inactive theme to a PHP webshell, then browse to it. (Or Plugins → upload a malicious plugin zip.)
  • Set up the catch with /listener first, then trigger the shell.
  • Metasploit alt: wp_admin_shell_upload if you prefer.

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 50 lines · 19 tokens per session scan A 1a4424b5a4e0

Subscribe to this mod's changes

wp is a command published in the GitHub repository pashki975/thm-claude-kit (2 stars, last pushed 20d ago), licensed MIT. It adds 19 tokens to every session and 757 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.