On Sat Sep 3 19:12:01 EDT 2011, [email protected] wrote:
> I'm reading some code into an area of data and trying to run it. I'm
> not clear on how to tell acid that this area of memory is now
> executable code, such that commands such as asm() will work.
>
> I've tried a few iterations of map() but I'm clearly doing something
> wrong ... has anyone done this?
i'm not sure if you're just literally dumping code in or what, but
something like
acid: dump(0xdfffefb4, 4, "I")
0xdfffefb4: SHRB $0xff,BH
0xdfffefb7: FMOVW 0x0(AX),F0
0xdfffefb9: ADDB AL,0x0(AX)
0xdfffefbb: ADDB AL,0x0(AX)
0xdfffefbd: ADDB AL,0x0(AX)
will bypass the fiddling with the executable that is causing you trouble.
- erik