hzqst / VmwareHardenedLoader

Vmware Hardened VM detection mitigation loader (anti anti-vm)
MIT License
1.7k stars 460 forks source link

Build Issue #33

Open Sky370 opened 3 years ago

Sky370 commented 3 years ago

I get MSB8020 issue when I try to build as Release/x64. Do you have any Idea on how to solve this issue? I have already downloaded WDK 10. Screenshot (19)

LightCyan01 commented 3 years ago

install window developer kit

ganya-qwe commented 2 years ago

same for me. I already tried vs 2017, 2019, 2022, different SDK's. same error all the time image

doomedraven commented 1 year ago

is not sdk guys, is WDK https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk then add path to build

Go to project properties -> C/C++ -> General, and add ddk headers path to Additional Include Directories tab. It should be sth like $(WDKPATH)\inc\ddk where $(WDKPATH) is ofc a directory where You have installed WDK.

path example C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\km`

ertemmstein commented 1 year ago

@doomedraven i need a little bit more help. Running windows 10 21h2 version. According this ms doc i have installed vs 2019 enterprise and correct version of sdk is pre selected in vs installer side screen when i pick c++ development package. Then i have installed WDK for Windows 10, version 2004 as it fits for windows 10 21h2. At the end of wdk installation it also installed the wdk vs 2019 extension.

I think, this link should be added to readme section: https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/other-wdk-downloads.md

I dont understand that adding path section. Should i add this path(WDKPATH) variable to windows's env. setting,too? I have added the path to Additional Include Directories but how $(WDKPATH) is recognized by visual studio? image

Another question is on my wdk path, inside km folder there is no inc or ddk folder as you mentioned: image

ertemmstein commented 1 year ago

I did clean install of everthing, it is building now but i got an error image

---- Update ----- Deleting %ManufacturerName%=Standard,NT$ARCH$ line make it to pass this error but now i have another:

image

---- Another Update -------- Adding this line skip all the secure warnings: image

Now i have an another error about SignTask, it is about signing the driver i think: image

doomedraven commented 1 year ago

in my case i just added inside of the VS, nothing outside of that. but that was many months ago, i didn't use it after. , about WDKPATH just see my path example and replace with your version

ertemmstein commented 1 year ago

Thanks, i have managed to build it succesfully and created the script. The script is just working fine inside the vm.