Posted: Fri May 01, 2015 3:33 am Post subject: Dealing with static addresses in dynamic code in CSM 2015
Hey guys. So I'm messing around with Car Mechanic Simulator 2015, doing a code injection to give my guy 5 xp for every 1 xp the game would otherwise give. The code is dynamic so I have to trigger each method the game uses to grant xp before it can be found with aob scan. There are three. One for removing a part, one for assembling a part, and one for completing work on a car.
Not surprisingly the addresses in the code change each time the game is run. What is surprising is that they are written as static addresses in the game code, something like 0107445D, and not something like [EAX + 00000090]. So I can write an injection that works, but the next time I run the game the it will write to the wrong address, although the aob will find the correct code thanks to wildcards. I know the number I need is always x bytes away from the injection point, so I'm wondering if there is a way to grab it and make it a variable in my code.
Enable CE's Mono features, then use decorated names instead of addresses. CE will force Mono to JIT the parts that haven't yet been compiled, so you can enable your cheats right away. _________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Thanks! Forgive my noobishness, but I'm not sure how to do that. I click on "activate mono features" from the "mono" menu, but nothing seems to happen. Do I have to attach to a mono.exe file after I attach to the game executable? Also I don't know what JIT stands for, but from context it looks to mean "activate"?
Thanks! Forgive my noobishness, but I'm not sure how to do that. I click on "activate mono features" from the "mono" menu, but nothing seems to happen.
You may have to check the show module addresses option, but CE should now show decorated namespace/class/function names in the memory viewer. Also, the Mono features should be present in the data dissector. _________________
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