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

it not work after change DEP to NO #1

Closed
FunnyWolf opened this issue Jun 15, 2021 · 4 comments
Closed

it not work after change DEP to NO #1

FunnyWolf opened this issue Jun 15, 2021 · 4 comments

Comments

@FunnyWolf
Copy link

It's still not work after I modify the DEP to NO,but if i change "PAGE_READONLY" to "PAGE_EXECUTE",all is just good.
(i did not change DEP flag of os,test in windows10)

@Maff1t
Copy link
Owner

Maff1t commented Jun 15, 2021

How did you set dep? I tested only at compilation time, compiling with visual studio

@FunnyWolf
Copy link
Author

In visual studio 2019 ,Project→project Properties→Configuration Properties→Linker→Advanced→Data Execution Prevention (DEP) -> (/NXCOMPAT:NO)

@Maff1t
Copy link
Owner

Maff1t commented Jun 15, 2021

Ok interesting, I did the same on my Windows 10 machine, and it works.
Can you please give me the exact version of your OS? And, can you inspect manually the PE Header to see if the DEP of the binary is correctly set to "false". There is a specific field inside the PE optional header

@FunnyWolf
Copy link
Author

Ok interesting, I did the same on my Windows 10 machine, and it works.
Can you please give me the exact version of your OS? And, can you inspect manually the PE Header to see if the DEP of the binary is correctly set to "false". There is a specific field inside the PE optional header

hi maff1t, I test it again, it works with build option "Release x86" and x86 shellcode(calc.exe),but not work with build option "Release x64" and x64 shellcode(calc.exe)

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

2 participants