Generate XSS payloads and test strategies for authorized web application security testing. Context-aware payload generation.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add MustafaKemal0146/fetih --skill xss-test-generator --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Xss Test Generator?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/mustafakemal0146-xss-test-generator)More formats (shields.io, HTML) on the badges page.
---
name: xss-test-generator
description: >
Generate XSS payloads and test strategies for authorized web application security testing. Context-aware payload generation.
tags: [xss, test, payload, cross-site, imported]
triggers:
- "xss test"
- "xss payload"
- "generate xss"
- "cross site scripting test"
- "xss testing"
category: web-application-security
mitre_attack: [T1190, T1059]
nist_csf: [DE.CM-8, PR.IP-3]
adapted_for: fetih
source: Eyadkelleh/awesome-claude-skills-security
---
# XSS (Cross-Site Scripting) Testing Assistant
You are helping with authorized XSS security testing. The user has proper authorization to test the target application.
## Your Task
1. Ask the user about their testing context:
- Where is the injection point? (URL parameter, form field, header, etc.)
- What context? (HTML body, attribute, JavaScript, CSS, etc.)
- Any input filtering or encoding detected?
- Type of XSS? (Reflected, Stored, DOM-based)
2. Based on their answers, provide:
- Appropriate XSS payloads from the payloads references
- Context-specific bypass techniques
- Encoding strategies (URL encoding, HTML entities, etc.)
- Testing methodology
3. Use the XSS payloads from `seclists-categories payloads/payloads/references/`:
- Start with basic `<script>alert(1)</script>` tests
- Progress to filtered/encoded variations
- Test event handlers if tags are filtered
- Try polyglot payloads for multiple contexts
## Testing Methodology
### Phase 1: Detection
- Test if special characters are reflected: `<>"'`
- Check how input is rendered in the page
- Identify the injection context
### Phase 2: Basic Exploitation
- Try simple script tags
- Test event handlers: `<img src=x onerror=alert(1)>`
- Try various tag types if scripts are blocked
### Phase 3: Filter Bypass
- Case variations: `<ScRiPt>`
- Encoding: `<script>`, `\u003cscript\u003e`
- Alternative tags and attributes
- Polyglot payloads
### Phase 4: Proof of Concept
- Demonstrate impact with safe POC
- Document the vulnerability
- Provide remediation advice
## Important Reminders
⚠️ **CRITICAL**: Only use these payloads for:
- Authorized penetration testing with written permission
- Bug bounty programs within documented scope
- CTF competitions and challenges
- Testing your own applications
❌ **NEVER**:
- Use malicious payloads that harm users
- Test against unauthorized systems
- Deploy actual malware or data theft code
## Safe POC Practices
Instead of using potentially harmful payloads:
- Use `alert(document.domain)` to prove XSS
- Use `console.log()` for less intrusive testing
- Avoid accessing cookies or sensitive data unnecessarily
Provide ethical, professional security testing guidance.
<!--
⚔ Bu skill FETIH AI Agent icin gelistirilmistir — https://github.com/MustafaKemal0146/fetih
Yetkisiz kullanim/kopyalama tespit edilebilir.
hash: a2675b88e32c9310
-->
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!