Renuel Roberts
DIIDevHeads IoT Integration Server
•Created by Marvee Amasi on 12/16/2024 in #code-review
How to Resolve ERROR_NOACCESS (0x3E6) When Injecting Assembly Code into a PE File Using CreateThread
@Marvee Amasi The
ERROR_NOACCESS (0x3E6)
error in your CreateThread
call is likely due to memory access
or parameter issues. Ensure the memory
where your injected code
resides has proper permissions
using VirtualProtect
(PAGE_EXECUTE_READWRITE
). Also, verify that the stack
is 16-byte
aligned before calling CreateThread
, and re-check
that the parameters you're passing are correct. If you're injecting code into another process, make sure it allows execution of injected threads, and consider security features like DEP and ASLR that may need to be addressed.6 replies