Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
makdosx authored Dec 29, 2017
1 parent bedf52c commit ce68fbe
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@

echo "<input type='button' value='STOP ATTACK' id='button_stop' onclick=window.location.href='/'>";


sleep(1);


Expand Down Expand Up @@ -787,8 +788,18 @@

if ($protocol_u == "TCP")
{
// create socket for connection tcp
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_TCP);
// create socket for connection tcp

if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false)
{
echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n";
}

else
{
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
}

}


Expand All @@ -800,8 +811,21 @@

if ($domain = 'AF_INET' && $type = 'SOCK_DGRAM' && $protocol = 'SOL_UDP')
{
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
}


if (($sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP)) === false)
{
echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n";
}

else
{
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
}

} // end of object class for domain, type and protocol



else
{
Expand Down

0 comments on commit ce68fbe

Please sign in to comment.