Re: [Plugins-writers] Windows Registry Access

From: MadHat (madhat@private)
Date: Sat May 21 2005 - 12:58:00 PDT


On May 21, 2005, at 12:23 PM, George A. Theall wrote:
> 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.

Thanks.  I feel stupid.  Trying to do too many thing at once and too  
much copy and paste.

I'll go back into my hole now.

_______________________________________________
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 - 12:58:58 PDT