I am trying to open as many sockets I can against my mail server to test if it is prown to attack.
I have tried to create 2000 sockets, but I can't seem to get it working and wondering if anyone knows whats going on?
PHP Code:
<?php
$counter = 0;
createsocket:
$socket = socket_create(AF_INET, SOCK_RAW, tcp);
socket_connect($socket, "10.0.0.4", 25);
$counter++;
if ($counter != 2000) {
goto createsocket;
}
sleep(240);
socket_close($socket);
?>