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

From: Renaud Deraison (deraison@private)
Date: Mon Jun 05 2006 - 13:48:57 PDT


On Jun 5, 2006, at 9:13 PM, Young, Keith wrote:

>
> Using the nav_installed.nasl plugin, I have rewritten a Symantec
> Anti-Virus Corporate plugin which will detect
> version/parent/signatures/running/etc and set appropriate kb  
> entries for
> each.
>
> 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. I am getting the following in the nessusd.dump log:
> 	[334](savce_installed.nasl:0x4e12) add: bad type for instruction
> 	[334](savce_installed.nasl:0x4e36) add: bad type for instruction
> 	[334](savce_installed.nasl:0x4e5b) add: bad type for instruction
>
> Since this line does not appear in the Nessus open source version,  
> and a
> Google search turned up nothing, I don't know what the errors mean.
> Anyone have an idea or see an obvious bug in my attached script?

It means you're adding an array (directory). RegQueryValue() returns  
an array with the type as index 0 and the value at index 1.  
Therefore, instead of using 'directory' use 'directory[1]' in  
check_product_version()



					-- Renaud
_______________________________________________
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:49:53 PDT