Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Programming for Beginners This section is for those just beginning in the programming world.
You are Unregistered, please register to gain Full access.
ah forgot to say, if you need help installing it, there is a nice tutorial:
hxxp://forum.gamedeception.net/threads/16178-Detours-2.1-(-how-to-get-it-running..-)?p=109027#post109027
the best thing is with the new detours you can easily check for errors, just read in the help file
Code:
LONG DetourAttach(
PVOID * ppPointer,
PVOID pDetour
);
Return value
Returns NO_ERROR if successful; otherwise, returns an error code.
Error codes
ERROR_INVALID_BLOCK
The function referenced is too small to be detoured.
ERROR_INVALID_HANDLE
The ppPointer parameter is null or points to a null pointer.
ERROR_INVALID_OPERATION
No pending transaction exists.
ERROR_NOT_ENOUGH_MEMORY
Not enough memory exists to complete the operation.
if the hook installs successfully then the problem is your app. Try to detour another API...
After much frustration, hair pulling and general bashing head on desk I have it working
I have a test exe that has the following function
Code:
void add_log(const char* fmt, ...){ ... }
Now, if I have done my homework correctly I would need to find the address of that function with TSearch or OlyDbg (etc) in order to use it? 1
Or, is there a way once my DLL is injected to 'Get" a function pointer / address? 2
1: yeah pretty much.
2: a few options, if it's exported (hint: probably not in your testapp, but maybe in your real target, take a look with the tool 'depends' aka 'Dependency walker'),
if that doesnt work out you could always try pattern scanning (hint: loads of examples about it in the forum, take a look around)
Got side tracked with work (etc) and forgot to report back
Used Olly and was able to find the address in my test c++ exe, but have been unable to find strings in a C# GUI application. It's 5AM here, will post on it after the sunrises and I get some sleep.
"Those who seek revenge must dig two graves, one for his enemy and another for himself."
On the internet I will - in no shape or form - take personal offence to peoples comments, idea's or views, I assume the people who I reply to won't either.