ioncodes / dnpatch

.NET Patcher library using dnlib
MIT License
313 stars 48 forks source link

How to extract some dll files from App assembly using dnpatch ? #45

Open gagmeng opened 7 years ago

gagmeng commented 7 years ago

When i debug the app with dnspy, some dll files are available in modules window of dnspy. How can i extract these dll files from App assembly using dnpatch or dnlib ? Thanks

SlowLogicBoy commented 7 years ago

you can only extract loaded modules when app is running, dnpatch and dnlib does everything with assemblies themselves without running, so it's not possible, usually loaded modules are referenced assemblies, so you can get assembly references, but this will only work for non packed and non obfuscated assemblies, because packed/merged/obfuscated assemblies might have modules integrated as resources, and to extract them you will need to write some script by yourself

gagmeng commented 7 years ago

Could you give me some guidances for some simple script? Thanks