From eb22cbd0ecc71b2b3ce4fa824044eca1063e81a4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 8 Nov 2021 23:28:12 +0100 Subject: [PATCH] certipy: init at unstable-2021-11-08 --- pkgs/tools/security/certipy/default.nix | 39 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/tools/security/certipy/default.nix diff --git a/pkgs/tools/security/certipy/default.nix b/pkgs/tools/security/certipy/default.nix new file mode 100644 index 000000000000..9e3d4573df22 --- /dev/null +++ b/pkgs/tools/security/certipy/default.nix @@ -0,0 +1,39 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "certipy"; + version = "unstable-2021-11-08"; + + src = fetchFromGitHub { + owner = "ly4k"; + repo = "Certipy"; + rev = "c2f5581505c54f3bf9fe4e6f07c17fa9ef501cab"; + sha256 = "0m2n30prqd9d02kmryk8vry4cabcad1892qr8a02qfg6r98x8q3q"; + }; + + propagatedBuildInputs = with python3.pkgs; [ + asn1crypto + pycryptodome + impacket + ldap3 + pyasn1 + dnspython + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "certipy" + ]; + + meta = with lib; { + description = "Tool to enumerate and abuse misconfigurations in Active Directory Certificate Services"; + homepage = "https://github.com/ly4k/Certipy"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 56c15d52b3d5..305f53dddcb4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1514,6 +1514,8 @@ with pkgs; certigo = callPackage ../tools/admin/certigo { }; + certipy = callPackage ../tools/security/certipy { }; + catcli = python3Packages.callPackage ../tools/filesystems/catcli { }; chezmoi = callPackage ../tools/misc/chezmoi { };