| px | top | add code | search | signup | login | help |
The port scanner goes in 5 lines code that is:
for($port = $from; $port <= $to; $port++)
{
$fp = fsockopen("$host", $port);
if ($fp)
{
print("port $port opened \r");
fclose($fp);
}
You can find all the code at http://persoweb.francenet.fr/~tbilger/linux/
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.