Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit (patch) a binary file in IDA Pro

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

like image 634
lol Avatar asked Jun 09 '09 12:06

lol


2 Answers

Possibly edit:

idagui.cfg: DISPLAY_PATCH_SUBMENU = YES

If the menu is not enabled, then use

Edit/Patch code/Change Byte

like image 198
lundman Avatar answered Sep 24 '22 16:09

lundman


  1. select the instruction you need to change in "IDA View" subview. enter image description here

  2. switch to "Hex View" subview. You will see several highlighting hex numbers. enter image description here

  3. press "F2", edit it, when you finish, press "F2" again. enter image description here

  4. That's all. you will see your change in other subviews. enter image description here

like image 30
VictorV Avatar answered Sep 23 '22 16:09

VictorV