SHARE
TWEET

Untitled

a guest Jan 24th, 2020 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var snnifer;
  2. var onsnif=0;
  3. var vissn=0;
  4. var on_off=0;
  5. var on_off_z=0;
  6. var cuentaT=0;
  7. var myconten;
  8. '-----------------------------------------------------';
  9. function crear_HTML(){
  10.     if(document.getElementById("divpirata")===null){
  11. var divpirata = document.createElement("div");
  12. divpirata.setAttribute("id","divpirata");
  13. divpirata.setAttribute("style","position:absolute;width:60%;height:50%;top:1%;left:25%;display:none;background-color:#000000;-webkit-border-radius:7px;z-index:1;overflow-y:scroll;overflow-x:hidden;");
  14. divpirata.innerHTML = "";
  15. document.body.appendChild(divpirata);
  16. onsnif=1;
  17. var controlsnnifer = document.createElement("div");
  18. controlsnnifer.setAttribute("id","controlsnif");
  19. controlsnnifer.setAttribute("style","position:absolute;width:22%;height:5%;top:1%;left:2%;display:block;background-color:#000000;-webkit-border-radius:7px;z-index:1;");
  20. controlsnnifer.innerHTML="<input id='xa' type='button' value='اخفاء' onclick='visiblesniffer();' style='position:relative;top:5px;left:5px;' />&nbsp;&nbsp;&nbsp;&nbsp;<input id='xb' type='button' value='ايقاف' onclick='on_off_sniff();' style='position:relative;top:5px;left:5px;' />&nbsp;&nbsp;&nbsp;&nbsp;<input id='ff' type='button' value='Cancel' onclick='visiblesniffer1();' style='position:relative;top:5px;left:1px;' />";
  21. document.body.appendChild(controlsnnifer);
  22. myconten=1;
  23. var inyectaravatar = document.createElement("div");
  24. inyectaravatar.setAttribute("id","extracdata");
  25. inyectaravatar.setAttribute("style","position:absolute;width:22%;height:15%;top:7%;left:2%;display:block;background-color:#000000;-webkit-border-radius:7px;z-index:1;");
  26. inyectaravatar.innerHTML ="";
  27. document.body.appendChild(inyectaravatar);
  28. myconten=1;
  29.  
  30.     }
  31. }
  32. '---------------------------------------------------------';
  33. function inyectaravatar(){
  34.     document.getElementById("MyVar").value = "currentEmotionValue";
  35. }
  36. '--------------------------------------------------';
  37. function inyectarfuente(){
  38.     document.getElementById("MyVar").value = "fontItemListMC.fontFace";
  39. }
  40. '--------------------------------------------------';
  41. function intermitente(){
  42.     cuentaT = cuentaT + 1;
  43.     switch(cuentaT){
  44.         case 1:
  45.         interM = setInterval(interencendido,10);
  46.         document.getElementById("inyectarT").value="0";
  47.         break;
  48.         case 2:
  49.         clearInterval(interM);
  50.         document.getElementById("inyectarT").value="=";
  51.         cuentaT=0;
  52.         break;
  53.     }
  54. }
  55.  
  56. '--------------------------------------------------';
  57. function interencendido(){
  58.     window.document.topcmm_123flashchat.SetVariable(document.getElementById("MyVar").value,document.getElementById("valorinyector").value);
  59. }
  60. '--------------------------------------------------';
  61. function inyectormultiple(){
  62.     var EditV = document.getElementById("editorSet").value;
  63.     var lineasVEdit = EditV.split('\n');
  64.     for(var i = 0;i < lineasVEdit.length;i++){
  65.         var varcort = lineasVEdit[i];
  66.         var varcortUno = varcort.split('=');
  67.         window.document.topcmm_123flashchat.SetVariable(varcortUno[0],varcortUno[1]);
  68.        
  69.     }
  70.    
  71. }
  72. '--------------------------------------------------';
  73. function control_lines(){
  74.      if(document.getElementById('divpirata').getElementsByTagName('span')[20]==undefined){}else{paqueteX=document.getElementById('divpirata').getElementsByTagName('span')[0];paqueteXx=paqueteX.parentNode;paqueteXx.removeChild(paqueteX);paqueteX=document.getElementById('divpirata').getElementsByTagName('br')[0];paqueteXx=paqueteX.parentNode;paqueteXx.removeChild(paqueteX);paqueteX=document.getElementById('divpirata').getElementsByTagName('br')[0];paqueteXx=paqueteX.parentNode;paqueteXx.removeChild(paqueteX)};
  75. }
  76. '----------------------------------------------------------';
  77. function mysniffer(){
  78.     if(onsnif===1){
  79.         control_lines();
  80.         var elem = document.getElementById("divpirata");
  81.         elem.scrollTop = elem.scrollHeight;
  82.         elem.scrollTop = elem.scrollHeight;
  83.         snnifer = snnifer.toString();
  84.         snnifer =snnifer.replace(/</gi,"&lt;");
  85.         document.getElementById("divpirata").innerHTML=document.getElementById("divpirata").innerHTML += "<span style=color:green;font-size:12px; onclick=myconten&#61;this.innerHTML;mypackfun() >"+snnifer+"</span><br><br>";
  86.     }
  87. }
  88.        
  89. '--------------------------------------------';
  90. function visiblesniffer(){
  91.      vissn=vissn+1
  92.      switch(vissn){
  93.      case 1:
  94.      document.getElementById("divpirata").style.display="block";
  95.      document.getElementById("xa").value="اخفاء";
  96.      break;
  97.      case 2:
  98.      document.getElementById("divpirata").style.display="none";
  99.      document.getElementById("xa").value="اظهار";
  100.      vissn=0;
  101.      break;
  102.      }
  103. }
  104. '----------------------------------------------';
  105. function on_off_sniff(){
  106.     on_off=on_off+1;
  107.     switch(on_off){
  108.     case 1:
  109.     onsnif = 0;
  110.     document.getElementById("xb").value="ايقاف";
  111.     break;
  112.     case 2:
  113.     onsnif = 1;
  114.     document.getElementById("xb").value="تشغيل";
  115.     on_off = 0;
  116.     break;
  117.     }
  118.    
  119. }
  120. '-----------------------------------------------';
  121. function visiblesniffer1(){
  122.      vissn=vissn+1
  123.      switch(vissn){
  124.      case 1:
  125.      document.getElementById("extracdata").style.display="none";
  126.      document.getElementById("ff").value="Cancel";
  127.      break;
  128.      case 2:
  129.      document.getElementById("extracdata").style.display="block";
  130.      document.getElementById("ff").value="Explain";
  131.      vissn=0;
  132.      break;
  133.      }
  134. }
  135. '----------------------------------------------';
  136. function mypackfun(){
  137.     document.getElementById("extracdata").innerHTML="";
  138.     var sid = "";
  139.     var owner_uid = "";
  140.     var user = "";
  141.     var un = "";
  142.     var p = "";
  143.     var nickname = "";
  144.     var ugp = "";
  145.     var msrid = "";
  146.     myconten = myconten.replace(/&lt;/gi,"<");
  147.     myconten = myconten.replace(/&gt;/gi,">");
  148.     if(myconten.indexOf('<TalkMsg')!==-1){
  149.         mystring = new DOMParser();
  150.         myxml = mystring.parseFromString(myconten,"text/xml");
  151.         sid = myxml.getElementsByTagName("TalkMsg")[0].getAttribute("sid");
  152.         owner_uid = myxml.getElementsByTagName("TalkMsg")[0].getAttribute("owner_uid");
  153.         msrid = myxml.getElementsByTagName("TalkMsg")[0].getAttribute("msrid");
  154.         document.getElementById("extracdata").innerHTML= "<span id='mysid' style='position:absolute;color:green;font-size:14px;top:4px;left:4px;'>sid : "+sid+"</span><br><span id='myowner_uid' style='position:absolute;color:green;font-size:14px;top:20px;left:4px;'>Usuario : "+owner_uid+"</span><br><span  id='mymsrid' style='position:absolute;color:green;font-size:14px;top:36px;left:4px;'>room : "+msrid+"</span>";
  155.     }
  156. }
  157. '-----------------------------------------------------';
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top