Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an example to get DLL from dump #212

Open
ttodua opened this issue Apr 10, 2020 · 7 comments
Open

an example to get DLL from dump #212

ttodua opened this issue Apr 10, 2020 · 7 comments

Comments

@ttodua
Copy link

ttodua commented Apr 10, 2020

under Memory>Modules, we can view DLLs...
but when right click on any item in the list, it only shows: "Copy selected rows".

so, is there any way, and if so, an example - how to get dll to write to a normal .dll file for further usage for JustDecompile ( or like that)?

or to write whole content of specific dll dump into a readable files, similarly as JustDecompile (or etc), create a project folder from .DLL

@fremag
Copy link
Owner

fremag commented Apr 11, 2020

The dlls are not in the memory dump: it contains only data, no executable code so I don't think it's possible.

@Muppetdog
Copy link

Muppetdog commented Apr 12, 2020

If its a full memory dump, the full dlls are in the dump. I pull them out via windbg and reflect them all the time.

@TheXenocide
Copy link

Right, this very much depends on whether the dump is a full dump or a minidump

@ttodua
Copy link
Author

ttodua commented Apr 16, 2020

yes, full dump

@Muppetdog can you point me (where can i read) how to do, step by step?

@fremag
Copy link
Owner

fremag commented Apr 19, 2020

I'm sorry but I've no idea how to do that.

Memoscope is just a UI: all features come from ClrMd and I can't find anything in this to extract dlls.
I know ClrMd 2.0 is coming soon, I'll check then.

@Muppetdog
Copy link

Muppetdog commented Apr 19, 2020

Easiest way to dump out dlls from a dump is with the Mex debugging extension for Windbg.

!writemodule -a -p pathtosave

It will save all the modules in the dump, managed and unmanaged

https://www.microsoft.com/en-us/download/details.aspx?id=53304

@ttodua
Copy link
Author

ttodua commented Aug 29, 2020

@fremag , ah, sorry, seems i have made duplicate request for that, however, what your thoughts about last comment by @Muppetdog ? Could that be integrated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants