Thanks Christian, I tried your solution and it worked also. But I was
trying on port 443 and wanted to retrieve openssl version installed.
But on accessing method get_http_banner(443), it gives 400 bad request
error and doesnt give any information about openssl version installed.

Can you help me with this.

Thanks,
Nikita

On Fri, May 19, 2017 at 11:54 PM, Christian Fischer <
[email protected]> wrote:

> Hi,
>
> On 19.05.2017 19:41, Nikita Gupta wrote:
> > I was trying to execute single script from host machine using command:
> > openvas-nasl -X scriptname.nasl
> >
> > But if the script uses default api call of "get_kb_list" or
> > "get_kb_item" then it returns nothing and script stops.
> > And because of which I am unable to execute individual scripts.
> >
> > For example: get_kb_list( "Services/www" ); returns nothing.
>
> Services/* is a KB entry which is set by other scripts (e.g.
> Services/www is set by find_service.nasl).
>
> If you're running a script from command line which relies on this
> "Services/www" you need to set it in your openvas-nasl call like:
>
> openvas-nasl -X scriptname.nasl --kb="Services/www=80"
>
> Regards,
>
> --
>
> Christian Fischer | PGP Key: 0x54F3CE5B76C597AD
> Greenbone Networks GmbH | http://greenbone.net
> Neumarkt 12, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460
> Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
> _______________________________________________
> Openvas-discuss mailing list
> [email protected]
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss




-- 
Regards,
Nikita Gupta
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to