Unverified Commit e8947f72 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #233198 from fabaff/keepwn

keepwn: init at 0.1
parents 9a3e288d 27a617a7
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "keepwn";
  version = "0.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Orange-Cyberdefense";
    repo = "KeePwn";
    rev = "refs/tags/${version}";
    hash = "sha256-s+r6QEUzkzCbs5j1G+PVgDx8cvnmQzEQ1MHAakG+skA=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    chardet
    impacket
    lxml
    termcolor
  ];

  postInstall = lib.optionalString (!stdenv.isDarwin) ''
    mv $out/bin/KeePwn $out/bin/$pname
  '';

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [
    "keepwn"
  ];

  meta = with lib; {
    description = "Tool to automate KeePass discovery and secret extraction";
    homepage = "https://github.com/Orange-Cyberdefense/KeePwn";
    changelog = "https://github.com/Orange-Cyberdefense/KeePwn/releases/tag/${version}";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9034,6 +9034,8 @@ with pkgs;
  keepalived = callPackage ../tools/networking/keepalived { };
  keepwn = callPackage ../tools/security/keepwn { };
  kestrel = callPackage ../tools/security/kestrel { };
  kexec-tools = callPackage ../os-specific/linux/kexec-tools { };