PHP Classes

Port scanner class

Recommend this page to a friend!

      PortScanner  >  All threads  >  Port scanner class  >  (Un) Subscribe thread alerts  
Subject:Port scanner class
Summary:Error message
Messages:3
Author:Frank108
Date:2011-11-15 07:45:20
Update:2013-12-12 07:03:23
 

  1. Port scanner class   Reply   Report abuse  
Picture of Frank108 Frank108 - 2011-11-15 07:45:20
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

  2. Re: Port scanner class   Reply   Report abuse  
Picture of Ammar Shaikh Ammar Shaikh - 2011-11-15 17:26:41 - In reply to message 1 from Frank108
I am able to execute the class exactly as it should.
I have even attached the screenshot of the output.
If you can tell me what is line 184 that gives the error, maybe I can help

Thank you very much for the review. I really appreciate that you took time to test my class.

--
Peace
Ammar Shaikh

  3. Re: Port scanner class   Reply   Report abuse  
Picture of napi napi - 2013-12-12 07:03:23 - In reply to message 1 from Frank108
there are missing close curly bracket for private function waitfor($time){...