Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Project: AntiHook (Kernel Space and User Space) - Pg. 779

Project: AntiHook (Kernel Space and User Space) oldCG = injectCallGate(cg); walkGDT(); return(STATUS_SUCCESS); }/*end DriverEntry()---------------------------------------------------------*/ /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + + + usr.c + + + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ #include<stdio.h> unsigned short callOperand[3]; void main() { unsigned long reg; callOperand[2]=0x320; __asm { call fword ptr [callOperand]; } printf("after the far call\n"); return; }/*end main()----------------------------------------------------------------*/ Appendix