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

Do not hook NtSetContextThread if PreviousMode == KernelMode #32

Merged
merged 1 commit into from
Sep 2, 2018

Conversation

Mattiwatti
Copy link
Collaborator

See #29. (3)

…kernel mode

*Zw*Get/SetContextThread behaves very differently from *Nt*Get/SetContextThread; e.g. calling ZwSetContextThread will modify a thread's kernel trap frame rather than the user mode CONTEXT structure that the Nt syscall expects. Modifying the KTRAP_FRAME is a good way to kill a thread and probably the rest of the OS with it
@mrexodia mrexodia merged commit fdf6022 into mrexodia:master Sep 2, 2018
@Mattiwatti Mattiwatti deleted the nt-not-zw-setcontextthread branch September 2, 2018 00:21
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

Successfully merging this pull request may close these issues.

2 participants