I'm new to writing *.nasl but I believe i can look-up information stored in the knowledge base (KB) and based on the value, I can run code.  The problem is, I'm not sure what's in the KB.  Is there a way to "dump" (or look-up) the contents of the KB for a specific host so I can get an idea of what I can use in my "if" block?


For example, if my host is running CentOS and has a specific RPM / product installed I want to check the config file for that product to make sure it's configured as expected and that the permissions are not world-writable.


EX:

if(description){

....

}


include("host_details.inc");


if(host_runs("CentOS") == "yes"){

  ....code block...

}

exit(0);


Brian

_______________________________________________
Openvas-plugins mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins

Reply via email to