Make sure we don't dump resource resolver's resource
This commit is contained in:
parent
0ac8c944e5
commit
981975b750
|
@ -141,10 +141,8 @@ namespace de4dot.code.deobfuscators.DeepSea {
|
|||
}
|
||||
DeobfuscatedFile.stringDecryptersAdded();
|
||||
|
||||
if (options.DecryptResources) {
|
||||
resourceResolver.initialize(DeobfuscatedFile, this);
|
||||
decryptResources();
|
||||
}
|
||||
|
||||
dumpEmbeddedAssemblies();
|
||||
|
||||
|
@ -168,6 +166,8 @@ namespace de4dot.code.deobfuscators.DeepSea {
|
|||
if (!options.DumpEmbeddedAssemblies)
|
||||
return;
|
||||
foreach (var info in assemblyResolver.getAssemblyInfos()) {
|
||||
if (info.resource == resourceResolver.Resource)
|
||||
continue;
|
||||
DeobfuscatedFile.createAssemblyFile(info.data, info.simpleName, info.extension);
|
||||
addResourceToBeRemoved(info.resource, string.Format("Embedded assembly: {0}", info.fullName));
|
||||
}
|
||||
|
|
|
@ -23,6 +23,10 @@ namespace de4dot.code.deobfuscators.DeepSea {
|
|||
class ResourceResolver : ResolverBase {
|
||||
EmbeddedResource resource;
|
||||
|
||||
public EmbeddedResource Resource {
|
||||
get { return resource; }
|
||||
}
|
||||
|
||||
public ResourceResolver(ModuleDefinition module)
|
||||
: base(module) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user