2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, impacket
|
|
|
|
, netaddr
|
2022-11-21 17:40:18 +00:00
|
|
|
, pythonOlder
|
2021-01-15 22:18:51 +00:00
|
|
|
, pypykatz
|
2021-10-14 00:43:12 +00:00
|
|
|
, rich
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lsassy";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "3.1.6";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Hackndo";
|
|
|
|
repo = pname;
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-Rdgz9hU2un1CKX2dRI8tVzL2lG7Ufd5HwninOxOsxjM=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
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
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|