Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No code execution - MSVCP140.dll #10

Open
Phil-anthropy opened this issue Aug 14, 2019 · 7 comments

Comments

@Phil-anthropy
Copy link

commented Aug 14, 2019

As standard untrusted user running ctftool on Windows 10 VM Version 1809 (OS Build 17763.379) errors -

"The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problems."

"The code execution cannot proceed because vcruntime140.dll was not found. Reinstalling the program may fix this problem."

Need to include dll dependencies in makefile?

Thanks.

@KillerRyuk

This comment has been minimized.

Copy link

commented Aug 14, 2019

Did you run the .exe or compile your own?

@iditabad

This comment has been minimized.

Copy link

commented Aug 14, 2019

I am seeing the same error on an essentially out-of-the-box Win 10 1903 with the .exe from the latest release when I run it via command prompt.

If I run it int PowerShell I get no errors but it returns to the next prompt.

It looks like that's in Visual C++ 2015? Is the redistributable a dependency?

@KillerRyuk

This comment has been minimized.

Copy link

commented Aug 14, 2019

Could be. I know it is installed on the machine I tested on. (10 1903)

@iditabad

This comment has been minimized.

Copy link

commented Aug 14, 2019

I fixed it by installing the x86 version of the Visual C++ 2015 Runtime (I installed the x64 version first and that did not resolve it, which makes sense I suppose as those are different DLLs if I'm not mistaken)

https://www.microsoft.com/en-us/download/details.aspx?id=52685

@taviso

This comment has been minimized.

Copy link
Owner

commented Aug 15, 2019

Hmm, interesting thanks - I didn't know that was a dependency, I'll try to reproduce.

@cloudsbyzeus

This comment has been minimized.

Copy link

commented Aug 15, 2019

Yes they are a dependency, had to install them as well, but for a standard user to execute, the binaries need to be included. https://stackoverflow.com/questions/16779736/include-visual-c-runtime-with-application. It also depends on OS version so multiple files need to be included.

@brink668

This comment has been minimized.

Copy link

commented Aug 16, 2019

I can confirm we just ran into the same issue as well on vanilla 1903 x64 build and when installing x86/x64 c++ runtime it worked.
https://www.microsoft.com/en-us/download/details.aspx?id=52685

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.