{"id":13537688,"url":"https://github.com/ghostpack/safetykatz","last_synced_at":"2025-04-12T15:37:32.068Z","repository":{"id":37451268,"uuid":"142193128","full_name":"GhostPack/SafetyKatz","owner":"GhostPack","description":"SafetyKatz is a combination of slightly modified version of @gentilkiwi's Mimikatz project and @subtee's .NET PE Loader","archived":false,"fork":false,"pushed_at":"2019-10-01T16:47:21.000Z","size":547,"stargazers_count":1254,"open_issues_count":4,"forks_count":246,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-04-03T15:11:52.394Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GhostPack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-24T17:44:15.000Z","updated_at":"2025-04-02T01:18:04.000Z","dependencies_parsed_at":"2022-07-14T06:10:37.072Z","dependency_job_id":null,"html_url":"https://github.com/GhostPack/SafetyKatz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GhostPack%2FSafetyKatz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GhostPack%2FSafetyKatz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GhostPack%2FSafetyKatz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GhostPack%2FSafetyKatz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GhostPack","download_url":"https://codeload.github.com/GhostPack/SafetyKatz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248590533,"owners_count":21129841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T09:01:02.163Z","updated_at":"2025-04-12T15:37:32.046Z","avatar_url":"https://github.com/GhostPack.png","language":"C#","funding_links":[],"categories":["\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e新添加的","\u003ca id=\"9eee96404f868f372a6cbc6769ccb7f8\"\u003e\u003c/a\u003e工具","\u003ca id=\"620af0d32e6ac1f4a3e97385d4d3efc0\"\u003e\u003c/a\u003ePE"],"sub_categories":["\u003ca id=\"31185b925d5152c7469b963809ceb22d\"\u003e\u003c/a\u003e新添加的","\u003ca id=\"574db8bbaafbee72eeb30e28e2799458\"\u003e\u003c/a\u003e工具"],"readme":"# SafetyKatz\r\n\r\n----\r\n\r\nSafetyKatz is a combination of slightly modified version of [@gentilkiwi](https://twitter.com/gentilkiwi)'s [Mimikatz](https://github.com/gentilkiwi/mimikatz/) project and [@subtee](https://twitter.com/subtee)'s [.NET PE Loader](https://github.com/re4lity/subTee-gits-backups/blob/master/PELoader.cs).\r\n\r\nFirst, the [MiniDumpWriteDump](https://docs.microsoft.com/en-us/windows/desktop/api/minidumpapiset/nf-minidumpapiset-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\r\n**sekurlsa::logonpasswords** and **sekurlsa::ekeys** on the minidump file, removing the file after execution is complete.\r\n\r\n#### Modifications\r\n\r\n* @subtee's PE Loader was slightly modified so some of the pointer arithmetic worked better on .NET 3.5\r\n* @gentilkiwi's Mimikatz project was modified to strip some functionality for size reasons, and to automatically run the sekurlsa::minidump mode (deleting the minidump file after). If you don't trust my compiled version, feel free to build it yourself :)\r\n\r\n\r\n[@harmj0y](https://twitter.com/harmj0y) is the primary author of this port.\r\n\r\nSafetyKatz is licensed under the BSD 3-Clause license.\r\n\r\n## Usage\r\n\r\n    C:\\Temp\u003eSafetyKatz.exe\r\n\r\n    [*] Dumping lsass (808) to C:\\WINDOWS\\Temp\\debug.bin\r\n    [+] Dump successful!\r\n\r\n    [*] Executing loaded Mimikatz PE\r\n\r\n    .#####.   mimikatz 2.1.1 (x64) built on Jul  7 2018 03:36:26 - lil!\r\n    .## ^ ##.  \"A La Vie, A L'Amour\" - (oe.eo)\r\n    ## / \\ ##  / *** Benjamin DELPY `gentilkiwi` ( benjamin@gentilkiwi.com )\r\n    ## \\ / ##       \u003e http://blog.gentilkiwi.com/mimikatz\r\n    '## v ##'       Vincent LE TOUX             ( vincent.letoux@gmail.com )\r\n    '#####'        \u003e http://pingcastle.com / http://mysmartlogon.com   *** /\r\n\r\n    mimikatz # Opening : 'C:\\Windows\\Temp\\debug.bin' file for minidump...\r\n\r\n    Authentication Id : 0 ; 28935082 (00000000:01b983aa)\r\n    Session           : Interactive from 0\r\n    User Name         : blahuser\r\n    Domain            : WINDOWS10\r\n    Logon Server      : WINDOWS10\r\n    Logon Time        : 7/15/2018 1:07:55 PM\r\n    SID               : S-1-5-21-1473254003-2681465353-4059813368-1002\r\n            msv :\r\n            [00000003]\r\n    Primary\r\n            * Username : blahuser\r\n            * Domain   : WINDOWS10\r\n\r\n    ...(snip)...\r\n\r\n    mimikatz # deleting C:\\Windows\\Temp\\debug.bin\r\n\r\n\r\n## Compile Instructions\r\n\r\nWe are not planning on releasing binaries for SafetyKatz, so you will have to compile yourself :)\r\n\r\nSafetyKatz has been built against.NET 3.5 and is compatible with[Visual Studio 2015 Community Edition](https://go.microsoft.com/fwlink/?LinkId=532606\u0026clcid=0x409). Simply open up the project .sln, choose \"release\", and build.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostpack%2Fsafetykatz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostpack%2Fsafetykatz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostpack%2Fsafetykatz/lists"}