Posts: 3,138
Threads: 257
Joined: Nov 2009
Reputation:
0
I don't know memory adresses etc.
But does this means it's possible to do more things? Such as functions/callbacks?
Btw nice work!
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by davve95
I don't know memory adresses etc.
But does this means it's possible to do more things? Such as functions/callbacks?
Btw nice work!
|
No... This is basically just what you need to know to make memory hacking plugins work on new SA-MP releases.
Like YSF for example, it has to be updated with each SA-MP version. This tutorial shows you how to get the addresses you need to do so.
Posts: 248
Threads: 13
Joined: Jul 2014
Reputation:
0
Kurta999, I used your method of getting pRakServer. But it always points to zero.
Posts: 248
Threads: 13
Joined: Jul 2014
Reputation:
0
15.03.2016, 13:38
(
Последний раз редактировалось codectile; 15.03.2016 в 14:23.
Причина: Grammar
)
FindPattern scans the opcodes and bytes of a certain function and returns the function address. Note that the opcodes or bytes must be a unique one, that is, you must find opcodes or bytes that does not match with the bytes of any other function. The thing, you see in the first parameter are the opcodes and bytes("\xE4\x90...") and the second parameter contains the mask. '?' Means that the opcode has a potential of getting changed after samp update, so FindPattern ignores it while scanning, opposite happens with 'x'.
Posts: 262
Threads: 26
Joined: Dec 2014
Reputation:
0
Could you tell me to how find opcodes or bytes in ida? (Something that inside first FindPattern parameter, ex: i want the opcodes and bytes for OnPlayerCommandText).
Posts: 248
Threads: 13
Joined: Jul 2014
Reputation:
0
Open IDA->Options->General->Disassembly Tab->Number of opcode bytes(set it to 8)->click on ok
...and that's it
Posts: 262
Threads: 26
Joined: Dec 2014
Reputation:
0
Wuih, finally, thanks codectile!
Posts: 913
Threads: 70
Joined: Apr 2009
Reputation:
0
BUMP!
Everybody who's wanna help porting plugins from 0.3.7 to 0.3.DL, let's try to understand this tutorial. I think it's not as that hard as it looks like, just use your head and logic. When I first upgraded YSF, I even didn't unsterstood totaly how function pointers works in C.
Posts: 913
Threads: 70
Joined: Apr 2009
Reputation:
0
This topic doesn't really needs to be updated, you can use the same pattern for 0.3.DL which described for 0.3.7.