Hi Veerendra, I followed this document( http://code.ohloh.net/file?fid=FUi4Z0R3xgX0oCjcpy4vdQq7eec&cid=MQKpc2gZPvw&fp=371826&mpundefined&projSelected=true#L0) step by step.
First download the wmi-1.3.14 tar, untar it, apply three patches, then compile the source and run install script. But I didn't specify the prefix of installation folder. WMI was installed into /usr/lib/. Then recompile openvas library. While I was recompiling openvas library, I didn't see message "found wmiclient, version=1.3.14" or "package wmiclient >= 1.3.14 not found". I'm not sure whether openvas library found wmi installation or not. But I printed the wmi version using "wmi_versioninfo" function, it said "0.0.1". So I guess the wmi is installed successfully. Plus I can use function "wmi_query" without problem. Only those functions related to querying registries have problem. Then I used a VB scirpt from a windows machine to query the target machine's registry, it works. Do you have any idea on this problem? *--* *Yanjin Ding* *Software Engineer* *NOPSEC INC.* *Email: [email protected]* *NopSec helps businesses holistically manage IT security vulnerabilities. www.nopsec.com* On Tue, Aug 27, 2013 at 1:06 AM, Veerendra Ganiger <[email protected]>wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On Tuesday 27 August 2013 02:28 AM, Yanjin Ding wrote: > > Hello Veerendra, > > > > Thank you very much for your reply. I tried the script you attached. > > Below is the output: > > ============ > > User Name : test > > Passwd : test > > Host : 192.168.2.2 > We assume you updated proper username and password properly in the NVT. > > > Connected to host with handle 16241040 > > nasl_wmi_reg_enum_value: WMI query failed > > > > Registry Enum Entries : > > nasl_wmi_reg_get_sz: WMI Registry get failed > > > > Registry Get SZ Value : > > =================== > > > > I also tried using a VB script, which was working fine. I guess the > problem > > probably is the wmi library on my machine doesn't work properly. I'm > using > > wmi-1.3.14(http://www.openvas.org/download/wmi/), > openvas-libraries-6.0.0, > > and Ubuntu 12.10 (x86_64 GNU/Linux). Could you please let me know which > > environment you were running the script on? Thank you very much. > We tested on both Ubuntu 12.04 and 10.04 it works fine, it should work > fine on Ubuntu 12.10 as well. > > Please check did you miss any steps in the document present in > openvas-libraries, openvas-libraries/doc/wmi-howto.txt > > > Thanks! > Veerendra > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJSHDPmAAoJEFdbOg70fJiaoG8H/R9iFMmIp2RBIxHPDWZ/XMZy > mj0sScbCfAw5nifGQKbEdgX47Qh8uQ1YhOp9j4gv8Ew3qOLIyGYOrzzgW2qDth7u > JihefVz83OX8JF7SLI89VNDaYi1V7mcJMfED6D4YO6KPEbzIcJ11crOzX2zUQepE > gYyxp21vtMF+CO9mbtS8UqqoTrlGoADfZgJq69aZGm31Jq7HjQwFTAQm8zt/HVGf > FQiE+VtvIPe9VkVOiIQjfrg8Lf85oNanL80GcwYwasyH3TC033JQ6WzwMa3YGI2l > zUeOKOcK9misIMlz4W8UU0fcaad/2tA9YOTyE5I21LJ6zJVhvZ7DfKkhpthAtWE= > =/pGT > -----END PGP SIGNATURE----- >
_______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
