Re: [Plugins-writers] Windows Registry Access

From: George A. Theall (theall@private)
Date: Sat May 21 2005 - 10:23:53 PDT


On Wed, May 18, 2005 at 02:25:26PM -0500, MadHat wrote:


> (SYSTEM\CurrentControlSet\Services\SharedAccess 
> \Parameters\FirewallPolicy\StandardProfile\EnableFirewall)
>   If it is   a 1, it is enabled, otherwise it is a 0 and
> not enabled (as far as I   can tell).
...
>      key =
> "SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters
> \FirewallPolicy\StandardProfile\";
>      item = "EnableFirewall";
>      enabled = string(registry_get_sz(key:key, item:item))
> ;

You might double-check this, but I believe the value is a
DWORD (32-bit number) rather than an SZ (string). If so,
you'll want to use registry_get_dword() instead of
registry_get_sz() above.

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 : Sat May 21 2005 - 10:25:16 PDT