Reverse Engineering RET Homepage RET Members Reverse Engineering Projects Reverse Engineering Papers Reversing Challenges Reverser Tools RET Re-Search Engine Reverse Engineering Forum Reverse Engineering Links

Go Back   Reverse Engineering Team Board > Reverse Engineering Board > .NET Reverse Engineering
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2012, 12:00 PM
Marton Marton is offline
Member
 
Join Date: Nov 2011
Posts: 7
Default Manually add a method to a DLL - Possible?

Is there a way to add a method to a DLL?
I want to use a DLL of an older version of a target, in a newer version. On startup I get an error:
Method 'IsSecondInstance' in type 'App.Activator.Activator' from assembly 'App.Collector, Version=1.0.4198.19407, Culture=neutral, PublicKeyToken=null' does not have an implementation.
So I want to add "IsSecondInstance" manually, is it possible? Any tools to recommend? Thanks!
Reply With Quote
  #2  
Old 02-27-2012, 12:20 PM
kao kao is offline
Senior Member
 
Join Date: Sep 2007
Posts: 184
Default

Why do you want to use old DLL with new executable? In general it's a bad idea.

Normally I would suggest Mono.Cecil, as it can add new functions to assembly. But taken into account your previous question:
http://reteam.org/board/showthread.php?t=4472
I doubt that it will work because Mono.Cecil cannot handle mixed-mode assemblies.

Either:
a) patch main exe so that it doesn't require IsSecondInstance and use old DLL or;
b) patch new DLL like normal people do.
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump





Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.