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.

Active in Last 5 Minutes
halsten

There are 21,880 total registered users.


Recently Created Topics
Searching freelist[0...
Sep/05
How to fix this in o...
Sep/03
Trouble linking plug...
Sep/02
PyEmu error when cal...
Sep/02
Restore Themida/Winl...
Sep/02
Anti-olly technique
Aug/30
RAR Password
Aug/29
Heap protection on W...
Aug/23
Why Inline asm in C+...
Aug/20
Bypassing OllyAdvance
Aug/17


Recent Forum Posts
Trouble linking plug...
jduck
Trouble linking plug...
timtoady
Trouble linking plug...
jduck
Trouble linking plug...
timtoady
Trouble linking plug...
jduck
reverse engineering ...
raiden56
pydbg, memory breakp...
Researc...
RAR Password
Ineedhelp
RAR Password
cod
Heap protection on W...
voila


Recent Blog Entries
waleedassar
Sep/06
svchost from A to zinc part4

waleedassar
Sep/04
svchost from A to Zinc part3

waleedassar
Sep/04
svchost from A to Zinc part2

Mcstyle
Sep/03
Cheap Pegeout Partner Tepee...

waleedassar
Sep/03
svchost from A to Zinc

More ...


Recent Blog Comments
convik on:
Sep/04
Is it legal??

djnemo on:
Sep/04
Gunpack (God's Unpacker) - ...

frozenrain on:
Sep/02
Restore Themida/Winlicense ...

tosanjay on:
Sep/02
PyEmu 0.0.2

GynvaelColdwind on:
Sep/01
Is it legal??

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit