Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Nessus-Users
[Top] [All Lists]

Windows NASL Dword Registry Value Not Printing

Subject: Windows NASL Dword Registry Value Not Printing
Date: Wed, 2 Jan 2008 11:55:24 -0600
I am trying to list the value of a couple of Windows registry settings by 
writing a NASL plugin for Nessus 3.0.6.1 on Windows XP.  I run the custom 
script below in the Nessus GUI but only get the following output for that 
plugin: "general/tcp     Workstation(Enabled)=; Server(Enabled)=       Plugin 
ID : 99990".  It doesn't actually show me the dword registry value (a "1" or a 
"0") for some reason.

I have configured Nessus, for the test, to use administrator credentials on the 
workstation being scanned, and I also run it with "Windows/SMB Accessible 
Registry" and "Windows/Registry cannot be accessed by the scanner" plugins just 
to make sure it is not a registry access issue.

Any ideas as to what might be wrong?

Thanks,
Chris Covington
ccovington@logis.org


### Display SMB Signing Status

if(description)
{
 script_id(99990);
 script_family("TEST");                                 # GUI: The plugin family
 script_name("9990: Display SMB Signing Status");# GUI: The plugin name
 script_summary("Detect SMB Signing");          # GUI: Shown in Plugin Details 
- Short
 script_description("Solution: n/a; Risk Factor: None");# GUI: Shown in Plugin 
Details - Long
 script_category(ACT_GATHER_INFO);
 script_copyright("");

 script_dependencies("netbios_name_get.nasl", "smb_login.nasl",
        "smb_registry_access.nasl", "smb_registry_full_access.nasl");
 script_require_keys("SMB/name", "SMB/login", "SMB/password", "SMB/transport");
 script_exclude_keys("SMB/samba");
 script_require_ports(139, 445);
 exit(0);
}

### Main Program

include("smb_nt.inc");
note="";

reg = 
registry_get_dword(key:"SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters",
 item:"enablesecuritysignature");
note += "Workstation(Enabled)=" + reg;

reg = 
registry_get_dword(key:"SYSTEM\CurrentControlSet\Services\lanmanserver\parameters",
 item:"enablesecuritysignature");
note += ";   " + "Server(Enabled)=" + reg;

security_note(data:note);

_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus

<Prev in Thread] Current Thread [Next in Thread>
  • Windows NASL Dword Registry Value Not Printing, Chris Covington <=