PDA

View Full Version : Patching an executable


ibbar
11-05-2011, 02:22 AM
Hello,

I've searched around here and google and I can't seem to find the answer. It's been a while since I've messed with reverse engineering so I'm kind of rusty. Using IDA Pro 6.1 I've isolated how to make the program do what I want, but for the life of me I can't seem to remember how to patch the exe.

It's a dotnet app and I've enable the "Patch" submenu under edit.

I need to change bne.un.s loc_3649 to bne.un.s loc_36D6. I can do this by going to "Edit->Operand Type->Manual", but when I try to create a diff file it's empty.

I could goto "Edit->Patch program->Change byte", but I have totally forgotten how to get the new byte value.


Any suggestions would be appreciated.

EDIT:

I don't know if this matters or not, but it's a dotnet program. I've also looked at some of the tools located at http://www.woodmann.com/collaborative/tools/index.php/Category:Patcher_Generators, but they dont seem to help me.

pas_tol
01-10-2012, 06:12 PM
diablo2oo2's Universal Patcher - [dUP]

dUP 2 is a freeware patch generator which can build a small standalone patcher executable for microsoft windows systems.
http://diablo2oo2.di.funpic.de/dup.html

G3n1us
01-17-2012, 03:48 PM
my sugestion is that you find adresses wheare to patch and make your patches in olly. it is wery simple. if you dont know how to use oly djust look lena tut nr 1 and make your patch - i supose that adresed will be the same. you can also make coments in ida and export to map file and import in oli trought godfather plugin. i wish you all the best happy reversing

G3n1us

yogi_saw
01-18-2012, 01:18 AM
For dot net app i dont think olly can help u. We have seperate section for reversing dot net apps pls take a look there first