Closed edermi closed 6 years ago
Simply dropping all files in a solution and compiling with x64|Release works for me with MSVC. Let me know if you run into any issues, I can also add a solution file if needed.
I'm using Visual Studio Community 2017.
File > New Project > Visual C++ > Empty Project
I added your header files in the solution explorer to "Header Files" and Main.cpp and Native.asm to "Source Files". Building the project for x64|Release gives me 22 unresolved external symbols (the asm functions, e.g. __readss
).
Thanks for your help!
Right-click on your project, go to Build Dependencies
and click on Build Customizations...
. Enable masm(.targets, .props)
and click OK
. Then right-click on Native.asm, go to Properties
and set the item type to Microsoft Macro Assembler
. This should solve your problem.
On another note, to make sure you don't bugcheck:
Properties>C/C++>Code Generation>Security Check (/GS-)
Properties>C/C++>Code Generation>Control Flow Guard
Works fine, thanks for your help and the tips to improve reliability!
Hi can1357, I failed to compile with VS2017, what version of MSVC r u using?
VS2017 as well
it's work, thx. I run the output exe file and got some error:
C:\Users\x\source\repos\CVE-2018-8897\x64\Release>CVE-2018-8897.exe
[[[[[[ Assert Failed: !KvaInfo.KvaShadowFlags.KvaShadowEnabled ]]]]]]
@Malayke read the error?
Hi,
thanks for the exploit. May it be possible to add build instructions?
Thanks!