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 31,322 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
hi!
Jul/01
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit