2009-05-03, 10:32 PM
I had a thought, about probably the single most effective code injection that could be achieved...
Basically the idea is, to locate the address of the counters in the executable image. Then reserve so many of the counters at the very end.
Then inject some very simple code that loads another address into each of the counters. The other addresses being wherever you think useful data is stored (that can be found later)
Basically in the simplest case, this could access integer values with the same specs as the counters directly into counters each event loop, so you can use an IF on that counter and do something, or set something to that value.
For stuff that might be stored as a floating point (with a decimal point) value, code could be injected to pre-convert those values (probably not hard to do once you get that far)
Same for data that might be stored in a bit vector (like your bad status state could be)
I'm assuming this is more or less how a Game Genie works. I've never done anything like injecting instructions into an executable image. I'm guessing it's very possible, and probably not too dangerous. If so there are probably websites dedicated to helping people do this sort of thing.
I'm not volunteering to do this... but I'm volunteering the idea, and again it would be an amazingly fruitful hack I think, and I would be very grateful for one
Basically the idea is, to locate the address of the counters in the executable image. Then reserve so many of the counters at the very end.
Then inject some very simple code that loads another address into each of the counters. The other addresses being wherever you think useful data is stored (that can be found later)
Basically in the simplest case, this could access integer values with the same specs as the counters directly into counters each event loop, so you can use an IF on that counter and do something, or set something to that value.
For stuff that might be stored as a floating point (with a decimal point) value, code could be injected to pre-convert those values (probably not hard to do once you get that far)
Same for data that might be stored in a bit vector (like your bad status state could be)
I'm assuming this is more or less how a Game Genie works. I've never done anything like injecting instructions into an executable image. I'm guessing it's very possible, and probably not too dangerous. If so there are probably websites dedicated to helping people do this sort of thing.
I'm not volunteering to do this... but I'm volunteering the idea, and again it would be an amazingly fruitful hack I think, and I would be very grateful for one