Hello,
I tested the class.portscanner from this link:
phpclasses.org/package/7211-PHP-Sca
...
It puts an error:
Parse error: syntax error, unexpected T_PRIVATE in /var/www/tester/security/class.portscanner.php on line 148
At the end is the example as follows:
$ips = "192.168.2.0-192.168.2.5,127.0.1.1";
$prts = "80,3306,30-32";
$portscanner = new PortScanner($ips);
$portscanner->setports($prts);
$portscanner->settimeout("20");
$portscanner->setwait("0", "30");
$portscanner->scan_output(true);
Regards,
Frank