2012/6/1 Sebastien Aucouturier <[email protected]>:
> Hi,
>
> is there any reasons for the plugins to use register_host_detail  and not
>  register_product  (and reverse) ?
>
Hi Sebastien,

even though the code shows that register_product() is just a wrapper
around register_host_detail() both functions have different roles.

  - register_host_detail() adds an arbitrary entry to the so-called
"host details database" (AKA asset information DB). You can basically
pass any key/value tuple to this function if you want it to end up in
the host details part of the report.

  - register_product() is a convenient way to add information about a
product (an application) to the host details DB. You can only give a
CPE and the location of the application (like "/usr/bin/XXX" or
"3128/tcp") to this function. This is important since it allows
OpenVAS to tell the user about the exact product (cpe, title,
location...) for which a vuln is reported.

See host_details.inc[1].

HTH
Regards.

[1] 
https://svn.wald.intevation.org/svn/openvas/trunk/openvas-plugins/scripts/host_details.inc

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

Reply via email to