Re:Implementing Global Injection and Hooking in Windows
by saagarjha on Wednesday April 20, 2022 @06:55AM
(#31095064)
You will need to disable SIP (and library validation) to do this, because your code signature will not match the target process's, which is kind of what this is intended to prevent. This is also why you cannot attach a debugger to arbitrary processes when those protections are engaged. But once you turn that off, there's a lot you can do, here's one of my projects that might give you an idea of one way to do this: https://gist.github.com/a70d44951cb72f82efee3317d80ac07f
[ Parent
| on HN ]
Re:Implementing Global Injection and Hooking in Windows
by maddieuwu on Thursday April 21, 2022 @07:25AM
(#31108065)
I think that disabling SIP can break some programs and it's hard to do for a normal user right? I'm curious how anti-malware software is doing this, because it's doing a lot of fancy stuff, maybe I should look into it by reverse engineering one of them. Thanks for the link I'll definitely check it out.