![]() |
|
|
#1 |
|
Guest
Posts: n/a
|
I remember myself when i barely knew asm and i was always asking how do ppl find a place to hook in exe. It is so big and confusing.. So i decided i must share knowledge to our apprentice programmers.
So lets start: 1. get l2server.exe and disassemble it in IDA. No explanations for that, even an idiot would manage to do this. 2. get list of l2server functions. lots of them were posted around in this forum (so you will need to use your searching skills ofcourse) 3. you also need basic understanding of programming, assembler(x64) and brain. dont worry if you are not too good with asm, you shold know basic instructions and what they do and registers. now when we got all we need lets think what we would like to find. why dont we find a place where *user holds his *socket? So where do we start looking? we obviously need pointer to user. lets go to functions list and seach for user pased as an argument to function, or better, function that belongs to user class (when we call method of an object in assembler we get passed object itself to that method in rcx register). Look what i found in the functions list: Code: Code:
007FE950 User::Set(CUserSocket*) Code: Code:
.text:00000000007FE97B mov rdi, rdx ; socket .text:00000000007FE97E mov rsi, rcx ; user Code: Code:
.text:00000000007FE9F1 mov [rsi+2670h], rdi Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (4 Weeks Ago); точное время не сохранилось. Открыть источник. |
|
|
#2 |
|
Guest
Posts: n/a
|
althongh i havenot understood it clearly. thx man,nice tutorail guide.
its helpfull for me... +2dc Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (4 Weeks Ago); точное время не сохранилось. Открыть источник. |
|
|
#3 |
|
Guest
Posts: n/a
|
Really nice tutorial.
However, can you provide the C++ code for your example ? thanks. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (4 Weeks Ago); точное время не сохранилось. Открыть источник. |
|
|
#4 |
|
Guest
Posts: n/a
|
Quote:
Originally Posted by sandeagle althongh i havenot understood it clearly. thx man,nice tutorail guide. its helpfull for me... +2dc well if you dont understand something feel free to ask. community is for helping each other Wink Quote: Originally Posted by Alakazam Really nice tutorial. However, can you provide the C++ code for your example ? thanks. well there is no c++ code. did you read tutorial at all? Smile it is about looking for things in asm. this is basic model of thinking while reverse-engineering stuff Wink Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (3 Weeks Ago); точное время не сохранилось. Открыть источник. |
|
|