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

Patching LdrUnlockLoaderLock to accept 4 digit thread IDs #2

Open
RibShark opened this issue Jan 13, 2024 · 0 comments
Open

Patching LdrUnlockLoaderLock to accept 4 digit thread IDs #2

RibShark opened this issue Jan 13, 2024 · 0 comments

Comments

@RibShark
Copy link

RibShark commented Jan 13, 2024

As another method for using LdrUnlockLoaderLock, we could do a scan for the (fairly unique) magic number 0x1000000000000000 and simply overwrite it with ULLONG_MAX (after modifying memory protection of the page), allowing a valid cookie to be generated for any given thread ID. This seems more simple than scanning for the call to LdrpReleaseLoaderLock and less likely to change in the future.

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

No branches or pull requests

1 participant