From 803787d9dd32eae10857b28ee27ee5a984f7c2c7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 1 Jun 2023 09:57:11 +0200 Subject: [PATCH] certsync: init at unstable-2023-04-14 --- pkgs/tools/security/certsync/default.nix | 37 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/tools/security/certsync/default.nix diff --git a/pkgs/tools/security/certsync/default.nix b/pkgs/tools/security/certsync/default.nix new file mode 100644 index 000000000000..15878c7826fb --- /dev/null +++ b/pkgs/tools/security/certsync/default.nix @@ -0,0 +1,37 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "certsync"; + version = "unstable-2023-04-14"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "zblurx"; + repo = "certsync"; + rev = "f3c8b61f0967a6403d4c592dcbfa8921682452a6"; + hash = "sha256-7Pzss83jf3zKmgQZki18R47OWn5VniZZ/d4N8JgZs+0="; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + certipy-ad + tqdm + ]; + + pythonImportsCheck = [ + "certsync" + ]; + + meta = with lib; { + description = "Dump NTDS with golden certificates and UnPAC the hash"; + homepage = "https://github.com/zblurx/certsync"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d188ecdda557..9277532b7852 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -417,6 +417,8 @@ with pkgs; certgraph = callPackage ../tools/security/certgraph { }; + certsync = callPackage ../tools/security/certsync { }; + cewl = callPackage ../tools/security/cewl { }; chatgpt-cli = callPackage ../tools/misc/chatgpt-cli { };