![]() |
|
#2
|
|||
|
|||
|
Yes, the "System Desciptor Table" in xp is write protected...
you need to disable the WP bit in the processors CR0 register. Hooking by modifying the "Kernel service table" is used by several publicly available rootkit packages. HE4Hook and KApiHooks are two of them... I can't download your attachment (Not enough thankyou points or something) but trysomething like this... Code:
_asm
{
CLI //dissable interrupt
MOV EAX, CR0 //move CR0 register into EAX
AND EAX, NOT 10000H //disable WP bit
MOV CR0, EAX //write register back
}
(NTCREATEFILE)(SYSTEMSERVICE(ZwCreateFile)) = NewZwCreateFile; // <---#HERE#
_asm
{
MOV EAX, CR0 //move CR0 register into EAX
OR EAX, 10000H //enable WP bit
MOV CR0, EAX //write register back
STI //enable interrupt
}
Last edited by goggles99; 01-02-2005 at 05:16. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Hook | user1 | Source Code | 0 | 04-24-2021 05:23 |
| SYSENTER hook | niom | General Discussion | 13 | 08-12-2004 02:50 |
| DriverStudio 3.1 Viaagp.sys Bluescreen | bgrimm | General Discussion | 1 | 02-19-2004 02:37 |