I'm trying to change an instruction in an executable that's loaded in IDA Pro v6.1
For example:
lis r11, ((qword_90E1B2D8+0x10000)@h)
to
lis r10, unk_90E163D0@h
Any help is appreciated, thank you very much.
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.
Sign up to join this communityIf you goal is to push the changes back to the original binary, then for IDA 6.1, your best bet is to use a combination of the Edit/Patch Program
menu and the editing capabilities of the Hex View
window to make the changes that you want. If you are looking at PPC code, unfortunately the PPC processor module does not support the Assemble...
command on the Patch Program
menu. Once you have made the changes that you want, use the File/Produce file/Create DIF file
menu item to save an IDA style dif file. There is a utility here: http://idabook.com/examples/chapter_14/ida_patcher.c that may be used to apply your dif against the original binary to patch it.
Edit
-Patch
menu works in your architecture, you can just use itsAssemble
command to write the instruction you want, see the bytes it produces (Options
-General
-Show opcode bytes
), and then hex-edit them into the executable.