2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
impacket,
|
|
|
|
netaddr,
|
|
|
|
poetry-core,
|
|
|
|
pypykatz,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
rich,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lsassy";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.1.11";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Hackndo";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "lsassy";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-boPFrmPqaHpezxXM3VM50i+n+n+gXkuwP4ErpMpN/AI=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"impacket"
|
|
|
|
"netaddr"
|
|
|
|
"rich"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-01-15 22:18:51 +00:00
|
|
|
impacket
|
|
|
|
netaddr
|
|
|
|
pypykatz
|
2021-10-14 00:43:12 +00:00
|
|
|
rich
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require an active domain controller
|
|
|
|
doCheck = false;
|
2021-10-14 00:43:12 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "lsassy" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to extract data from Local Security Authority Subsystem Service (LSASS)";
|
|
|
|
homepage = "https://github.com/Hackndo/lsassy";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/Hackndo/lsassy/releases/tag/v${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "lsassy";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|