2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, impacket
|
|
|
|
, netaddr
|
|
|
|
, pypykatz
|
2021-10-14 00:43:12 +00:00
|
|
|
, rich
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lsassy";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "3.0.3";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Hackndo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "sha256-P68c2kQh2/3fUb1fsNujjpjvvXI5zN4WebaeR09N+lY=";
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|