diff --git a/pkgs/tools/security/certipy/default.nix b/pkgs/development/python-modules/certipy-ad/default.nix similarity index 69% rename from pkgs/tools/security/certipy/default.nix rename to pkgs/development/python-modules/certipy-ad/default.nix index f369e97a5640..3f97d996bdfb 100644 --- a/pkgs/tools/security/certipy/default.nix +++ b/pkgs/development/python-modules/certipy-ad/default.nix @@ -1,13 +1,25 @@ { lib +, asn1crypto +, buildPythonPackage +, dnspython +, dsinternals , fetchFromGitHub -, python3 +, impacket +, ldap3 +, pyasn1 +, pycryptodome +, pyopenssl +, pythonOlder +, requests_ntlm }: -python3.pkgs.buildPythonApplication rec { - pname = "certipy"; +buildPythonPackage rec { + pname = "certipy-ad"; version = "4.4.0"; format = "setuptools"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "ly4k"; repo = "Certipy"; @@ -21,11 +33,12 @@ python3.pkgs.buildPythonApplication rec { --replace "pyasn1==0.4.8" "pyasn1" ''; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = [ asn1crypto dnspython dsinternals impacket + pyopenssl ldap3 pyasn1 pycryptodome @@ -40,7 +53,7 @@ python3.pkgs.buildPythonApplication rec { ]; meta = with lib; { - description = "Tool to enumerate and abuse misconfigurations in Active Directory Certificate Services"; + description = "Library and CLI tool to enumerate and abuse misconfigurations in Active Directory Certificate Services"; homepage = "https://github.com/ly4k/Certipy"; changelog = "https://github.com/ly4k/Certipy/releases/tag/${version}"; license = with licenses; [ mit ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4f29cd242c57..d188ecdda557 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3228,7 +3228,7 @@ with pkgs; certigo = callPackage ../tools/admin/certigo { }; - certipy = callPackage ../tools/security/certipy { }; + certipy = with python3Packages; toPythonApplication certipy-ad; catcli = python3Packages.callPackage ../tools/filesystems/catcli { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7fef6b0d2445..6a5db86ce213 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1719,6 +1719,8 @@ self: super: with self; { certipy = callPackage ../development/python-modules/certipy { }; + certipy-ad = callPackage ../development/python-modules/certipy-ad { }; + certomancer = callPackage ../development/python-modules/certomancer { }; certvalidator = callPackage ../development/python-modules/certvalidator { };