587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
impacket,
|
|
netaddr,
|
|
poetry-core,
|
|
pypykatz,
|
|
pythonOlder,
|
|
pythonRelaxDepsHook,
|
|
rich,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lsassy";
|
|
version = "3.1.10";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Hackndo";
|
|
repo = "lsassy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Eqparqj1O0gK0MvR4BBkGVNji2WXEnMsdWvKiR6XHFk=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"impacket"
|
|
"netaddr"
|
|
"rich"
|
|
];
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
impacket
|
|
netaddr
|
|
pypykatz
|
|
rich
|
|
];
|
|
|
|
# Tests require an active domain controller
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "lsassy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to extract data from Local Security Authority Subsystem Service (LSASS)";
|
|
homepage = "https://github.com/Hackndo/lsassy";
|
|
changelog = "https://github.com/Hackndo/lsassy/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "lsassy";
|
|
};
|
|
}
|