depot/third_party/nixpkgs/pkgs/by-name/mi/mimikatz/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
850 B
Nix

{ 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 = "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 ];
};
})