Skip to content

Instantly share code, notes, and snippets.

@cianmce
Created February 18, 2018 14:31
Show Gist options
  • Save cianmce/bc4ede289eba9eb34c5ef499ac3298eb to your computer and use it in GitHub Desktop.
Save cianmce/bc4ede289eba9eb34c5ef499ac3298eb to your computer and use it in GitHub Desktop.
alert(document.currentScript.getAttribute('msg') || document.currentScript.getAttribute('src').split('msg=')[1] || "XSS!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment