Page 1 of 4 123 ... LastLast
Results 1 to 15 of 49

Hybrid View

  1. #1
    Clarkie's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    28
    Reputation
    20
    Thanks
    14
    My Mood
    Shocked

    Clarkie Detours [100% Clarkies]

    These detours are 100% my code. If you fine code from someone in it.. you lying i spent the whole morning running and testing this thing. And unlike Topblast's detours it have a Detour Remove. These detours also explains everything it does so if your a novice to detours you can read and understand how it works.

    Don't Hate, Appreciate
    CREDITS
    • Clarkie
    • Me, Myself and I

    [highlight=C++]
    bool Hook(PBYTE pTargetAddress, PBYTE pNewAddress, VOID**pCallOriginalAddress)
    {
    //Define your Variables
    // I should not have to explain this. but it stores the information and use it again from VirtualProtect
    DWORD dwProtect;
    //Allocate Memory for your Data to be stored
    LPVOID memAlloc;
    // if memAlloc is NULL/0 then it failed
    memAlloc = VirtualAlloc(0, 17, (MEM_COMMIT | MEM_RESERVE), PAGE_EXECUTE_READWRITE);
    if( memAlloc == NULL) goto fail;
    //Full memAlloc with the Bytes that were replace
    memcpy(memAlloc, pTargetAddress, 7);
    //Add a NOP to memAlloc
    *(PBYTE)DWORD(DWORD(memAlloc) + 7) = 0x90;
    // Add a JMP to memAlloc
    *(PBYTE)DWORD(DWORD(memAlloc) + 8) = 0xE9;
    // The address to Jump to.
    *(PDWORD)(DWORD(memAlloc) + 9) = (DWORD(pTargetAddress)+8) - DWORD(memAlloc)- 14;
    // Storing Extra Info that will not be used in memAlloc.
    *(PDWORD)(DWORD(memAlloc) + 13) = DWORD(pTargetAddress);
    //make your return equal memAlloc;
    *pCallOriginalAddress = memAlloc;
    if(VirtualProtect(pTargetAddress, 7, PAGE_EXECUTE_READWRITE, &dwProtect) != TRUE) goto fail;
    //clean the area we are about to hook.
    for(INT i = 0; i < 7; i++)
    pTargetAddress[i] = 0x90;
    //The Bytes we clean are now being filled with NOP
    *pTargetAddress = 0x90;
    // PUSH
    *(PBYTE)DWORD(pTargetAddress+1) = 0x68;
    // Address to Push to
    *(PDWORD)DWORD(pTargetAddress+2) = DWORD(pNewAddress);
    //return
    *(PBYTE)DWORD(pTargetAddress+6) = 0xC3;

    VirtualProtect(pTargetAddress, 7, dwProtect, &dwProtect);
    return true;

    fail:
    return false;
    }
    // HookRemove not tested.
    bool HookRemove(VOID**pCallOriginalAddress)
    {
    LPVOID memAlloc;
    // Fill the Memory to reverse
    memAlloc = *pCallOriginalAddress;
    // Get the address to Targeted function
    PBYTE pTargetAddress = (PBYTE)*(PDWORD)(DWORD(memAlloc) + 13);
    // Return the bytes to the target function.
    memcpy(pTargetAddress,memAlloc, 7);
    // Free the Allocated Memory
    return VirtualFree(memAlloc, 0, MEM_RELEASE);
    }
    [/highlight]
    New Coder here to Rock your world.

    Email : Mr_clarkie@live.com


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

    ac1d_buRn (06-06-2011),CAFlames (06-01-2011),NOOBJr (06-01-2011)

  3. #2
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    And unlike Topblast's detours And unlike Topblast's detours
    Unlike Departures Detours

  4. #3
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by whit View Post
    Unlike Departures Detours
    you just hating. Racist Bastard.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  5. #4
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by topblast View Post


    you just hating. Racist Bastard.
    Your Just Black. Black Bastard
    Last edited by whit; 06-01-2011 at 09:54 AM. Reason: Topblast isa nigger

  6. #5
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by whit View Post
    Your Just Black. Black Bastard
    Proud to be black, It makes me special to be Black and Smart. This is why i dont socialize because the most the people here are Black and Dum.

    So i am Special and your Average.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  7. The Following User Says Thank You to topblast For This Useful Post:

    Clarkie (06-01-2011)

  8. #6
    Clarkie's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    28
    Reputation
    20
    Thanks
    14
    My Mood
    Shocked
    This is a black man. Born black died White.

    New Coder here to Rock your world.

    Email : Mr_clarkie@live.com


  9. #7
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by Clarkie View Post
    This is a black man. Born black died White.

    YouTube - &#x202a;Michael Jackson - Black Or White&#x202c;&rlm;
    Hes was a Child Molester

  10. The Following 3 Users Say Thank You to whit For This Useful Post:

    AtomicStone (06-04-2011),NOOBJr (06-01-2011),Tony Stark` (06-01-2011)

  11. #8
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by whit View Post
    Hes was a Child Molester
    your just a DUM Hater of the many haters

    H Having
    A Anger
    T Toward
    E Everyone
    R Reaching
    S Success
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  12. The Following User Says Thank You to topblast For This Useful Post:

    CAFlames (06-01-2011)

  13. #9
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by topblast View Post


    your just a DUM Hater of the many haters

    H Having
    A Anger
    T Toward
    E Everyone
    R Reaching
    S Success
    Im Done Truthly hating on you Topblast

  14. #10
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    @Disturbed whit being racist -.-

    @whit love the haters <3
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  15. #11
    Clarkie's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    28
    Reputation
    20
    Thanks
    14
    My Mood
    Shocked
    Quote Originally Posted by topblast View Post
    @Disturbed whit being racist -.-

    @whit love the haters <3
    I love your new Signature
    New Coder here to Rock your world.

    Email : Mr_clarkie@live.com


  16. #12
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Quote Originally Posted by Clarkie View Post


    I love your new Signature
    God topblast you make it so obvious that it's you lol

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

    NOOBJr (06-01-2011),whit (06-01-2011)

  18. #13
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,843
    Reputation
    425
    Thanks
    8,616
    ima call in the big guns

    IP Check these guise jabuuuuuuty @Severus Snape

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

    Angel025 (06-02-2011),whit (06-01-2011)

  20. #14
    whit++'s Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    140
    Reputation
    22
    Thanks
    21
    My Mood
    Amused
    Hi Guys im @whit 's Cousin He is so awesome and i love his Signature

  21. The Following 2 Users Say Thank You to whit++ For This Useful Post:

    Tony Stark` (06-01-2011),whit (06-01-2011)

  22. #15
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by whit++ View Post
    Hi Guys im @whit 's Cousin He is so awesome and i love his Signature
    Thanks Buddie

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

    Drake (06-01-2011),Tony Stark` (06-01-2011)

Page 1 of 4 123 ... LastLast