Edit (patch) a binary file in IDA Pro

六眼飞鱼酱① 提交于 2019-12-03 05:07:23
  1. select the instruction you need to change in "IDA View" subview.

  2. switch to "Hex View" subview. You will see several highlighting hex numbers.

  3. press "F2", edit it, when you finish, press "F2" again.

  4. That's all. you will see your change in other subviews.

Possibly edit:

idagui.cfg: DISPLAY_PATCH_SUBMENU = YES

If the menu is not enabled, then use

Edit/Patch code/Change Byte

IDA 6.2 has the "Edit" -> "Patch program" menu enabled out of the box. No need to modify idagui.cfg. There is also an "Apply patches to input file" option that that will modify the target file.

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.

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

Then apply the diff file using an external tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!