Skip to content

[Windows] giveup with AD for all NtWow64 API calls (query 64-bit process from 32-bit) #1888

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

Merged
merged 3 commits into from
Dec 14, 2020

Conversation

giampaolo
Copy link
Owner

@giampaolo giampaolo commented Dec 14, 2020

Resume

Description

On Windows, cmdline(), cwd() and environ() use some complex logic to query a 64 bit process from a 32 bit one by using NtWow64* APIs which may randomly fail with:

  • [Error 0] The operation completed successfully
  • [Error 998] Invalid access to memory location
  • possibly others

Since this happens randomly and it's unclear how to do this properly, this PR turns any error from NtWow64* APIs into AccessDenied.

Signed-off-by: Giampaolo Rodola <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant