how to use WMI to discover disk sizes?

Jason Haar <[email protected]>
Newsgroups gmane.comp.security.nessus.general
Organization Trimble Navigation Ltd.
Message-ID <[email protected]>
Hi there

I'm trying to use "SELECT * FROM Win32_LogicalDisk WHERE DriveType=3 and 
Name='C:'" to discover the disk size of C:, but the result returned is a 
"uint64" according to the WMI docs, and not a string (it can show up as 
"......"). Examples on M$ techpages refer to throwing it through "int()" 
functions - but that doesn't seem to work with Nessus.

Are non-string results supported by NASL, and in any case, is there a 
way of pulling back the size of the harddisk via Nessus?

Thanks

-- 
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1

_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.