Skip to content

NtCreateThreadEx fails with status 0xc0000022 (ACCESS DENIED) #3

@bodgergely

Description

@bodgergely
PEB address: af9000
ImageBase address: 7ff601990000
[+] Parameters mapped!
PEB address: af9000
PEB address: af9000
> ProcessParameters addr: 000001FF954B13F0
[+] Process created! Pid = 4444
EntryPoint at: 7ff601a57318
NtCreateThreadEx failed: cb
[-] Failed!
Press any key to continue . . 

I am consistently getting the above output, both Debug and Release builds. I tried both on my physical machine and VM. I suspect something is still not working out with the env variables, I saw a closed issue related to that. Inspecting from different debuggers (ProcessHacker etc) the environment string seems to be set correctly in the created remote process and properly set up via setup_process_parameters().

I am trying to run this on Win10H1 build 19043.

https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

ERROR_ENVVAR_NOT_FOUND
203 (0xCB)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions