views:

2294

answers:

3

Hi, i would like to know how to edit a binary file in ida pro (i just need to change one instruction!)

(its ARM binary)

thanks

+3  A: 

I think IDA used to have a feature to do that, but it's not present in the current versions.

You should just use a hex editor. Note the file offset in IDA and edit the file at that address. If you'd like to see the changes in IDA, use the "File" -> "Load file" -> "Reload the input file" menu item.

CyberShadow
this is the best method i've found too, unfortunate
Matt Joiner
+4  A: 

Possibly edit:

idagui.cfg: DISPLAY_PATCH_SUBMENU = YES

If the menu is not enabled, then use

Edit/Patch code/Change Byte

this doesn't change it in the actual binary tho
Matt Joiner
A: 

First do as Lundman suggested, then choose File / Produce / DIF file.

Then apply the diff file using an external tool

lallous