Re: [Plugins-writers] Symantec Anti-Virus Corporate plugin

From: George A. Theall (theall@private)
Date: Mon Jun 05 2006 - 13:51:30 PDT


On Mon, Jun 05, 2006 at 03:13:50PM -0400, Young, Keith wrote:

> I am so close to have a working plugin, however the version and parent
> strings are not getting detected correctly even though the registry
> entries are valid. 
...
  parent = RegQueryValue(handle:key_h, item:item);
...
  set_kb_item(name: "Antivirus/SAVCE/parent", value:parent);

Here's one problem -- ReqQueryValue() returns an array while set_kb_item
wants a string for the value parameter. You may want to do something
like this to get 'parent':

  value = RegQueryValue(handle:key_h, item:item);
  if (isnull(value)) parent = NULL;
  else parent = value[1];


George
-- 
theall@private
_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Mon Jun 05 2006 - 13:53:27 PDT