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

Compile CVE 2017-0213 #12

Open
ricardojruiz opened this issue Nov 10, 2018 · 0 comments
Open

Compile CVE 2017-0213 #12

ricardojruiz opened this issue Nov 10, 2018 · 0 comments

Comments

@ricardojruiz
Copy link

Hi. I am trying to compile the cpp with Visual Studio 2017 but the output is like the one in this picture (it translates to "you can not assign a value of type "const wchar_t *" to an entity of type "LPWSTR"") . I tried adding a cast using "const_cast<LPWSTR" and also using "(LPWSTR)" before it, but then the .exe file does not work.
The steps i am doing are in Visual Studio 2017 are:

  • I create a new Project > Visual C++ > Windows console application
  • I download and paste the code
  • Change the cmdline variable to get the reverse Shell
  • I add the line '#include "pch.h"' at the begginning because otherwise i can not compile the Project and get the .exe file.
  • I change the option "x86" to "x64", to get a 64-bit file.

So if i add the cast it compiles but does not work and if i do not add it, it does not compile.

Thank you very much!!

Image: https://i.stack.imgur.com/hBFlB.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant