Thread: Idea

Results 1 to 3 of 3
  1. #1
    Xlilzoosk8rX's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    the-ville, PA
    Posts
    358
    Reputation
    24
    Thanks
    53

    Idea

    saw something like this used in a different concept.

    is it possible to hide your detours by setting the page flags of the function you've detoured so that reading cause an exception you then restore the original function and resume execution without changing the page flags back?
    you then continue execution until you catch the exception from the end of the function, then restore detour

    youthink it will work?

  2. #2
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    You dont need detours to hook a function with the method you mentioned.
    Just set the page flag PAGE_GUARD and let it raise an exception. Catch this exception with an exceptionhandler and use EIP to redirect to any function you want.

    Never used it, but I heard it eats alot of frames per second when you hook a function called every frame. Some say its slow, some say its acceptable.


  3. #3
    Xlilzoosk8rX's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    the-ville, PA
    Posts
    358
    Reputation
    24
    Thanks
    53
    Quote Originally Posted by Gordon` View Post
    You dont need detours to hook a function with the method you mentioned.
    Just set the page flag PAGE_GUARD and let it raise an exception. Catch this exception with an exceptionhandler and use EIP to redirect to any function you want.

    Never used it, but I heard it eats alot of frames per second when you hook a function called every frame. Some say its slow, some say its acceptable.
    thats why instead of rendering it every fram you just put
    it into a DoOnce Loop then its not every frame and reduces lag, im just lookin for another way to hook tht isnt so easy to detect

    nvm figured it out somewhat got help from a friend.


    Code:
     GetObjectFlags(  pObject, iFlagType,  *iFlags ); <------ something like that
    then

    something like this
    Code:
    	 SetObjectFlags(  pObject, iFlagType, iFlags, iMask );
    Last edited by Xlilzoosk8rX; 01-15-2011 at 01:26 PM.