Posted: Mon Aug 03, 2015 8:33 pm Post subject: [AA] conditional code injecting, simple question
how can i do this?
Code:
game.dll+AA: //when you come here
cmp [game.dll+10],1 //check if this value is "1"
jne do_not_change
*inject this opcode to "game.dll"+CC, but dont execute or jump here!
--> nop
--> nop
do_not_change:
*inject this opcode to "game.dll"+CC, but dont execute or jump here!
mov eax,ecx //this is orginal opcode
ofc that is a better idea but only if i have one place to inject like in first example. actually there are tens of injection points, and they have to be injected or not injected based on some values. so i need to do this in a clearer way, more practical way.
think about this, what would you do?
Code:
if [game.dll+10] = 1
if [game.dll+14] = 5
inject "bla bla..." at "game.dll"+CC
inject "bla bla..." at "game.dll"+DD
inject "bla bla..." at "game.dll"+EE
inject "bla bla..." at "game.dll"+FF
...
I told you what I'd do... I'd set a flag and check it at each of the subsequent injection points. It's a clearer, more practical way compared to rewriting substantial executable code each iteration. _________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum