IWBH_01

javascript vine base station

Mar 24th, 2021 (edited)
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.56 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4.     <title>javascript vine base station</title>
  5.  
  6.     <meta charset="utf-8" />
  7.     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  8.     <meta name="viewport" content="width=device-width, initial-scale=1" />
  9. </head>
  10.  
  11. <body>
  12. <div>
  13.     <h1>javascript vine base station</h1>
  14.     <p>A somewhat grey hat page that will load and run any online javascript file you specify via <span id="haa" ></span>?JSL=[your javascript url here]<br>
  15. <br>
  16. If your script is code with no syntax errors and it's not a javascript mimetype file then you may need to prefix the url with a cors-breaking-proxy
  17. </p>
  18. </div>
  19. <script type="text/javascript">
  20. (function(){
  21. var L=self.location.href,L2,q=L.indexOf("?");
  22.  
  23. if(q+1){
  24.  L2=L.substr(0,q);
  25.  
  26.  var e=L.substr(q+1).split("&"),i=e.length,c,c2,f;
  27.  while(i--){ c=e[i]; c2=c.indexOf("="); if(c.substr(0,c2).toLowerCase()=="jsl") f=decodeURIComponent(c.substr(c2+1));
  28.   if(f){ var jse=document.createElement("script");
  29.    jse.onerror=function(){ //in case of mime type checking
  30.      var ft=f.split("/"); if(!((ft[0]=="http"||ft[0]=="https")&&ft[1]=="")) return 0;
  31.      var xhr=new XMLHttpRequest();
  32.      xhr.open("GET",f,!0);
  33.      xhr.responseType="text"; xhr.onload=function(){  jse=document.createElement("script");  jse.innerHTML=xhr.response.replace(/\<\/script\>/g,"<\\/script>"); document.body.appendChild(jse); };
  34.      xhr.send();
  35.    };
  36.    jse.src=f; document.body.appendChild(jse);
  37.   }
  38.  }
  39. }else L2=L;
  40.  
  41.  document.getElementById("haa").innerText=L2;
  42. })();
  43. </script>
  44. </body>
  45. </html>
Add Comment
Please, Sign In to add comment