nixpkgs/pkgs/tools/security/keepwn/default.nix
2023-05-21 11:53:15 +02:00

45 lines
972 B
Nix

{ 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 ];
};
}