Hi, I was reading the book “The Rootkit Arsenal: Escape and Evasion in the Dark Corners of the System” and I'd like to qualify a few things about the chapter “Hooking the GDT - Installing a Call Gate”. A PoC driver is included at the end of the article that supports WalkGDT for multiple COREs.
Example ported to C using the token of SYSTEM in win32, using the native API: ZwCreateToken.
Also an inyector is included for the LSASS process, using similar methods like the ones on piathook.