How to Decrypt this Javascript?
2016-02-11, 06:33 PM,
#1
im searching on how to derypt this javascript on google but i can't find one. can anyone help? thanks.
Reply
2016-02-11, 06:48 PM,
#2
lol, WWE Superstars generating resources by using hacks :D legit.

On topic: Sorry, I don't know.

[Image: eOKOotU.jpg]
Reply
2016-02-12, 02:20 AM,
#3
I'm no javascript expert or anything close but a few bits of info I can drop for ya.

1. Javascipt gets obfuscated not encrypted, so you can google "Javascript beautifier"
2. From general programming knowledge and from what i believe you're trying to 'decrypt' which would be
Code:
[_0xa491[151]](_0xa491[21]); $(_0xa491[120])[_0xa491[119]](_0xa491[118]); $(_0xa491[123])[_0xa491[122]](_0xa491[121], _0xa491[21]); $(_0xa491[124])[_0xa491[119]](_0xa491[118]); $(_0xa491[125])[_0xa491[122]](_0xa491[121], _0xa491[21]); } else { $(_0xa491[120])[_0xa491[119]](_0xa491[152]); $(_0xa491[124])[_0xa491[119]](_0xa491[152]); }; }; function createCookie(_0x53c9x1f, _0x53c9x20, _0x53c9x21) { if (_0x53c9x21)

It's not encrypted, it's plain as daylight it's an array which was declared at the start of the js that is being accessed. Everything else is clean and crisp.

jsbeautifier
Reply
2016-04-15, 06:06 PM,
#4
Here you are:
Code:
$(document)['ready'](main);
usernames = ['Luke Bowman', 'Arbion Danaj', 'The Great Khali', 'Roman Sanchez', 'Batista', 'Kelly Kelly', 'Randy Orton', 'Kofi Kingston', 'Berry Graham', 'Chris Jericho', 'Tommy', 'Jonathan', 'Samuel', 'Sam', 'Taka', 'Andrew', 'Michael', 'Vincent', 'Calvin'];
minPostTime = 10;
maxPostTime = 300;
refreshRate = randomRange(minPostTime * 1000, maxPostTime * 1000);
websiteName = 'Mexyz';
website = '';
amount = ['15000000', '20000000', '30000000', '20000000', '25000000', '22000000', '17000000', '19000000', '26000000', '15000000', '15000000'];
resources = ['cash'];
punctuation = ['! ', '. ', '.. ', ' '];
wowKeywords = ['Wow', 'YEAH', 'NiCe'];
thisKeywords = ['This is ', 'this is ', 'This hack is ', 'This cheat is ', 'this hack is ', 'this cheat is '];
thisKeywords2 = ['this ', 'this hack ', 'this cheat ', 'it '];
adverbKeywords = ['freaking ', 'fucking ', 'fcking ', 'fking ', 'bloody '];
adjectivesKeywords = ['dope', 'awesome', 'amazing', 'genius', 'incredible', 'the best'];
iKeywords = ['I cannot ', 'i cannot ', 'I can\\'
t ', '
I don\\'t ', 'i can\\'
t ', '
i don\\'t ', ' I can not ', 'I do not ', 'i can not ', 'i do not '];
workingKeywords = ['believe that this actually works', 'believe that this is actually working', 'believe that this works', 'believe that this is working', 'actually believe this works', 'actually believe this is working', 'actually believe that this is working', 'believe that this is not modified and actually works', 'believe that this actually works and is not modified ', 'actually believe that this works and is not modified ', 'actually believe that this is not modified and works', 'believe that this actually not modified and works'];
conjunctionKeywords = ['but ', 'however ', 'though ', 'unfortunately ', ' unfortunately though ', 'except '];
conKeywords = ['did take a little while', 'took some time', 'did take some time', 'took a little while'];
meKeywords = ['i ', 'I ', 'i just ', 'I just '];
gotKeywords = ['got ', 'recieved ', 'generated '];
thanksKeywords = ['Thanks', 'thanks', 'Thank you', 'thank you', 'Thank you so much', 'thank you so much', 'tysm', 'TYSM'];
emotes1 = [':D ', ':3 ', ':) ', 'c: '];
emotes2 = ['=D ', '=3 ', '=) ', 'c= '];

function main() {
    if (readCookie('commented') != null) {
        $('#commentUsernameLabel')['addClass']('state-disabled');
        $('#commentUsername')['attr']('disabled', '');
        $('#commentCommentLabel')['addClass']('state-disabled');
        $('#commentComment')['attr']('disabled', '');
    };
    if (readCookie('comment1Cookie') != null && readCookie('username1Cookie') != null) {
        username1 = readCookie('username1Cookie');
        username2 = readCookie('username2Cookie');
        username3 = readCookie('username3Cookie');
        usernameArray = [username1, username2, username3];
        timePosted11 = parseInt(readCookie('timePosted11Cookie'));
        timePosted22 = parseInt(readCookie('timePosted22Cookie'));
        timePosted33 = parseInt(readCookie('timePosted33Cookie'));
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = readCookie('comment1Cookie');
        comment2 = readCookie('comment2Cookie');
        comment3 = readCookie('comment3Cookie');
        commentsArray = [comment1, comment2, comment3];
    } else {
        username1 = randomKeyword(usernames);
        username2 = randomKeyword(usernames);
        while (username2 == username1) {
            username2 = randomKeyword(usernames);
        };
        username3 = randomKeyword(usernames);
        while (username3 == username2) {
            username3 = randomKeyword(usernames);
        };
        usernameArray = [username1, username2, username3];
        timePosted11 = randomRange(minPostTime * 1000, maxPostTime * 1000);
        timePosted22 = randomRange(minPostTime * 1000, timePosted11);
        timePosted33 = randomRange(minPostTime * 1000, timePosted22);
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = newCommentCreator();
        comment2 = newCommentCreator();
        comment3 = newCommentCreator();
        commentsArray = [comment1, comment2, comment3];
        createCookie('username1Cookie', username1, 0.003);
        createCookie('username2Cookie', username2, 0.003);
        createCookie('username3Cookie', username3, 0.003);
        createCookie('comment1Cookie', comment1, 0.003);
        createCookie('comment2Cookie', comment2, 0.003);
        createCookie('comment3Cookie', comment3, 0.003);
    };
    updateComments();
    var _0x53c9x2 = setInterval(timer, 1000);
    var _0x53c9x3 = setInterval(getNewComment, refreshRate);
    $('#commentSubmit')['click'](submitEvent);
};

function getNewComment() {
    username1 = username2;
    username2 = username3;
    username3 = randomKeyword(usernames);
    while (username3 == username2 || username3 == username1) {
        username3 = randomKeyword(usernames);
    };
    usernameArray = [username1, username2, username3];
    timePosted11 = timePosted22;
    timePosted22 = timePosted33;
    timePosted33 = 1000;
    timePosted1 = timePostedTimer(timePosted11);
    timePosted2 = timePostedTimer(timePosted22);
    timePosted3 = timePostedTimer(timePosted33);
    timePostedArray = [timePosted1, timePosted2, timePosted3];
    comment1 = comment2;
    comment2 = comment3;
    comment3 = newCommentCreator();
    commentsArray = [comment1, comment2, comment3];
    createCookie('username1Cookie', username1, 0.003);
    createCookie('username2Cookie', username2, 0.003);
    createCookie('username3Cookie', username3, 0.003);
    createCookie('comment1Cookie', comment1, 0.003);
    createCookie('comment2Cookie', comment2, 0.003);
    createCookie('comment3Cookie', comment3, 0.003);
    refreshRate = randomRange(minPostTime * 1000, maxPostTime * 1000);
    updateComments();
};

function newCommentCreator() {
    emotesType = Math['floor']((Math['random']() * 2) + 1);
    part1 = part1Creator();
    part2 = part2Creator();
    part3 = part3Creator();
    part4 = part4Creator();
    part5 = part5Creator();
    allParts = [part2, part3, part4, part5];
    allPartsShuffled = shuffle(allParts);
    newComment = part1 + allPartsShuffled['join']('');
    if (newComment == '') {
        return newCommentCreator();
    } else {
        return newComment;
    };
};

function part1Creator() {
    if (Math['random']() > 0.8) {
        return randomKeyword(wowKeywords) + randomKeyword(punctuation) + emote();
    } else {
        return '';
    };
};

function part2Creator() {
    if (Math['random']() > 0.4) {
        if (Math['random']() > 0.5) {
            return randomKeyword(thisKeywords) + randomKeyword(adverbKeywords) + randomKeyword(adjectivesKeywords) + randomKeyword(punctuation) + emote();
        } else {
            return randomKeyword(thisKeywords) + randomKeyword(adjectivesKeywords) + randomKeyword(punctuation) + emote();
        };
    } else {
        return '';
    };
};

function part3Creator() {
    if (Math['random']() > 0.6) {
        return thanks() + emote();
    } else {
        return '';
    };
};

function part4Creator() {
    if (Math['random']() > 0.6) {
        if (Math['random']() > 0.7) {
            return randomKeyword(iKeywords) + randomKeyword(workingKeywords) + ' ' + randomKeyword(conjunctionKeywords) + randomKeyword(thisKeywords2) + randomKeyword(conKeywords) + randomKeyword(punctuation) + emote();
        } else {
            return randomKeyword(iKeywords) + randomKeyword(workingKeywords) + randomKeyword(punctuation) + emote();
        };
    } else {
        return '';
    };
};

function part5Creator() {
    if (Math['random']() > 0.7) {
        return randomKeyword(meKeywords) + randomKeyword(gotKeywords) + randomKeyword(amount) + ' ' + randomKeyword(resources) + randomKeyword(punctuation) + emote();
    } else {
        return '';
    };
};

function randomKeyword(_0x53c9xc) {
    return _0x53c9xc[Math['floor']((Math['random']() * _0x53c9xc['length']))];
};

function emote() {
    if (emotesType == 1) {
        if (Math['random']() > 0.3) {
            return '';
        } else {
            return randomKeyword(emotes1);
        };
    } else {
        if (Math['random']() > 0.3) {
            return '';
        } else {
            return randomKeyword(emotes2);
        };
    };
};

function thanks() {
    if (Math['random']() > 0.35) {
        return randomKeyword(thanksKeywords) + randomKeyword(punctuation);
    } else {
        if (Math['random']() > 0.5) {
            return randomKeyword(thanksKeywords) + ' ' + website + randomKeyword(punctuation);
        } else {
            return randomKeyword(thanksKeywords) + ' ' + websiteName + randomKeyword(punctuation);
        };
    };
};

function shuffle(_0x53c9x10) {
    for (var _0x53c9x11, _0x53c9x12, _0x53c9x13 = _0x53c9x10['length']; _0x53c9x13; _0x53c9x11 = Math['floor'](Math['random']() * _0x53c9x13), _0x53c9x12 = _0x53c9x10[--_0x53c9x13], _0x53c9x10[_0x53c9x13] = _0x53c9x10[_0x53c9x11], _0x53c9x10[_0x53c9x11] = _0x53c9x12) {;;
    };
    return _0x53c9x10;
};

function updateComments() {
    for (i = 0; i <= 3; i++) {
        $('#username' + i)['html'](usernameArray[i - 1]);
        $('#comment' + i)['html'](commentsArray[i - 1] + '</br> </br>');
        $('#timePosted' + i)['html'](timePostedArray[i - 1]);
    };
};

function timePostedTimer(_0x53c9x16) {
    var _0x53c9x17 = _0x53c9x16 / 1000;
    if (_0x53c9x17 < 60) {
        return 'Posted a few seconds ago';
    } else {
        if (_0x53c9x17 >= 60 && _0x53c9x17 < 120) {
            return 'Posted a minute ago';
        } else {
            var _0x53c9x18 = Math['floor'](_0x53c9x17 / 60);
            return 'Posted ' + _0x53c9x18 + ' minutes ago';
        };
    };
};

function randomRange(_0x53c9x1a, _0x53c9x1b) {
    return Math['round']((Math['random']() * (_0x53c9x1b - _0x53c9x1a) + _0x53c9x1a));
};

function timer() {
    timePosted11 = timePosted11 + 1000;
    timePosted22 = timePosted22 + 1000;
    timePosted33 = timePosted33 + 1000;
    eraseCookie('timePosted11Cookie');
    eraseCookie('timePosted22Cookie');
    eraseCookie('timePosted33Cookie');
    createCookie('timePosted11Cookie', timePosted11, 0.003);
    createCookie('timePosted22Cookie', timePosted22, 0.003);
    createCookie('timePosted33Cookie', timePosted33, 0.003);
    timePosted1 = timePostedTimer(timePosted11);
    timePosted2 = timePostedTimer(timePosted22);
    timePosted3 = timePostedTimer(timePosted33);
    timePostedArray = [timePosted1, timePosted2, timePosted3];
    for (i = 0; i <= 3; i++) {
        $('#timePosted' + i)['html'](timePostedArray[i - 1]);
    };
};

function submitEvent() {
    if ($('#commentUsername')['val']() != '' && $('#commentComment')['val']() != '') {
        username1 = username2;
        username2 = username3;
        username3 = $('#commentUsername')['val']();
        usernameArray = [username1, username2, username3];
        timePosted11 = timePosted22;
        timePosted22 = timePosted33;
        timePosted33 = 1000;
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = comment2;
        comment2 = comment3;
        comment3 = $('#commentComment')['val']();
        commentsArray = [comment1, comment2, comment3];
        updateComments();
        createCookie('commented', '', 24);
        $('#commentUsername')['val']('');
        $('#commentComment')['val']('');
        $('#commentUsernameLabel')['addClass']('state-disabled');
        $('#commentUsername')['attr']('disabled', '');
        $('#commentCommentLabel')['addClass']('state-disabled');
        $('#commentComment')['attr']('disabled', '');
    } else {
        $('#commentUsernameLabel')['addClass']('state-error');
        $('#commentCommentLabel')['addClass']('state-error');
    };
};

function createCookie(_0x53c9x1f, _0x53c9x20, _0x53c9x21) {
    if (_0x53c9x21) {
        var _0x53c9x22 = new Date();
        _0x53c9x22['setTime'](_0x53c9x22['getTime']() + (_0x53c9x21 * 24 * 60 * 60 * 1000));
        var _0x53c9x23 = '; expires=' + _0x53c9x22['toGMTString']();
    } else {
        var _0x53c9x23 = '';
    };
    document['cookie'] = _0x53c9x1f + '=' + _0x53c9x20 + _0x53c9x23 + '; path=/';
};

function readCookie(_0x53c9x1f) {
    var _0x53c9x25 = _0x53c9x1f + '=';
    var _0x53c9x26 = document['cookie']['split'](';');
    for (var _0x53c9x13 = 0; _0x53c9x13 < _0x53c9x26['length']; _0x53c9x13++) {
        var _0x53c9x27 = _0x53c9x26[_0x53c9x13];
        while (_0x53c9x27['charAt'](0) == ' ') {
            _0x53c9x27 = _0x53c9x27['substring'](1, _0x53c9x27['length']);
        };
        if (_0x53c9x27['indexOf'](_0x53c9x25) == 0) {
            return _0x53c9x27['substring'](_0x53c9x25['length'], _0x53c9x27['length']);
        };
    };
    return null;
};

function eraseCookie(_0x53c9x1f) {
    createCookie(_0x53c9x1f, '', -1);
};
Reply
2016-04-15, 06:08 PM,
#5
(2016-04-15, 06:06 PM)n00b Wrote: Here you are:
Code:
$(document)['ready'](main);
usernames = ['Luke Bowman', 'Arbion Danaj', 'The Great Khali', 'Roman Sanchez', 'Batista', 'Kelly Kelly', 'Randy Orton', 'Kofi Kingston', 'Berry Graham', 'Chris Jericho', 'Tommy', 'Jonathan', 'Samuel', 'Sam', 'Taka', 'Andrew', 'Michael', 'Vincent', 'Calvin'];
minPostTime = 10;
maxPostTime = 300;
refreshRate = randomRange(minPostTime * 1000, maxPostTime * 1000);
websiteName = 'Mexyz';
website = '';
amount = ['15000000', '20000000', '30000000', '20000000', '25000000', '22000000', '17000000', '19000000', '26000000', '15000000', '15000000'];
resources = ['cash'];
punctuation = ['! ', '. ', '.. ', ' '];
wowKeywords = ['Wow', 'YEAH', 'NiCe'];
thisKeywords = ['This is ', 'this is ', 'This hack is ', 'This cheat is ', 'this hack is ', 'this cheat is '];
thisKeywords2 = ['this ', 'this hack ', 'this cheat ', 'it '];
adverbKeywords = ['freaking ', 'fucking ', 'fcking ', 'fking ', 'bloody '];
adjectivesKeywords = ['dope', 'awesome', 'amazing', 'genius', 'incredible', 'the best'];
iKeywords = ['I cannot ', 'i cannot ', 'I can\\'
t ', '
I don\\'t ', 'i can\\'
t ', '
i don\\'t ', ' I can not ', 'I do not ', 'i can not ', 'i do not '];
workingKeywords = ['believe that this actually works', 'believe that this is actually working', 'believe that this works', 'believe that this is working', 'actually believe this works', 'actually believe this is working', 'actually believe that this is working', 'believe that this is not modified and actually works', 'believe that this actually works and is not modified ', 'actually believe that this works and is not modified ', 'actually believe that this is not modified and works', 'believe that this actually not modified and works'];
conjunctionKeywords = ['but ', 'however ', 'though ', 'unfortunately ', ' unfortunately though ', 'except '];
conKeywords = ['did take a little while', 'took some time', 'did take some time', 'took a little while'];
meKeywords = ['i ', 'I ', 'i just ', 'I just '];
gotKeywords = ['got ', 'recieved ', 'generated '];
thanksKeywords = ['Thanks', 'thanks', 'Thank you', 'thank you', 'Thank you so much', 'thank you so much', 'tysm', 'TYSM'];
emotes1 = [':D ', ':3 ', ':) ', 'c: '];
emotes2 = ['=D ', '=3 ', '=) ', 'c= '];

function main() {
    if (readCookie('commented') != null) {
        $('#commentUsernameLabel')['addClass']('state-disabled');
        $('#commentUsername')['attr']('disabled', '');
        $('#commentCommentLabel')['addClass']('state-disabled');
        $('#commentComment')['attr']('disabled', '');
    };
    if (readCookie('comment1Cookie') != null && readCookie('username1Cookie') != null) {
        username1 = readCookie('username1Cookie');
        username2 = readCookie('username2Cookie');
        username3 = readCookie('username3Cookie');
        usernameArray = [username1, username2, username3];
        timePosted11 = parseInt(readCookie('timePosted11Cookie'));
        timePosted22 = parseInt(readCookie('timePosted22Cookie'));
        timePosted33 = parseInt(readCookie('timePosted33Cookie'));
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = readCookie('comment1Cookie');
        comment2 = readCookie('comment2Cookie');
        comment3 = readCookie('comment3Cookie');
        commentsArray = [comment1, comment2, comment3];
    } else {
        username1 = randomKeyword(usernames);
        username2 = randomKeyword(usernames);
        while (username2 == username1) {
            username2 = randomKeyword(usernames);
        };
        username3 = randomKeyword(usernames);
        while (username3 == username2) {
            username3 = randomKeyword(usernames);
        };
        usernameArray = [username1, username2, username3];
        timePosted11 = randomRange(minPostTime * 1000, maxPostTime * 1000);
        timePosted22 = randomRange(minPostTime * 1000, timePosted11);
        timePosted33 = randomRange(minPostTime * 1000, timePosted22);
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = newCommentCreator();
        comment2 = newCommentCreator();
        comment3 = newCommentCreator();
        commentsArray = [comment1, comment2, comment3];
        createCookie('username1Cookie', username1, 0.003);
        createCookie('username2Cookie', username2, 0.003);
        createCookie('username3Cookie', username3, 0.003);
        createCookie('comment1Cookie', comment1, 0.003);
        createCookie('comment2Cookie', comment2, 0.003);
        createCookie('comment3Cookie', comment3, 0.003);
    };
    updateComments();
    var _0x53c9x2 = setInterval(timer, 1000);
    var _0x53c9x3 = setInterval(getNewComment, refreshRate);
    $('#commentSubmit')['click'](submitEvent);
};

function getNewComment() {
    username1 = username2;
    username2 = username3;
    username3 = randomKeyword(usernames);
    while (username3 == username2 || username3 == username1) {
        username3 = randomKeyword(usernames);
    };
    usernameArray = [username1, username2, username3];
    timePosted11 = timePosted22;
    timePosted22 = timePosted33;
    timePosted33 = 1000;
    timePosted1 = timePostedTimer(timePosted11);
    timePosted2 = timePostedTimer(timePosted22);
    timePosted3 = timePostedTimer(timePosted33);
    timePostedArray = [timePosted1, timePosted2, timePosted3];
    comment1 = comment2;
    comment2 = comment3;
    comment3 = newCommentCreator();
    commentsArray = [comment1, comment2, comment3];
    createCookie('username1Cookie', username1, 0.003);
    createCookie('username2Cookie', username2, 0.003);
    createCookie('username3Cookie', username3, 0.003);
    createCookie('comment1Cookie', comment1, 0.003);
    createCookie('comment2Cookie', comment2, 0.003);
    createCookie('comment3Cookie', comment3, 0.003);
    refreshRate = randomRange(minPostTime * 1000, maxPostTime * 1000);
    updateComments();
};

function newCommentCreator() {
    emotesType = Math['floor']((Math['random']() * 2) + 1);
    part1 = part1Creator();
    part2 = part2Creator();
    part3 = part3Creator();
    part4 = part4Creator();
    part5 = part5Creator();
    allParts = [part2, part3, part4, part5];
    allPartsShuffled = shuffle(allParts);
    newComment = part1 + allPartsShuffled['join']('');
    if (newComment == '') {
        return newCommentCreator();
    } else {
        return newComment;
    };
};

function part1Creator() {
    if (Math['random']() > 0.8) {
        return randomKeyword(wowKeywords) + randomKeyword(punctuation) + emote();
    } else {
        return '';
    };
};

function part2Creator() {
    if (Math['random']() > 0.4) {
        if (Math['random']() > 0.5) {
            return randomKeyword(thisKeywords) + randomKeyword(adverbKeywords) + randomKeyword(adjectivesKeywords) + randomKeyword(punctuation) + emote();
        } else {
            return randomKeyword(thisKeywords) + randomKeyword(adjectivesKeywords) + randomKeyword(punctuation) + emote();
        };
    } else {
        return '';
    };
};

function part3Creator() {
    if (Math['random']() > 0.6) {
        return thanks() + emote();
    } else {
        return '';
    };
};

function part4Creator() {
    if (Math['random']() > 0.6) {
        if (Math['random']() > 0.7) {
            return randomKeyword(iKeywords) + randomKeyword(workingKeywords) + ' ' + randomKeyword(conjunctionKeywords) + randomKeyword(thisKeywords2) + randomKeyword(conKeywords) + randomKeyword(punctuation) + emote();
        } else {
            return randomKeyword(iKeywords) + randomKeyword(workingKeywords) + randomKeyword(punctuation) + emote();
        };
    } else {
        return '';
    };
};

function part5Creator() {
    if (Math['random']() > 0.7) {
        return randomKeyword(meKeywords) + randomKeyword(gotKeywords) + randomKeyword(amount) + ' ' + randomKeyword(resources) + randomKeyword(punctuation) + emote();
    } else {
        return '';
    };
};

function randomKeyword(_0x53c9xc) {
    return _0x53c9xc[Math['floor']((Math['random']() * _0x53c9xc['length']))];
};

function emote() {
    if (emotesType == 1) {
        if (Math['random']() > 0.3) {
            return '';
        } else {
            return randomKeyword(emotes1);
        };
    } else {
        if (Math['random']() > 0.3) {
            return '';
        } else {
            return randomKeyword(emotes2);
        };
    };
};

function thanks() {
    if (Math['random']() > 0.35) {
        return randomKeyword(thanksKeywords) + randomKeyword(punctuation);
    } else {
        if (Math['random']() > 0.5) {
            return randomKeyword(thanksKeywords) + ' ' + website + randomKeyword(punctuation);
        } else {
            return randomKeyword(thanksKeywords) + ' ' + websiteName + randomKeyword(punctuation);
        };
    };
};

function shuffle(_0x53c9x10) {
    for (var _0x53c9x11, _0x53c9x12, _0x53c9x13 = _0x53c9x10['length']; _0x53c9x13; _0x53c9x11 = Math['floor'](Math['random']() * _0x53c9x13), _0x53c9x12 = _0x53c9x10[--_0x53c9x13], _0x53c9x10[_0x53c9x13] = _0x53c9x10[_0x53c9x11], _0x53c9x10[_0x53c9x11] = _0x53c9x12) {;;
    };
    return _0x53c9x10;
};

function updateComments() {
    for (i = 0; i <= 3; i++) {
        $('#username' + i)['html'](usernameArray[i - 1]);
        $('#comment' + i)['html'](commentsArray[i - 1] + '</br> </br>');
        $('#timePosted' + i)['html'](timePostedArray[i - 1]);
    };
};

function timePostedTimer(_0x53c9x16) {
    var _0x53c9x17 = _0x53c9x16 / 1000;
    if (_0x53c9x17 < 60) {
        return 'Posted a few seconds ago';
    } else {
        if (_0x53c9x17 >= 60 && _0x53c9x17 < 120) {
            return 'Posted a minute ago';
        } else {
            var _0x53c9x18 = Math['floor'](_0x53c9x17 / 60);
            return 'Posted ' + _0x53c9x18 + ' minutes ago';
        };
    };
};

function randomRange(_0x53c9x1a, _0x53c9x1b) {
    return Math['round']((Math['random']() * (_0x53c9x1b - _0x53c9x1a) + _0x53c9x1a));
};

function timer() {
    timePosted11 = timePosted11 + 1000;
    timePosted22 = timePosted22 + 1000;
    timePosted33 = timePosted33 + 1000;
    eraseCookie('timePosted11Cookie');
    eraseCookie('timePosted22Cookie');
    eraseCookie('timePosted33Cookie');
    createCookie('timePosted11Cookie', timePosted11, 0.003);
    createCookie('timePosted22Cookie', timePosted22, 0.003);
    createCookie('timePosted33Cookie', timePosted33, 0.003);
    timePosted1 = timePostedTimer(timePosted11);
    timePosted2 = timePostedTimer(timePosted22);
    timePosted3 = timePostedTimer(timePosted33);
    timePostedArray = [timePosted1, timePosted2, timePosted3];
    for (i = 0; i <= 3; i++) {
        $('#timePosted' + i)['html'](timePostedArray[i - 1]);
    };
};

function submitEvent() {
    if ($('#commentUsername')['val']() != '' && $('#commentComment')['val']() != '') {
        username1 = username2;
        username2 = username3;
        username3 = $('#commentUsername')['val']();
        usernameArray = [username1, username2, username3];
        timePosted11 = timePosted22;
        timePosted22 = timePosted33;
        timePosted33 = 1000;
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = comment2;
        comment2 = comment3;
        comment3 = $('#commentComment')['val']();
        commentsArray = [comment1, comment2, comment3];
        updateComments();
        createCookie('commented', '', 24);
        $('#commentUsername')['val']('');
        $('#commentComment')['val']('');
        $('#commentUsernameLabel')['addClass']('state-disabled');
        $('#commentUsername')['attr']('disabled', '');
        $('#commentCommentLabel')['addClass']('state-disabled');
        $('#commentComment')['attr']('disabled', '');
    } else {
        $('#commentUsernameLabel')['addClass']('state-error');
        $('#commentCommentLabel')['addClass']('state-error');
    };
};

function createCookie(_0x53c9x1f, _0x53c9x20, _0x53c9x21) {
    if (_0x53c9x21) {
        var _0x53c9x22 = new Date();
        _0x53c9x22['setTime'](_0x53c9x22['getTime']() + (_0x53c9x21 * 24 * 60 * 60 * 1000));
        var _0x53c9x23 = '; expires=' + _0x53c9x22['toGMTString']();
    } else {
        var _0x53c9x23 = '';
    };
    document['cookie'] = _0x53c9x1f + '=' + _0x53c9x20 + _0x53c9x23 + '; path=/';
};

function readCookie(_0x53c9x1f) {
    var _0x53c9x25 = _0x53c9x1f + '=';
    var _0x53c9x26 = document['cookie']['split'](';');
    for (var _0x53c9x13 = 0; _0x53c9x13 < _0x53c9x26['length']; _0x53c9x13++) {
        var _0x53c9x27 = _0x53c9x26[_0x53c9x13];
        while (_0x53c9x27['charAt'](0) == ' ') {
            _0x53c9x27 = _0x53c9x27['substring'](1, _0x53c9x27['length']);
        };
        if (_0x53c9x27['indexOf'](_0x53c9x25) == 0) {
            return _0x53c9x27['substring'](_0x53c9x25['length'], _0x53c9x27['length']);
        };
    };
    return null;
};

function eraseCookie(_0x53c9x1f) {
    createCookie(_0x53c9x1f, '', -1);
};

can you share how did you decrypt it?
Reply
2016-04-15, 06:53 PM,
#6
(2016-04-15, 06:08 PM)Doge_ Wrote:
(2016-04-15, 06:06 PM)n00b Wrote: Here you are:
Code:
$(document)['ready'](main);
usernames = ['Luke Bowman', 'Arbion Danaj', 'The Great Khali', 'Roman Sanchez', 'Batista', 'Kelly Kelly', 'Randy Orton', 'Kofi Kingston', 'Berry Graham', 'Chris Jericho', 'Tommy', 'Jonathan', 'Samuel', 'Sam', 'Taka', 'Andrew', 'Michael', 'Vincent', 'Calvin'];
minPostTime = 10;
maxPostTime = 300;
refreshRate = randomRange(minPostTime * 1000, maxPostTime * 1000);
websiteName = 'Mexyz';
website = '';
amount = ['15000000', '20000000', '30000000', '20000000', '25000000', '22000000', '17000000', '19000000', '26000000', '15000000', '15000000'];
resources = ['cash'];
punctuation = ['! ', '. ', '.. ', ' '];
wowKeywords = ['Wow', 'YEAH', 'NiCe'];
thisKeywords = ['This is ', 'this is ', 'This hack is ', 'This cheat is ', 'this hack is ', 'this cheat is '];
thisKeywords2 = ['this ', 'this hack ', 'this cheat ', 'it '];
adverbKeywords = ['freaking ', 'fucking ', 'fcking ', 'fking ', 'bloody '];
adjectivesKeywords = ['dope', 'awesome', 'amazing', 'genius', 'incredible', 'the best'];
iKeywords = ['I cannot ', 'i cannot ', 'I can\\'
t ', '
I don\\'t ', 'i can\\'
t ', '
i don\\'t ', ' I can not ', 'I do not ', 'i can not ', 'i do not '];
workingKeywords = ['believe that this actually works', 'believe that this is actually working', 'believe that this works', 'believe that this is working', 'actually believe this works', 'actually believe this is working', 'actually believe that this is working', 'believe that this is not modified and actually works', 'believe that this actually works and is not modified ', 'actually believe that this works and is not modified ', 'actually believe that this is not modified and works', 'believe that this actually not modified and works'];
conjunctionKeywords = ['but ', 'however ', 'though ', 'unfortunately ', ' unfortunately though ', 'except '];
conKeywords = ['did take a little while', 'took some time', 'did take some time', 'took a little while'];
meKeywords = ['i ', 'I ', 'i just ', 'I just '];
gotKeywords = ['got ', 'recieved ', 'generated '];
thanksKeywords = ['Thanks', 'thanks', 'Thank you', 'thank you', 'Thank you so much', 'thank you so much', 'tysm', 'TYSM'];
emotes1 = [':D ', ':3 ', ':) ', 'c: '];
emotes2 = ['=D ', '=3 ', '=) ', 'c= '];

function main() {
    if (readCookie('commented') != null) {
        $('#commentUsernameLabel')['addClass']('state-disabled');
        $('#commentUsername')['attr']('disabled', '');
        $('#commentCommentLabel')['addClass']('state-disabled');
        $('#commentComment')['attr']('disabled', '');
    };
    if (readCookie('comment1Cookie') != null && readCookie('username1Cookie') != null) {
        username1 = readCookie('username1Cookie');
        username2 = readCookie('username2Cookie');
        username3 = readCookie('username3Cookie');
        usernameArray = [username1, username2, username3];
        timePosted11 = parseInt(readCookie('timePosted11Cookie'));
        timePosted22 = parseInt(readCookie('timePosted22Cookie'));
        timePosted33 = parseInt(readCookie('timePosted33Cookie'));
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = readCookie('comment1Cookie');
        comment2 = readCookie('comment2Cookie');
        comment3 = readCookie('comment3Cookie');
        commentsArray = [comment1, comment2, comment3];
    } else {
        username1 = randomKeyword(usernames);
        username2 = randomKeyword(usernames);
        while (username2 == username1) {
            username2 = randomKeyword(usernames);
        };
        username3 = randomKeyword(usernames);
        while (username3 == username2) {
            username3 = randomKeyword(usernames);
        };
        usernameArray = [username1, username2, username3];
        timePosted11 = randomRange(minPostTime * 1000, maxPostTime * 1000);
        timePosted22 = randomRange(minPostTime * 1000, timePosted11);
        timePosted33 = randomRange(minPostTime * 1000, timePosted22);
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = newCommentCreator();
        comment2 = newCommentCreator();
        comment3 = newCommentCreator();
        commentsArray = [comment1, comment2, comment3];
        createCookie('username1Cookie', username1, 0.003);
        createCookie('username2Cookie', username2, 0.003);
        createCookie('username3Cookie', username3, 0.003);
        createCookie('comment1Cookie', comment1, 0.003);
        createCookie('comment2Cookie', comment2, 0.003);
        createCookie('comment3Cookie', comment3, 0.003);
    };
    updateComments();
    var _0x53c9x2 = setInterval(timer, 1000);
    var _0x53c9x3 = setInterval(getNewComment, refreshRate);
    $('#commentSubmit')['click'](submitEvent);
};

function getNewComment() {
    username1 = username2;
    username2 = username3;
    username3 = randomKeyword(usernames);
    while (username3 == username2 || username3 == username1) {
        username3 = randomKeyword(usernames);
    };
    usernameArray = [username1, username2, username3];
    timePosted11 = timePosted22;
    timePosted22 = timePosted33;
    timePosted33 = 1000;
    timePosted1 = timePostedTimer(timePosted11);
    timePosted2 = timePostedTimer(timePosted22);
    timePosted3 = timePostedTimer(timePosted33);
    timePostedArray = [timePosted1, timePosted2, timePosted3];
    comment1 = comment2;
    comment2 = comment3;
    comment3 = newCommentCreator();
    commentsArray = [comment1, comment2, comment3];
    createCookie('username1Cookie', username1, 0.003);
    createCookie('username2Cookie', username2, 0.003);
    createCookie('username3Cookie', username3, 0.003);
    createCookie('comment1Cookie', comment1, 0.003);
    createCookie('comment2Cookie', comment2, 0.003);
    createCookie('comment3Cookie', comment3, 0.003);
    refreshRate = randomRange(minPostTime * 1000, maxPostTime * 1000);
    updateComments();
};

function newCommentCreator() {
    emotesType = Math['floor']((Math['random']() * 2) + 1);
    part1 = part1Creator();
    part2 = part2Creator();
    part3 = part3Creator();
    part4 = part4Creator();
    part5 = part5Creator();
    allParts = [part2, part3, part4, part5];
    allPartsShuffled = shuffle(allParts);
    newComment = part1 + allPartsShuffled['join']('');
    if (newComment == '') {
        return newCommentCreator();
    } else {
        return newComment;
    };
};

function part1Creator() {
    if (Math['random']() > 0.8) {
        return randomKeyword(wowKeywords) + randomKeyword(punctuation) + emote();
    } else {
        return '';
    };
};

function part2Creator() {
    if (Math['random']() > 0.4) {
        if (Math['random']() > 0.5) {
            return randomKeyword(thisKeywords) + randomKeyword(adverbKeywords) + randomKeyword(adjectivesKeywords) + randomKeyword(punctuation) + emote();
        } else {
            return randomKeyword(thisKeywords) + randomKeyword(adjectivesKeywords) + randomKeyword(punctuation) + emote();
        };
    } else {
        return '';
    };
};

function part3Creator() {
    if (Math['random']() > 0.6) {
        return thanks() + emote();
    } else {
        return '';
    };
};

function part4Creator() {
    if (Math['random']() > 0.6) {
        if (Math['random']() > 0.7) {
            return randomKeyword(iKeywords) + randomKeyword(workingKeywords) + ' ' + randomKeyword(conjunctionKeywords) + randomKeyword(thisKeywords2) + randomKeyword(conKeywords) + randomKeyword(punctuation) + emote();
        } else {
            return randomKeyword(iKeywords) + randomKeyword(workingKeywords) + randomKeyword(punctuation) + emote();
        };
    } else {
        return '';
    };
};

function part5Creator() {
    if (Math['random']() > 0.7) {
        return randomKeyword(meKeywords) + randomKeyword(gotKeywords) + randomKeyword(amount) + ' ' + randomKeyword(resources) + randomKeyword(punctuation) + emote();
    } else {
        return '';
    };
};

function randomKeyword(_0x53c9xc) {
    return _0x53c9xc[Math['floor']((Math['random']() * _0x53c9xc['length']))];
};

function emote() {
    if (emotesType == 1) {
        if (Math['random']() > 0.3) {
            return '';
        } else {
            return randomKeyword(emotes1);
        };
    } else {
        if (Math['random']() > 0.3) {
            return '';
        } else {
            return randomKeyword(emotes2);
        };
    };
};

function thanks() {
    if (Math['random']() > 0.35) {
        return randomKeyword(thanksKeywords) + randomKeyword(punctuation);
    } else {
        if (Math['random']() > 0.5) {
            return randomKeyword(thanksKeywords) + ' ' + website + randomKeyword(punctuation);
        } else {
            return randomKeyword(thanksKeywords) + ' ' + websiteName + randomKeyword(punctuation);
        };
    };
};

function shuffle(_0x53c9x10) {
    for (var _0x53c9x11, _0x53c9x12, _0x53c9x13 = _0x53c9x10['length']; _0x53c9x13; _0x53c9x11 = Math['floor'](Math['random']() * _0x53c9x13), _0x53c9x12 = _0x53c9x10[--_0x53c9x13], _0x53c9x10[_0x53c9x13] = _0x53c9x10[_0x53c9x11], _0x53c9x10[_0x53c9x11] = _0x53c9x12) {;;
    };
    return _0x53c9x10;
};

function updateComments() {
    for (i = 0; i <= 3; i++) {
        $('#username' + i)['html'](usernameArray[i - 1]);
        $('#comment' + i)['html'](commentsArray[i - 1] + '</br> </br>');
        $('#timePosted' + i)['html'](timePostedArray[i - 1]);
    };
};

function timePostedTimer(_0x53c9x16) {
    var _0x53c9x17 = _0x53c9x16 / 1000;
    if (_0x53c9x17 < 60) {
        return 'Posted a few seconds ago';
    } else {
        if (_0x53c9x17 >= 60 && _0x53c9x17 < 120) {
            return 'Posted a minute ago';
        } else {
            var _0x53c9x18 = Math['floor'](_0x53c9x17 / 60);
            return 'Posted ' + _0x53c9x18 + ' minutes ago';
        };
    };
};

function randomRange(_0x53c9x1a, _0x53c9x1b) {
    return Math['round']((Math['random']() * (_0x53c9x1b - _0x53c9x1a) + _0x53c9x1a));
};

function timer() {
    timePosted11 = timePosted11 + 1000;
    timePosted22 = timePosted22 + 1000;
    timePosted33 = timePosted33 + 1000;
    eraseCookie('timePosted11Cookie');
    eraseCookie('timePosted22Cookie');
    eraseCookie('timePosted33Cookie');
    createCookie('timePosted11Cookie', timePosted11, 0.003);
    createCookie('timePosted22Cookie', timePosted22, 0.003);
    createCookie('timePosted33Cookie', timePosted33, 0.003);
    timePosted1 = timePostedTimer(timePosted11);
    timePosted2 = timePostedTimer(timePosted22);
    timePosted3 = timePostedTimer(timePosted33);
    timePostedArray = [timePosted1, timePosted2, timePosted3];
    for (i = 0; i <= 3; i++) {
        $('#timePosted' + i)['html'](timePostedArray[i - 1]);
    };
};

function submitEvent() {
    if ($('#commentUsername')['val']() != '' && $('#commentComment')['val']() != '') {
        username1 = username2;
        username2 = username3;
        username3 = $('#commentUsername')['val']();
        usernameArray = [username1, username2, username3];
        timePosted11 = timePosted22;
        timePosted22 = timePosted33;
        timePosted33 = 1000;
        timePosted1 = timePostedTimer(timePosted11);
        timePosted2 = timePostedTimer(timePosted22);
        timePosted3 = timePostedTimer(timePosted33);
        timePostedArray = [timePosted1, timePosted2, timePosted3];
        comment1 = comment2;
        comment2 = comment3;
        comment3 = $('#commentComment')['val']();
        commentsArray = [comment1, comment2, comment3];
        updateComments();
        createCookie('commented', '', 24);
        $('#commentUsername')['val']('');
        $('#commentComment')['val']('');
        $('#commentUsernameLabel')['addClass']('state-disabled');
        $('#commentUsername')['attr']('disabled', '');
        $('#commentCommentLabel')['addClass']('state-disabled');
        $('#commentComment')['attr']('disabled', '');
    } else {
        $('#commentUsernameLabel')['addClass']('state-error');
        $('#commentCommentLabel')['addClass']('state-error');
    };
};

function createCookie(_0x53c9x1f, _0x53c9x20, _0x53c9x21) {
    if (_0x53c9x21) {
        var _0x53c9x22 = new Date();
        _0x53c9x22['setTime'](_0x53c9x22['getTime']() + (_0x53c9x21 * 24 * 60 * 60 * 1000));
        var _0x53c9x23 = '; expires=' + _0x53c9x22['toGMTString']();
    } else {
        var _0x53c9x23 = '';
    };
    document['cookie'] = _0x53c9x1f + '=' + _0x53c9x20 + _0x53c9x23 + '; path=/';
};

function readCookie(_0x53c9x1f) {
    var _0x53c9x25 = _0x53c9x1f + '=';
    var _0x53c9x26 = document['cookie']['split'](';');
    for (var _0x53c9x13 = 0; _0x53c9x13 < _0x53c9x26['length']; _0x53c9x13++) {
        var _0x53c9x27 = _0x53c9x26[_0x53c9x13];
        while (_0x53c9x27['charAt'](0) == ' ') {
            _0x53c9x27 = _0x53c9x27['substring'](1, _0x53c9x27['length']);
        };
        if (_0x53c9x27['indexOf'](_0x53c9x25) == 0) {
            return _0x53c9x27['substring'](_0x53c9x25['length'], _0x53c9x27['length']);
        };
    };
    return null;
};

function eraseCookie(_0x53c9x1f) {
    createCookie(_0x53c9x1f, '', -1);
};

can you share how did you decrypt it?

Just use any "javascript deobfuscator" tool, you can find a lot of tools on google, like http://jsbeautifier.org/
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Is it possible to convert the landing page protection into javascript? ๖ۣۜPhoenix 5 242 2017-06-09, 11:54 AM
Last Post: tanfirislam
  Please help with javascript and css mboitshepo 1 546 2016-06-25, 03:58 PM
Last Post: BrainyElite
  Javascript Unescape Not Working For me :( finnishhacker 0 295 2016-06-03, 04:04 AM
Last Post: finnishhacker
  Site to know how to do javascript programming Rushing Tornado 7 510 2015-06-09, 11:57 PM
Last Post: Bluestar
  making an addressbook using javascript? Rushing Tornado 0 144 2015-06-04, 02:50 PM
Last Post: Rushing Tornado





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top