.net resource extractor

  • Thread starter Thread starter isbat1
  • Start date Start date
I

isbat1

I need to extract some embedded resources back to disk from a .net
assembly.

What tool do I need, and where do I get it?
 
I need to extract some embedded resources back to disk from a .net
assembly.

What tool do I need, and where do I get it?

In addition to Kent's reply, ildasm will also extract resources if you
run from the command line:

ildasm /text /out:test.il test.dll

Of course you can write your own code to do this. look up
Assembly.GetManifestResourceStream and related functions

Richard
 
I tried both of them. Reflector lets you extract all the resources as
a big wad, which is no more helpful than if I hadn't extracted them at
all. Resourcer lets you add things TO a resource file, but it won't
take them out. Neither program is any help.
 
My version of reflector lets you both view and extract individual resources.
I have the latest version since it auto updates.
 
Unless you're talking about extracting individual resources from an embedded
resource file (as opposed to individual resource files). In that case, see
Richard's suggestion.
 
Kent said:
Unless you're talking about extracting individual resources from an
embedded resource file (as opposed to individual resource files). In
that case, see Richard's suggestion.

Well, if you have a .resources file for compiled resources you can
decompile with resgen (this tool both compiles and decompiles
resources):

resgen test.resources test.resx

Again, this is done with various classes in the System.Resources
namespace, so it is relatively easy to write your own.

Richard
 
If you still need a tool for extracting .net resource files there is one on tecsploit including source code that will extract all resources as individual files, it worked well for me when I needed to extract some reports from a .net assembly

http://www.tecsploit.com
 
Back
Top