web-exploitation

web-exploitation is a skill for Claude Code from DouglasRao/Claude-Pentest-Skills. It costs 124 tokens per session (7,667 once invoked), scanned E, original, MIT.

A security-testing workflow for confirming and exploiting web-application vulnerabilities such as SQL injection, cross-site scripting, file attacks, and access-control flaws.

In plain words
What is it for?
It is for authorized penetration tests and vulnerability assessments of web applications, including testing injection, authentication, file-handling, and server-side execution issues.
Why use it?
It helps security testers move from a suspected weakness to a confirmed result using repeatable phases and saved progress. Use it only on systems you are authorized to test.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is "../../../etc/passwd".

Part of the claude-pentest-skills plugin — 8 skills shipped together

Good fit It is for authorized penetration tests and vulnerability assessments of web applications, including testing injection, authentication, file-handling, and server-side execution issues.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/DouglasRao/Claude-Pentest-Skills
agentmods
npx agentmods add skills/douglasrao/claude-pentest-skills/web-exploitation

Made for: Claude Code.

Or install claude-pentest-skills, the plugin that ships this one along with the rest of its 8 skills.

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 web-exploitation

README.md
[![agentmods](https://agentmods.dev/badge/skills/douglasrao/claude-pentest-skills/web-exploitation/github.svg)](https://agentmods.dev/skills/douglasrao/claude-pentest-skills/web-exploitation)
Your own site
<a href="https://agentmods.dev/skills/douglasrao/claude-pentest-skills/web-exploitation"><img src="https://agentmods.dev/badge/skills/douglasrao/claude-pentest-skills/web-exploitation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for web-exploitation

Your own site · 80×15
<a href="https://agentmods.dev/skills/douglasrao/claude-pentest-skills/web-exploitation"><img src="https://agentmods.dev/badge/skills/douglasrao/claude-pentest-skills/web-exploitation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,667 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 2 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.1 $0.00124 $0.07667
Opus 5 $0.00062 $0.03834
Sonnet 5 $0.00025 $0.01533
Haiku 4.5 $0.00012 $0.00767

Measured 11d ago against content hash 495926b81924, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade E, and why

web-exploitation scanned grade E with 2 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/common_web.sh, scripts/web_exploit.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

[For SQLi → dump db schema, extract credentials if authorized]

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

curl -sk "https://target.com/api/fetch?url=http://169.254.169.254/latest/meta-data/"
skills/web-exploitation/SKILL.md · 749 lines

How it starts

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

Web Exploitation — Offensive Kill Chain

Architecture

scripts/
├── common_web.sh      # Shared functions (logging, has_tool, phase_done, emit_summary)
└── web_exploit.sh     # PHASES 1-8: injection, XSS, file attacks, auth, logic, RCE

Each script:

  • Accepts <TARGET_URL> <OUT> [RECON_OUT] as args
  • RECON_OUT is the output directory from a prior web-recon run (optional but preferred)
  • Uses checkpoints (.phase_X.done) to avoid repeating completed phases
  • Emits a JSON summary via ---EXPLOIT_SUMMARY_JSON--- markers for Claude to parse

Initial Setup — Variables and Context

TARGET="https://target.com"          # base URL (with scheme)
DOMAIN="target.com"                  # bare domain

# If web-recon was run previously, point to its output:
RECON_OUT="$(pwd)/target"            # adjust to actual path; leave empty if no prior recon

PROJECT=$(echo "$DOMAIN" \
  | sed -E 's/\.(com\.br|org\.br|net\.br|gov\.br|com|org|net|io|br|co\.uk|co|uk|fr|de|jp|au|us|ca)$//' \
  | sed 's/\./-/g' | tr '[:upper:]' '[:lower:]')

OUT="$(pwd)/${PROJECT}-exploit"
SCRIPTS="$HOME/.claude/skills/web-exploitation/scripts"

mkdir -p "$OUT"/{sqli,xss,lfi,ssrf,xxe,upload,auth,logic,rce,findings}

Create progress tasks with TaskCreate:

"PHASE 1 — Recon Triage (load prior recon or gather baseline)"
"PHASE 2 — Injection Attacks (SQLi, NoSQLi, SSTI, LDAP)"
"PHASE 3 — XSS (Reflected, Stored, DOM)"
"PHASE 4 — File & Path Attacks (LFI, RFI, Upload Bypass)"
"PHASE 5 — Server-Side Attacks (SSRF, XXE, XSLT)"
"PHASE 6 — Authentication & Session Attacks (JWT, OAuth, Broken Auth)"
"PHASE 7 — Logic & Client-Side Attacks (IDOR, CSRF, Race Condition, Deserialization)"
"PHASE 8 — RCE Confirmation & Report"

Mark each task in_progress when starting, completed when done.


Tool Priority

1. CLI — always first

sqlmap              — automated SQL injection (use -m for URL list from recon)
dalfox              — XSS detection and exploitation
curl                — manual requests (always available as fallback)
ffuf                — parameter fuzzing, content discovery for exploitation
gf                  — filter URLs by vulnerability pattern (sqli, xss, lfi, ssrf, redirect)
qsreplace           — inject payloads into URL parameters
httpx (Go)          — probe response codes, headers for confirmation
nuclei              — targeted exploitation templates
jwt_tool            — JWT attacks (algorithm confusion, key injection, weak secret)

Read the full file on GitHub · 749 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 749 lines · 124 tokens per session scan F 495926b81924

Subscribe to this mod's changes

web-exploitation is a skill published in the GitHub repository DouglasRao/Claude-Pentest-Skills (11 stars, last pushed 5mo ago), licensed MIT. It adds 124 tokens to every session and 7,667 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it E with 2 findings (harvests environment variables, cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories