#1
|
||||
|
||||
.net modification of a method (without decompilation)
Hi all,
here the request. Suppose I have a method like GetMACAddress() in a .net program and suppose also I don't want (or can't) decompile it to a svn project and recompile it. What I have is reflector and an IL editor (or even IDA). Now the mentioned method returns the MAC address of the machine into a string, what I would like to do is to patch the function with something like the following: just return a string I decide and nothing else. GetMACAddress() { return "0A-00-00-00-00"; } the question is therefore twofold. 1. how can I add this string (the fake MAC) to the resources (I tried several resource editor or reflexil but can't do this on a .net exe). 2. how can I code a function like the one I said, take the IL code and patch the original function. Suggestions and tools are welcome Thanks Shub
__________________
Ŝħůb-Ňìĝùŕřaŧħ ₪) There are only 10 types of people in the world: Those who understand binary, and those who don't http://www.accessroot.com |
#2
|
|||
|
|||
reflexil -> repace all with code... -> ret ""0A-00-00-00-00";
or IL ldsrt 0A-00-00-00-00; ret |
#3
|
|||
|
|||
Did you tried the CFF explorer, there are a resource editor in it.
|
The Following User Gave Reputation+1 to wilson bibe For This Useful Post: | ||
Dreamer (09-18-2013) |
#4
|
||||
|
||||
CFF damn, I forgot of it .. thanks
__________________
Ŝħůb-Ňìĝùŕřaŧħ ₪) There are only 10 types of people in the world: Those who understand binary, and those who don't http://www.accessroot.com |
#5
|
|||
|
|||
ReflexIL, CFF Explorer, all cool to change bytes
but what if assembly is signed? |
#6
|
|||
|
|||
If the assembly is signed you can use the StrongName_Killer coded by codecraker, or Strong Name Remover coded by Andrea bertolotto, Reflector, etc....
|
#7
|
|||
|
|||
@Shub-Nigurrath:
May you send us your exemple ? Regards. |
#8
|
||||
|
||||
I'll see what can I share.
__________________
Ŝħůb-Ňìĝùŕřaŧħ ₪) There are only 10 types of people in the world: Those who understand binary, and those who don't http://www.accessroot.com |
#9
|
||||
|
||||
Shub, If you need any help then you can send me a pm
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
modification of GUI for 16-Bit Program | reagent | General Discussion | 7 | 01-12-2005 13:27 |
Old VB3 Program decompilation & port to VB.Net | XCPTiON™ | General Discussion | 7 | 09-08-2004 08:53 |
Autodesk Visual Lisp Decompilation... | gadget | General Discussion | 3 | 05-25-2003 06:33 |