summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ad/adcskiller/package.nix
blob: 27a7f67ab94dac6a742c57c01e36b7ae4c7bca95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  lib,
  fetchFromGitHub,
  python3,
  coercer,
}:

python3.pkgs.buildPythonApplication {
  pname = "adcskiller";
  version = "0-unstable-2024-05-19";
  pyproject = false;

  src = fetchFromGitHub {
    owner = "grimlockx";
    repo = "ADCSKiller";
    rev = "d74bfea91f24a09df74262998d60f213609b45c6";
    hash = "sha256-ekyGDM9up3h6h21uLEstgn33x+KngX4tOLMhL4B6BA8=";
  };

  buildInputs = [
    coercer
  ];

  propagatedBuildInputs = with python3.pkgs; [
    ldap3
    certipy
  ];

  installPhase = ''
    runHook preInstall

    install -vD $pname.py $out/bin/$pname

    substituteInPlace $out/bin/$pname --replace-fail '"Coercer"' '"coercer"'

    runHook postInstall
  '';

  meta = {
    description = "Python-based tool designed to automate the process of discovering and exploiting Active Directory Certificate Services (ADCS) vulnerabilities";
    homepage = "https://github.com/grimlockx/ADCSKiller";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ exploitoverload ];
    mainProgram = "adcskiller";
  };
}