hfiref0x / VBoxHardenedLoader

VirtualBox VM detection mitigation loader
BSD 2-Clause "Simplified" License
919 stars 275 forks source link

wmic - No instance(s) available #8

Closed Z6543 closed 7 years ago

Z6543 commented 7 years ago

Hi,

I found a low severity issue, and wonder if you could help me to either solve it or point me to the right direction. Whenever wmic csproduct command is issued in a hardened Win7 or Win10 guest, I get "No instance(s) available" error. My problem is that a 3rd party software is relying on this, and crashes because of the error. Let me know what logs are needed to debug this.

As discussed in the other thread, I am currently using virtualbox 5.0.12 and Vboxhardenedloader v 1.2.7, because of the Win10 host. I could not test it on newer versions at the moment.

Any help is appreciated

hfiref0x commented 7 years ago

Because this loader set multiple random values to different areas of system information this maybe not compatible with Windows information mechanisms like WMI. That's not issue of loader, it is expected to work like that. Well I've the same issue as you on real computer without any loaders installed 😄 Try playing with random values in the batch file, for example disable loading of customized bios file by commenting this line in batch file -> %vboxman% setextradata "%1" "VBoxInternal/Devices/pcbios/0/Config/BiosRom" "%vmscfgdir%pcbios.bin" Remember to run this batch script again for your VM to set new settings.

newcomer009 commented 7 years ago

This is not problem of a patch or something related with biosrom. Just in Virtualbox this function isn't working proper. You can find topic at official forum

Z6543 commented 7 years ago

Actually hfiref0x was right, removing biosrom-pcbios.bin part from the VM config did indeed fixed this issue. In that case, wmic csproduct run fine.