Hi,

On 07.09.2017 16:47, Nils von Nethen wrote:
> Hello,
> 
> I am currently trying to write my own NASL script which I want to use to
> check if a host running a MySQL Server permits root login with the
> password 'root'.
> 
> I have written a bash script which returns 'works' if the bash script
> can successfully connect to the server, login and execute a sql query.
> 
> Is it possible to execute the bash script from within the NASL script
> and after execution interpret the return code of the bash script?

there is currently only "pread" which returns the full response (not
only the return code) to nasl. See e.g.:

http://michel.arboi.free.fr/nasl2ref/node46.html

or some examples like nikto.nasl or nmap.nasl for the syntax.

> Kind regards,
> 
> Nils von Nethen

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-plugins mailing list
Openvas-plugins@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins

Reply via email to