pentest-agents-payloads-1 — Claude Code rule: XSS payloads reference
pentest-agents-payloads-1 is a Claude Code rule that loads an XSS payload reference for pentesting, from basic vectors to WAF bypass via stacked encoding.
no license ★ 1,298 updated 2026-06-12
.claude/rules/pentest-agents-payloads-1.mdWhat pentest-agents-payloads-1 does
The rule loads an XSS vector library into the agent's context, organized by scenario: basic injections, WAF bypass through DOM encoding, context-specific variants for attributes and JS strings. When alert(1) gets blocked by a WAF or overridden by the page, a seven-tier detector rotation is provided — from prompt and console.log to DOM mutation and OOB callbacks via fetch.
The signature technique is triple-layer encoding for Akamai and Cloudflare: an HTML entity hides the javascript: keyword, URL escaping masks unicode sequences, and the final decodeURIComponent in client-side JS unpacks the payload inside the app, bypassing WAF regex filters. The agent does not send payloads itself without tools like Burp or OWASP ZAP.
What it helps with
- test a form for XSS with all basic vectors
- bypass a WAF when
alert(1)is blocked - prove code execution via DOM marker or OOB callback
- test injection in a JS string or attribute context
Example prompts for the agent
- Check the
searchfield for XSS using basic payloads from the rule - If
alertis blocked, rotate detectors up to tier 4 - Build a triple-layer payload for Akamai bypass following the
pentest-agents-payloads-1example
How to install pentest-agents-payloads-1
Manually: put the files in place
.claude/rules/pentest-agents-payloads-1.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/pentest-agents-payloads-1.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/pentest-agents-payloads-1.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/pentest-agents-payloads-1.mdManually: put the files in place
.clinerules/pentest-agents-payloads-1.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about pentest-agents-payloads-1
How to install pentest-agents-payloads-1 in Claude Code?
Create the file .claude/rules/pentest-agents-payloads-1.md and place the rule text inside.
What does pentest-agents-payloads-1 do?
It gives the agent an XSS payload reference: basic injections, WAF bypass techniques, seven detector rotation tiers, and a triple-encoding scheme for Akamai.
Why seven detector tiers?
alert(1) is blocked by 70 % of WAFs and often overridden by pages. Rotating through prompt, console.log, DOM mutation and OOB callbacks lets you prove execution when the standard detector fails.