.net resource extractor

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?
 
R

Richard Grimes

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

isbat1

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.
 
K

Kent Boogaart

My version of reflector lets you both view and extract individual resources.
I have the latest version since it auto updates.
 
K

Kent Boogaart

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.
 
R

Richard Grimes

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
 
Joined
Jul 28, 2011
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top