I've been working on learning about Detours and such lately cuz i wanna learn more about hacking and D3D and i came across something called "retour functions"
i didn't read it all yet, but i'll post what i learned from it. This may be useless for now on CA, but maybe in the future it will be useful
Main.h
Code:bool RetourFunc(BYTE *src, BYTE *restore, const int len);
Main.cpp
Code:bool RetourFunc(BYTE *src, BYTE *restore, const int len) { DWORD dwback; if(!VirtualProtect(src, len, PAGE_READWRITE, &dwback)) { return false; } if(!memcpy(src, restore, len)) { return false; } restore[0] = 0xE9; *(DWORD*)(restore+1) = (DWORD)(src - restore) - 5; if(!VirtualProtect(src, len, dwback, &dwback)) { return false; } return true; }
commando: You're probably the best non-coder coder I know LOL
Hey dumbfuck, that's just a jmp hook with a different name.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
ac1d_buRn (06-01-2012),flameswor10 (05-31-2012),[MPGH]Flengo (05-31-2012),[MPGH]master131 (06-01-2012),Saltine (05-31-2012),TokolocoSK (05-31-2012),topblast (06-01-2012),Xipher (05-31-2012)
steel o-o's sig =
= Done , = Not Done
Leecher 0 =
Newbie 25 =
Member 50 =
Advanced Member 100 =
H4X0R Member 150 =
Dual-Keyboard Member 250 =
Expert Member 500 =
's Trainer 750 =
MPGH Expert 1000 =
Synthetic Hacker 1250 =
Blackhat Hacker 1500 =
Whitehat Hacker 2000 =
's Guardian 2500 =
Upcoming MPGHiean 3000 =
MPGH Addict 3500 =
MPGHiean 4000 =
MPGH Knight 4500 =
MPGH Lord 5000 =
MPGH Champion 5500 =
MPGH King 6000 =
MPGH Legend 6500 =
MPGH God 7000 =
MPGH God II 7500 =
MPGH God III 8000 =
MPGH God IV 8500 =
MPGH God V 9000 =
Arun's Slave 9500 =
Dave's Slave 10000 =
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Nice man !
Good Job Bro ! ;D
how does this even relate to combat arms?
and why did did you rename it to retour it doesn't make sense
If you want the detour to be removed, Just copy the bytes before you add the detour, then Memcpy it back
No I do not make game hacks anymore, please stop asking.
Departure (06-02-2012)
^^^ ohhhh XD
commando: You're probably the best non-coder coder I know LOL
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Ladies please, calm down.