# pentest-agents-payloads-1

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.

- rule · `type=rule` · Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Cline · ★ 1298 repo stars
- Author: H-mmer
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/windsurf/.windsurf/rules/pentest-agents-payloads-1.md
- Updated: 2026-06-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/pentest-agents-payloads-1

## What it 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.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/pentest-agents-payloads-1.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/pentest-agents-payloads-1.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/pentest-agents-payloads-1.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/pentest-agents-payloads-1.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/pentest-agents-payloads-1.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/windsurf/.windsurf/rules/pentest-agents-payloads-1.md

## When to use it
- 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
- Check the `search` field for XSS using basic payloads from the rule
- If `alert` is blocked, rotate detectors up to tier 4
- Build a triple-layer payload for Akamai bypass following the `pentest-agents-payloads-1` example

## Similar
- [security-payloads](https://affpapa.org/en/nevibecode/skills/security-payloads.md) — skill · 643 installs
- [waf-bypass-techniques](https://affpapa.org/en/nevibecode/skills/waf-bypass-techniques.md) — skill · 4200 installs
- [xss-cross-site-scripting](https://affpapa.org/en/nevibecode/skills/xss-cross-site-scripting.md) — skill · 4300 installs
- [web-security-scanner-pro](https://affpapa.org/en/nevibecode/skills/web-security-scanner-pro.md) — skill · 612 installs
- [supabase-pentest](https://affpapa.org/en/nevibecode/skills/supabase-pentest.md) — skill · 748 installs
- [web-pentest](https://affpapa.org/en/nevibecode/skills/web-pentest.md) — skill · 722 installs

From the same set: [h-mmer/pentest-agents](https://affpapa.org/en/nevibecode/by/h-mmer/pentest-agents.md) — 43 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
