mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
45 lines
972 B
Nix
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 ];
|
|
};
|
|
}
|