BaSs_HaXoR

typerracker.com 1000+ WPM hack

Sep 17th, 2014
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 0. typeracer.com
  2. 1. This method works as of right now and can certify for >1000 WPM
  3. 2. The developers have already been informed and will probably patch it soon
  4.  
  5. ~~~~~Instructions~~~~~
  6. 1. Run the following bookmarklet (tested in chrome):
  7. javascript:function run(){document.getElementsByClassName("gwt-Button")[0].setAttribute("onmousedown","enable()")}function type(){document.getElementsByClassName("txtInput")[0].setAttribute("onkeydown","value=document.getElementsByClassName('nonHideableWords unselectable')[0].childNodes[1].innerHTML+document.getElementsByClassName('nonHideableWords unselectable')[0].childNodes[2].innerHTML.substring(0,1)")}function enable(){c.proc=[];c.XMLHttpRequest.prototype.send=function(e){c.proc.push([this,e]);if(c.proc.length>1)return;e=e.substr(e.indexOf("String|")+"String|".length);e=e.substr(0,e.indexOf("|"));func(e,0)}}function disable(e){for(i=0;i<c.proc.length;i++)c.send.call(c.proc[i][0],c.proc[i][1]);c.XMLHttpRequest.prototype.send=c.send;c.proc=[];e.parentNode.removeChild(e)}function func(e,t){if(t==0){img=new Image;img.src="http://play.typeracer.com/challenge?id="+e;img.onload=function(){func(e,1)};return}if(t==1){c1=document.createElement("canvas");c2=document.createElement("canvas");c1.setAttribute("onclick","window.top.disable(this)");c1.width=img.width;c2.width=img.width;c1.height=img.height;c2.height=img.height;c1x=c1.getContext("2d");c2x=c2.getContext("2d");c1x.drawImage(img,0,0);document.body.appendChild(c1);d1=c1x.getImageData(0,0,img.width-1,img.height-1);bl=[false,false,false,false,false,false,false];for(i=0;i<7;i++)for(i2=(5+i*24)*img.width*4;i2<(5+(i+1)*24)*img.width*4;i2+=4)if(d1.data[i2]<25)bl[i]=true;tmp=img.src;img=new Image;img.src=tmp;img.onload=function(){func(e,2)};return}for(i=0;i<7;i++)if(bl[i]){bl[i]=false;c2x.drawImage(img,0,0);d2=c2x.getImageData(0,0,img.width-1,img.height-1);for(i2=(5+i*24)*img.width*4;i2<(5+(i+1)*24)*img.width*4;i2+=4)if(d2.data[i2]<25)bl[i]=true;if(!bl[i])for(i2=(5+i*24)*img.width*4;i2<(5+(i+1)*24)*img.width*4;i2++)d1.data[i2]=d2.data[i2]}c1x.putImageData(d1,0,0);for(i=0;i<7;i++)if(bl[i]){tmp=img.src;img=new Image;img.src=tmp;img.onload=function(){func(e,2)};return}}c=window.frames[1];c.send=c.XMLHttpRequest.prototype.send
  8. 2. After the race has started, enter javascript:type() into the url bar to activate fast type mode. In fast type mode, press space to jump to the next word.
  9. 3. When the button to load the image captcha (but not the image captcha itself) appears, enter javascript:run() into the url bar to activate the captcha cracker. Next, click the begin (re)test button and scroll down. The captcha will appear at the bottom of the screen. Type the text into notepad, then click the captcha image to continue, then copy-paste back into the text box that appears and hit submit.
  10.  
  11. ~~~Credits~~~
  12. http://www.youtube.com/watch?v=rvWkrnJxo3I (alogsinb)
Add Comment
Please, Sign In to add comment