about summary refs log tree commit diff
path: root/pkgs/by-name/ad
diff options
context:
space:
mode:
authorh7x4 <h7x4@nani.wtf>2024-01-30 10:19:23 +0100
committerh7x4 <h7x4@nani.wtf>2024-01-30 18:36:01 +0100
commit863bdaa51be1bb67a8a9247f1cfed419d7558adf (patch)
tree4f77d0390cd2d617985e0a152ea3444f9547f6b1 /pkgs/by-name/ad
parent7efa39690a5cf4c2f9a2ec2584b1eabad9a5a26f (diff)
ad-ldap-enum: init at 0-unstable-2023-02-10
Diffstat (limited to 'pkgs/by-name/ad')
-rw-r--r--pkgs/by-name/ad/ad-ldap-enum/package.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/by-name/ad/ad-ldap-enum/package.nix b/pkgs/by-name/ad/ad-ldap-enum/package.nix
new file mode 100644
index 0000000000000..5d868bf1dd4e5
--- /dev/null
+++ b/pkgs/by-name/ad/ad-ldap-enum/package.nix
@@ -0,0 +1,49 @@
+{ lib
+, stdenvNoCC
+, fetchFromGitHub
+, python3
+}:
+
+stdenvNoCC.mkDerivation {
+  pname = "ad-ldap-enum";
+  version = "0-unstable-2023-02-10";
+  src = fetchFromGitHub {
+    owner = "CroweCybersecurity";
+    repo = "ad-ldap-enum";
+    rev = "60bc5bb111e2708d4bc2157f9ae3d5e0d06ece75";
+    hash = "sha256-b77yWmZGyOSQSwnRhGqo501jO6XYd+qpx1pb+zkduVI=";
+  };
+
+  buildInputs = [
+    (python3.withPackages (ps: with ps; [
+      argcomplete
+      ldap3
+      openpyxl
+    ]))
+  ];
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm555 ad-ldap-enum.py $out/bin/ad-ldap-enum
+
+    runHook postInstall
+  '';
+
+  fixupPhase = ''
+    runHook preFixup
+
+    patchShebangs $out/bin/ad-ldap-enum
+
+    runHook postFixup
+  '';
+
+  meta = with lib; {
+    description = "An LDAP based Active Directory user and group enumeration tool";
+    homepage = "https://github.com/CroweCybersecurity/ad-ldap-enum";
+    license = licenses.mit;
+    maintainers = with maintainers; [ h7x4 ];
+    platforms = python3.meta.platforms;
+    mainProgram = "ad-ldap-enum";
+  };
+}