rdsedmundo

[Patched] JS Habbo GuestBookSpammer (no-compress)

Apr 5th, 2012
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.   By edi472
  3.   (c) 2011
  4.   compressed version: http://pastebin.com/DfRpNk4x
  5. */
  6. function dospammer() {
  7.     e.open("GET", "/home/" + habbo, true);
  8.     e.send();
  9.     e.onreadystatechange = function () {
  10.         if (e.readyState == 4 && e.status == 200) {
  11.             d.getElementsByTagName("html")[0].innerHTML = e.responseText;
  12.             wid = (d.getElementsByClassName("movable widget GuestbookWidget")[0].id).toString().replace("widget-", "");
  13.             app = $$("meta[name=csrf-token]")[0].readAttribute("content");
  14.             new Ajax.Request("/myhabbo/guestbook/add", {
  15.                 parameters: "ownerId=123&message=" + msg + "&scope=0&query=&widgetId=" + wid,
  16.                 onComplete: function () {
  17.                     new Ajax.Request("/account/logout_ok", {
  18.                         parameters: "token=" + app,
  19.                         onComplete: function () {
  20.                             new Ajax.Request("/account/submit", {
  21.                                 onComplete: function () {
  22.                                     new Ajax.Request("/identity/useOrCreateAvatar/" + habboid, {
  23.                                         parameters: "disableFriendLinking=true",
  24.                                         onComplete: function () {
  25.                                             dospammer()
  26.                                         }
  27.                                     })
  28.                                 },
  29.                                 parameters: "credentials.username=" + email + "&credentials.password=" + senha
  30.                             })
  31.                         }
  32.                     })
  33.                 }
  34.             })
  35.         }
  36.     }
  37. }
  38.  
  39. function pickup_infos() {
  40.     Overlay.show();
  41.     habbo = prompt("Digite o Habbo:", "");
  42.     email = prompt("Digite o email:", "");
  43.     senha = prompt("Digite a senha:", "");
  44.     msg = prompt("Digite a mensagem:", "");
  45.     var infos = [habbo, email, senha, msg];
  46.     infos.forEach(function (d) {
  47.         if (infos[d] == null || infos[d] == '') {
  48.             alert("Você preencheu campo(s) inválido(s)");
  49.             if (confirm('Quer tentar novamente?')) {
  50.                 pickup_infos();
  51.             } else {
  52.                 location.reload();
  53.                 bye_f();
  54.             };
  55.         } else {
  56.             Overlay.hide();
  57.             dospammer();
  58.         }
  59.     });
  60. };
  61. var e = new XMLHttpRequest;
  62. var habboid = (habboId);
  63. var d = document;
  64. pickup_infos();
Advertisement
Add Comment
Please, Sign In to add comment