Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-18-2013, 15:52
Shub-Nigurrath's Avatar
Shub-Nigurrath Shub-Nigurrath is offline
VIP
 
Join Date: Mar 2004
Location: Obscure Kadath
Posts: 971
Rept. Given: 70
Rept. Rcvd 431 Times in 101 Posts
Thanks Given: 83
Thanks Rcvd at 405 Times in 127 Posts
Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499
.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
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decompilation via circuit images chants Electric Section 3 05-14-2024 11:11
modification of GUI for 16-Bit Program reagent General Discussion 7 01-12-2005 13:27
Old VB3 Program decompilation & port to VB.Net �XC�PTiON™ General Discussion 7 09-08-2004 08:53


All times are GMT +8. The time now is 15:13.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )