Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  how to chnage an instruction using IDA

Topic created on: June 24, 2010 04:26 CDT by romaindu86 .

Hello i am french and novice whith IDA i would like to know how to change an instruction.For exemple a jump JNZ to JZ.
help please

  voila     June 24, 2010 11:37.38 CDT
hi there ..

you can try this way. suppose instruction is jnz loc_1234 ..
then double click on "jnz" , then go to view hex editor .. there you will see bytes for jnz automatically selected .. then right click there on sleected bytes .. select "edit"  .. then u done :) . hope this will works for u

  romaindu86   June 24, 2010 14:18.11 CDT
then i double click on "jnz" i see bytes selected but i can't edit.When i do right click they don't have "edit".
Sorry for my english

  voila     June 24, 2010 15:54.26 CDT
hi there ..

your english in fine enough to let us understand what u want to say :) ..

now i give my final try ..
step 1 -> open exe in ida pro .. go to the instruction you want to change

  step 2 -> now note down the OFFSET of the instruction(just above the scroll bar) ..... close IDA  

  step 3 -> now open the same exe into hex editor .. go to the same offset ..

  step 4 -> now changes bytes here according to your desire instruction

  step 5 -> save changes ..

  step 6 -> again open the exe in ida , then again go to same offset to check the changes you made ..

   step 7 -> i m sure this will works for you  :)

  romaindu86   June 25, 2010 04:55.48 CDT
ok thanks I thought we could do directly with ida.
thank you again

  ping24     July 16, 2010 07:39.36 CDT
BTW, why IDA doesn't give this freedom to change the instructions on the fly?

-Ping

  ConsoleFx     July 18, 2010 02:31.14 CDT
Well no need to use Hex Editors though. You can make use of Immunity/Olly to change the instructions on the fly. That would be more convenient than changing the opcodes through Hex Editors.

Hope it helps!

Note: Registration is required to post to the forums.

There are 28,212 total registered users.


Recently Created Topics
Reverse Engineering ...
Jan/23
Career: DoD Agency I...
Jan/22
"Disappearing&q...
Jan/17
Career: Software Sec...
Jan/11
Where is the call st...
Jan/07
IDA Pro 6.1 Breakpoi...
Jan/01
How to create data s...
Dec/30
can i search all mod...
Dec/23
IDA symbol table exp...
Dec/20
An anti-attach trick
Dec/17


Recent Forum Posts
Reverse Engineering ...
NirIzr
"Disappearing&q...
NirIzr
Reverse Engineering ...
charlie
"Disappearing&q...
charlie
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
Looking for value in...
NirIzr


Recent Blog Entries
Ludwig
Feb/04
chi on sale

Ludwig
Feb/04
Monster In The Vicinity Of ...

Ludwig
Feb/04
Supra footwear Online

waleedassar
Jan/31
Yet Another Anti-Debug Trick

RolfRolles
Jan/22
Finding Bugs in VMs with a ...

More ...


Recent Blog Comments
waleedassar on:
Feb/01
Yet Another Anti-Debug Trick

NirIzr on:
Jan/31
Yet Another Anti-Debug Trick

jackchen on:
Jan/10
nike mercurial vapor iii

waleedassar on:
Dec/27
A new Anti-Olly trick.

PeterFerrie on:
Dec/27
A new Anti-Olly trick.

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit