Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, john 5, python3 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "adenum"; 10 version = "unstable-2022-04-01"; 11 format = "other"; 12 13 src = fetchFromGitHub { 14 owner = "SecuProject"; 15 repo = "ADenum"; 16 rev = "0e3576eca1d987d3ef22d53fc725189bb301e804"; 17 hash = "sha256-8s4Kmt4ZjYbQGGVDWKfuRZ6kthcL8FiQytoq9Koy7Kc="; 18 }; 19 20 propagatedBuildInputs = with python3.pkgs; [ 21 impacket 22 pwntools 23 python-ldap 24 ] ++ [ 25 john 26 ]; 27 28 installPhase = '' 29 runHook preInstall 30 31 # Add shebang so we can patch it 32 sed -i -e '1i#!/usr/bin/python' ADenum.py 33 patchShebangs ADenum.py 34 install -vD ADenum.py $out/bin/adenum 35 36 runHook postInstall 37 ''; 38 39 # Project has no tests 40 doCheck = false; 41 42 meta = with lib; { 43 description = "Tool to find misconfiguration through LDAP"; 44 homepage = "https://github.com/SecuProject/ADenum"; 45 license = with licenses; [ gpl3Only ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}