Advertisement
austinh115

[JS] Xavi Bot Eyes

Aug 26th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /***
  2.  * Press F12 while on a chat to open inspect element
  3.  * Switch to console tab
  4.  * Paste function post(...) { ... }
  5.  * and var test = ...
  6.  * into the console and then hit enter.
  7.  * After that, scroll down to the next set of instructions.
  8.  ***/
  9.  
  10. function post(path, params, method) {
  11.     method = method || "post"; // Set method to post by default if not specified.
  12.  
  13.     // The rest of this code assumes you are not using a library.
  14.     // It can be made less wordy if you use one.
  15.     var form = document.createElement("form");
  16.     form.setAttribute("method", method);
  17.     form.setAttribute("action", path);
  18.  
  19.     for(var key in params) {
  20.         if(params.hasOwnProperty(key)) {
  21.             var hiddenField = document.createElement("input");
  22.             hiddenField.setAttribute("type", "hidden");
  23.             hiddenField.setAttribute("name", key);
  24.             hiddenField.setAttribute("value", params[key]);
  25.  
  26.             form.appendChild(hiddenField);
  27.          }
  28.     }
  29.  
  30.     document.body.appendChild(form);
  31.     form.submit();
  32. }                                                  
  33.  
  34. var test =
  35. {"xavi":[{"hair":{"x":0,"r":0,"sx":0,"l":"hair1","y":-25,"c":1,"sy":0},"browsl":{"x":0,"r":0,"sx":0,"l":"xbrowdefault","y":-10,"c":0,"sy":0},"head":{"x":0,"r":0,"sx":0,"l":"xhead2","y":0,"c":16571071,"sy":0},"acc":{"x":0,"r":0,"sx":0,"l":"none","y":0,"c":0,"sy":0},"browsr":{"x":0,"r":0,"sx":0,"l":"xbrowdefault","y":-10,"c":0,"sy":0},"xeyer":{"x":-2,"r":0,"sx":4,"l":"xeyebot1","y":0,"c":0,"sy":-10},"mouth":{"x":0,"r":0,"sx":18,"l":"xmouthdefault","y":13,"c":0,"sy":0},"xeyel":{"x":2,"r":0,"sx":4,"l":"xeyebot1","y":0,"c":0,"sy":-10}}],"timestamp":1494318259,"items":{"hair":{"4":1},"hat":{"2":1,"6":1,"22":1,"24":1,"39":1}}};
  36.  
  37. /***
  38.  * You will need a packet sniffer for this step.
  39.  * If you do not have WPE, WireShark, or something similar, please get it now.
  40.  * If you do not know how to use them, please look up a video, etc. before asking questions.
  41.  *
  42.  * this is the packet you receive after sending <y
  43.  *
  44.  * <y I="32570" i="287888575" c="1419127432" cb="63" p="100_100_5_100" k="32570" t="10008" s="60" j="32570" au="459703507" v="2"
  45.  *
  46.  * You will get the same, but with different values.
  47.  * Input them below to their respective place.
  48.  * u: YOUR_ID,
  49.  * You can leave au, v, and j as undefined.
  50.  ***/
  51.  
  52. post("http://xat.com/json/xavi/put.php", {
  53. k:32570,
  54. u:638877683,
  55. au:undefined,
  56. i:287888575,
  57. v:undefined,
  58. s:60,
  59. j:undefined,
  60. t:10008,
  61. xavi:JSON.stringify(test)
  62. });
  63.  
  64. /***
  65.  * After you have replaced the values,
  66.  * Paste post(..., { ... }) into the console and hit enter.
  67.  * Re-open the app and modify whatever you want.
  68.  * If you change the eyes, you will have to restart this process all over again.
  69.  ***/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement