Sign In
Jigar Mehta's Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Common Tasks
Blog Home
Email Blog Author
About
Share this
RSS for comments
RSS for posts
Atom
Search Form
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tag Cloud
.NET
COM
DCOM
Debugging
Interop
Live Mesh
Remoting
SideBySide
Silverlight
Vista
WCF
WinDbg
Monthly Archives
Archives
December 2010
(1)
April 2009
(1)
August 2008
(1)
June 2008
(2)
May 2008
(6)
April 2008
(3)
November 2007
(7)
October 2007
(9)
September 2007
(2)
August 2007
(2)
June 2007
(4)
May 2007
(12)
April 2007
(1)
March 2007
(3)
February 2007
(3)
January 2007
(4)
December 2006
(2)
November 2006
(2)
October 2006
(1)
September 2006
(5)
Extracting modules (EXE, DLL, and other binaries) from memory dump..
MSDN Blogs
>
Jigar Mehta's Blog
>
Extracting modules (EXE, DLL, and other binaries) from memory dump..
Extracting modules (EXE, DLL, and other binaries) from memory dump..
Jigar-Mehta MSFT
6 Nov 2007 7:45 PM
Comments
0
Yet another debugging challenge.
Imagine a situation where you get a memory dump from customer and need modules (DLL, EXE, OCX etc.) to further debug.. (.NET modules can be used to look at source code by reverse engineering..)
SOS.dll is at the rescue. We can use clr10\sos.dll inside windbg directory to save all the modules (loaded by target process at the time of taking the memory dump). Interesting fact is, sos.dll can not only extract managed modules, it can also save all the native/unmanaged modules!!
First, load the sos.dll in windbg.
Then use !sam <path> OR !SaveAllModule <path> to extract the modules on specific disk location..
Thats it! Mission accomplished. Though, its not a long process, it can be useful in some scenario..
PS: Later version of sos.dll does not support !sam, you need to manually extract each and every module by providing the loading address.
Stay tuned..
0 Comments
WinDbg
,
Debugging
Leave a Comment
Name
Comment
Please add 3 and 8 and type the answer here:
Post