lundi 27 janvier 2014

[Coding] play.typeracer type-hacking topic




As presented to the other, is "patched" due to a necessary test after typing speed per minute (WPM) greater than 100, by using images (such as a CAPTCHA). Anyway, you can still mess with your friends.

Image


Source
http://pastebin.com/CRPnV8An, or:


Code Javascript

/*
* play.typeracer.com - cheat
 **** @@v1 - 30/03/13
* by kyl3 (www.pastebin.com/u/kyl3)
 
         Hotkeys:
         - Press E for auto-type the next word and auto-send.
         - Press I for automatic call the Hotkey above by X seconds.
*/


ob_Start = (function () {
        (window.Set = (function (w) {
                jQuery('.txtInput')
                        .val(w)
                        .focus()
                        .trigger({
                        type: 'keyup',
                        which: 32
                });
        }))

        (window.Hack = (function () {
                var wId = jQuery('html')
                        .html()
                        .match(/id="nhwMiddlegwt-uid-(.*?)"/gi)[0].split('-')[2].replace(/"/, ""),
                        Word = jQuery('#nhwMiddlegwt-uid-' + wId)
                                .html();
                Set(Word);
                if (jQuery('.txtInput')
                        .hasClass('txtInput-error')) Set(Word += "
,");
        }));

        jQuery(function () {
                jQuery.noConflict();

                jQuery(document)
                        .keydown(function (k) {

                        if (k.keyCode == 69) {
                                Hack();
                                return !1;
                        }

                        if (k.keyCode == 73) {
                                window.D = window.setInterval(function () {
                                        Hack();
                                }, prompt("
Delay (in seconds)", "") * 1000);
                                return !1;
                        }
                });
        });

});

if (!("
jQuery" in window)) {
        console.info("
jQuery ($) not defined");
        var k = document,
                c = k.createElement('script'),
                ref = k.getElementsByTagName('script')&#910]
        c.type = "
text/javascript";
        c.src = "
http://code.jquery.com/jquery-1.9.1.min.js";
        c.onload = function () {
                console.warn("jQuery ($) defined");
                ob_Start();
        }
        ref.parentNode.insertBefore(c, ref);
}
else {
        ob_Start();
}






Aucun commentaire:

Enregistrer un commentaire