leonjza / PHPNessusNG

PHP wrapper functions for interfacing with the Nessus V6.x API
MIT License
15 stars 9 forks source link

Guzze import error #9

Closed yoursecurity closed 9 years ago

yoursecurity commented 9 years ago

Line 38 of Call.php seems to have a lowercase mistype error:

use Guzzle\http\Client as HttpClient; PHP Fatal error: Class 'Guzzle\http\Client' not found in xxxxxxxxx/vendor/leonjza/php-nessus-ng/src/Nessus/Nessus/Call.php on line 84

i had to locally fix to

use Guzzle\Http\Client as HttpClient;

leonjza commented 9 years ago

Thanks for the report. Busy with another small fix now and will fix this too. Should be ready to update to a new version later today.

leonjza commented 9 years ago

As soon as its in packagist, this should be fixed in v1.0.2 now.

yoursecurity commented 9 years ago

worked fine... another (unrelated) question: if I call

$nessus = new Nessus\Client($nessus_user, $nessus_pass, $nessus_host); $scans = $nessus->scans()->via('get'); var_dump($scans);

it works fine but instead if I call for the raw

$nessus = new Nessus\Client($nessus_user, $nessus_pass, $nessus_host); $scans = $nessus->scans()->via('get', true); var_dump($scans);

I get an authentication (403) error:

PHP Notice: Trying to get property of non-object in /XXXXXXX/vendor/leonjza/php-nessus-ng/src/Nessus/Nessus/Call.php on line 65 Client error response [status code] 403 [reason phrase] Unauthorized [url] https://localhost:8834/scans/

I am debugging into your code and related dependencies but I cannot understand what i am missing

leonjza commented 9 years ago

I can test this out myself later tonight to have a look. Mind if we create a new issue to track this one?

yoursecurity commented 9 years ago

created https://github.com/leonjza/PHPNessusNG/issues/10

many thanks for your support and API work!

On 25-11-2014 14:34, Leon Jacobs wrote:

I can test this out myself later tonight to have a look. Mind if we create a new issue to track this one?

Reply to this email directly or view it on GitHub [1].

*

Links:

[1] https://github.com/leonjza/PHPNessusNG/issues/9#issuecomment-64399681