From 265d45675767520c7910ecb6790f3f59b4420cf3 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Sat, 10 Feb 2024 15:55:35 +0100 Subject: [PATCH] mimikatz: init at 2.2.0-20220919 --- pkgs/by-name/mi/mimikatz/package.nix | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/by-name/mi/mimikatz/package.nix diff --git a/pkgs/by-name/mi/mimikatz/package.nix b/pkgs/by-name/mi/mimikatz/package.nix new file mode 100644 index 000000000000..d834e9fdf888 --- /dev/null +++ b/pkgs/by-name/mi/mimikatz/package.nix @@ -0,0 +1,31 @@ +{ lib +, fetchzip +, stdenvNoCC +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "mimikatz"; + version = "2.2.0-20220919"; + + src = fetchzip { + url = "https://github.com/gentilkiwi/mimikatz/releases/download/${finalAttrs.version}/mimikatz_trunk.zip"; + hash = "sha256-wmatI/rEMziBdNiA3HE3MJ0ckdpvsD+LdbB7SKOYdI0="; + stripRoot = false; + }; + + installPhase = '' + runHook preInstall + mkdir -p $out/share/windows/mimikatz + cp -a * $out/share/windows/mimikatz/ + runHook postInstall + ''; + + meta = { + homepage = "https://github.com/gentilkiwi/mimikatz"; + description = "A little tool to play with Windows security"; + license = with lib.licenses; [ cc-by-40 ]; + maintainers = with lib.maintainers; [ d3vil0p3r ]; + platforms = lib.platforms.all; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +})