开发者

Patching Arm Executable?

I must patch an arm executable in my Pocke开发者_StackOverflow中文版t PC.

I am dissassembling the ARM executable with IDA Pro. But I can not edit binary. As you know Ollydbg let us to edit binary / add assembly code (Right Click->Assemble) But it doesnt support ARM. So I dissassembly it with IDA Pro. But in IDA , I can not add my assembly code into my ARM Executable. After "Edit>Patch Program>Assemble" , It gives an error. (Sorry, This processor module doesnt support the assembler).

So how can add my assembly code into this ARM executable?

Thanks...


Not particularly helpful, but I usually look up the instructions set reference and find the instruction encoding, and then fiddle with the hexdump until the disassembly matches what I want.

You can probably use gas to assemble instructions for you and then copy the hexdump around, too.


You could try to disassemble the (whole) binary into assembler, then use an assembler to go back to a binary (gnu/binutils tools for example). Then once that works add your modifications to the assembler.

The other alternative is to assemble your new function, find a place in the binary where you can place your new code and replace one or two of the instructions with a branch link to your new code. This is a hand binary modification, not something a gui tool is going to do. Will have to hand compute the branch link instruction.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜