Results 1 to 2 of 2
  1. #1
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,222
    Thanks Thanks Given 
    211
    Thanks Thanks Received 
    2,230
    Thanked in
    292 Posts
    Rep Power
    10

    Function Hooking, Video Tutorial

    Tutorial on basic function hooking by Patrickssj6
    In this tutorial we are going to use C++ and injection DLL to hook the function which updates the time inside MS Minesweeper.

    [flash 700,500]http://www.vivid-abstractions.net/downloads/InDem%20Present/Hooking%20Tutorial.swf?build=1[/flash]

    Full screen video

    The hooking function:
    void WriteJMP(byte* location, byte* newFunction){
    DWORD dwOldProtection;
    VirtualProtect(location, 5, PAGE_EXECUTE_READWRITE, &dwOldProtection);
    location[0] = 0xE9;
    *((dword*)(location + 1)) = (dword)(newFunction - location) - 5;
    VirtualProtect(location, 5, dwOldProtection, &dwOldProtection);
    }
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

  2. The Following 2 Users Say Thank You to Dwar For This Useful Post:


  3. #2
    Civa
    Civa is offline
    Guest
    Join Date
    2010 Sep
    Posts
    1
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0

    Re: Function Hooking, Video Tutorial

    Very nice tutorial thank you!

    Is there any place I can download source code for this and play around with it?

    Thank you once again!

    Regards,

    Civa

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •