Correspond to all the techniques used to intercept function calls and to attach a piece of code before or/and after the execution of the function itself.
Questions tagged [function-hooking]
110 questions
5
votes
0 answers
Static Address in Dynamically Loaded DLL
I am trying to re-write the following function in my injected DLL.
mov edi,edi
push ebp
mov ebp,esp
mov eax, [sound.dll+1AE0]
push eax
mov ecx,[ebp+08]
mov eax,[ecx]
mov eax,[eax+0C]
push eax
call sound.dll+7C640
pop ebp
ret 0004
I am loading my…

fred26
- 319
- 1
- 11
3
votes
0 answers
How are single-player games made into multiplayer ones?
I was always curious about how some single-player games are turned into multiplayer ones. Some samples are SA-MP and MTA, that turn Grand Theft Auto: San Andreas into a multiplayer game.
In an infrastructure perspective, I know you might have a…

Stanley Sathler
- 131
- 1
2
votes
2 answers
Adding a hook to the end of a function
I have a (so-called) function with multiple entry points but only one ret.
I am trying to understand how to add a hook to the function.
The main problem I'm facing is the code that is placed right after this function - it can be executed at any time…

EL_9
- 121
- 2
1
vote
0 answers
How to hook into OpenSSL shared library?
To preface, I am not a well-versed developer in the whole business of reverse engineering or even most basic programming. This is a project I made with the goal of attempting to replicate an existing connection.
Essentially, there is an application…

J. Doe
- 11
- 1
1
vote
1 answer
How would I go about getting an application's XMPP request before it is SSL-encrypted?
Disclaimer: I am very new to Reverse Engineering, though it captivates me. Hence, I'm apologizing beforehand if I say anything ridiculous in the following, and hope you will help me find the way!
Context: I have an application which seems coded in…

Azami
- 111
- 2
0
votes
0 answers
What's the way to find a function on a unity game and how I call it after I find?
I'm a newbye, so sorry for the basic questions, before anyone downvote the question.
I'm Learning reverse engineering, I've already learned assembly for mips on the computer science underdegree and I know the basic about computer architeture.
I'm…

Luiz
- 1
0
votes
2 answers
Ways to detect Function hooking?
I making a game and I'm trying to find a way to prevent against function hooking (IAT/VMT/etc), or at the least detect it, I understand how they work but dont see a very reliable way to detect or prevent them. Does anyone have any ideas on how to do…

Xiurt
- 1
- 1
- 1
0
votes
1 answer
Hooking offset from IDA throws Access Violation
I've been trying to hook a function using Detours 1.5, but when DetourFunction() is called, it throws access violation.
This is the original function:
int greeter(char *name) {
printf_s("%s, %s!\n", greetings[rand() % ((int) sizeof(greetings) /…

Gabriel Vasconcelos
- 125
- 5