exploit-xss

exploit-xss is a skill for Claude Code, Codex from crazyMarky/pentest-skills. It costs 71 tokens per session (5,576 once invoked), scanned A, original, Apache-2.0.

A skill for finding and testing cross-site scripting (XSS) vulnerabilities, where unwanted JavaScript is injected into a website.

In plain words
What is it for?
Use it only for authorized testing of reflected, stored, DOM-based, or blind XSS in web applications.
Why use it?
It helps security testers check whether user-controlled values in URLs, forms, headers, or the page can execute injected scripts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

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 skills/crazymarky/pentest-skills/exploit-xss
Any agent
npx skills add crazyMarky/pentest-skills --skill exploit-xss
Clone the repo
git clone --depth 1 https://github.com/crazyMarky/pentest-skills

Made for: Claude Code, Codex.

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 exploit-xss

README.md
[![agentmods](https://agentmods.dev/badge/skills/crazymarky/pentest-skills/exploit-xss.svg)](https://agentmods.dev/skills/crazymarky/pentest-skills/exploit-xss)
Your own site
<a href="https://agentmods.dev/skills/crazymarky/pentest-skills/exploit-xss"><img src="https://agentmods.dev/badge/skills/crazymarky/pentest-skills/exploit-xss.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,576 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.1 $0.00071 $0.05576
Opus 5 $0.00036 $0.02788
Sonnet 5 $0.00014 $0.01115
Haiku 4.5 $0.00007 $0.00558

Measured 6d ago against content hash 6304f9a63ac0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

exploit-xss 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 6d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/blind_xss_tester.py, scripts/csp_detector.py, scripts/framework_xss_tester.py, …), 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.

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.

exploit-xss/SKILL.md · 731 lines

How it starts

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

Cross-Site Scripting (XSS) Detection Skill

⚠️ DANGER - Authorization Required

This skill is for AUTHORIZED SECURITY TESTING ONLY.

You must have:

  • Written permission from the target system owner
  • Legal authorization to test the target
  • A defined scope of testing

Unauthorized XSS testing is ILLEGAL and unethical.


Prerequisites

Required Tools

# XSStrike - Advanced XSS scanner with DOM support
pip install xsstrike
# Or: git clone https://github.com/s0md3v/XSStrike

# Dalfox - Fast XSS scanner with pipeline mode
go install github.com/hahwul/dalfox/v2@latest

# XSpear - XSS testing with WAF bypass
gem install xspear

Python Requirements

# Install required Python packages for built-in scripts
pip install requests beautifulsoup4

# Optional: WebSocket XSS testing
pip install websockets

Optional Tools

# Burp Suite for manual testing
# OWASP ZAP for automated scanning

Quick Start

Basic URL Testing

# Test a URL parameter for XSS
python xsstrike.py -u "https://target.com/search?q=test"

# Fast scanning with Dalfox
dalfox url "https://target.com/search?q=test"

POST Request Testing

# Save POST request to file
dalfox file request.txt

# Or use XSStrike
python xsstrike.py -r request.txt

DOM XSS Testing

# DOM XSS with XSStrike
python xsstrike.py -u "https://target.com/page#test" --dom

# DOM XSS with Dalfox
dalfox url "https://target.com/page#test" --dom

Common Scenarios

1. Basic Parameter Testing (Reflected XSS)

Test URL parameters for reflection and injection:

# Single URL testing
python xsstrike.py -u "https://target.com/search?q=test"

# Dalfox for faster scanning
dalfox url "https://target.com/search?q=test"

# Specify parameter
dalfox url "https://target.com/search" -p q

What to check:

  • Does the input reflect in the HTML response?
  • What is the context (HTML tag, attribute, JavaScript)?
  • Are there any filters/encoding applied?

Read the full file on GitHub · 731 lines

Files

What ships with it

40 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. 6d ago First seen · 731 lines · 71 tokens per session scan A 6304f9a63ac0

Subscribe to this mod's changes

exploit-xss is a skill published in the GitHub repository crazyMarky/pentest-skills (303 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 71 tokens to every session and 5,576 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

pentest-outbound-interaction-oob-detection

Outbound interaction and OOB validation for SSRF callbacks, blind XSS beacons, webhook abuse, XXE/OOB behavior, DNS/HTTP/HTTPS callback correlation, asynchronous server-side interaction proof, and egress validation.

crtvrffnrt/skills · 56 tokens

intuitive-tests

Use this skill whenever the user asks about unit test best practices, test organization, flat test suites, redundant tests, test refactors, pytest/JUnit/Jest/xUnit layout, test taxonomy, flaky tests, coverage quality, fixtures, mocks, parametrization, pruning existing UTs, or "which tests are worth keeping." It…

MiaoDX/intuitive-flow · 154 tokens

browser-automation

Browser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understanding selectors, waiting strategies, and anti-detection patterns. This skill covers Playwright (recommended) and Puppeteer, with patterns for testing, scraping…

agent-skills-hub/agent-skills-hub · 100 tokens

ox-attest-goal

Pursue a customer capability to proven, Attest-backed BDD: author it from the customer's journey, drive the acceptance run to green, then hand to ox-attest-create to mint the honest red/green proof. Use when a user asks to add, improve, prove, or review a BDD/customer capability, or mentions customer flow, acceptance…

sageox/ox · 119 tokens

ox-attest-create

Turn a demonstrated red/green Attest run pair into an honest portable proof. Use when a user asks to attest, prove, stamp, record, publish, or explain a BDD capability's evidence. Inspect ox attest proof and the run artifacts first; use ox attest record only after a real red failure and a green recovery demonstrate…

sageox/ox · 82 tokens

visual-verification

Use for any UI/web project — make the verify gate cover more than unit tests by composing a pipeline (types → unit → design-scan → flow-smoke) and running the built-in yoke flow-smoke gate (landmark + zero console errors + screenshot proof to .yoke/proof/ /, video kept on failure). Catches the unwired-page /…

HECer/yoke · 92 tokens