win-capture: Don't mark string mem. as executable

This is writing a string which LoadLibraryW can read in the target
process; it's not being executed so there's no reason to mark it as
executable.
This commit is contained in:
jp9000 2015-07-11 15:35:31 -07:00
parent 0833651adc
commit 45ed0a39a8

View File

@ -50,8 +50,7 @@ int inject_library_obf(HANDLE process, const wchar_t *dll,
/* -------------------------------- */
size = (wcslen(dll) + 1) * sizeof(wchar_t);
mem = virtual_alloc_ex(process, NULL, size, MEM_COMMIT,
PAGE_EXECUTE_READWRITE);
mem = virtual_alloc_ex(process, NULL, size, MEM_COMMIT, PAGE_READWRITE);
if (!mem) {
goto fail;
}