keepwn: init at 0.1

This commit is contained in:
Fabian Affolter 2023-05-21 11:53:15 +02:00
parent b7a9deb5bd
commit 27a617a770
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ 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 ];
};
}

View file

@ -9013,6 +9013,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 { };