2024-10-10 22:22:06 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
2022-09-21 07:16:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "coercer";
|
2023-12-17 01:35:36 +00:00
|
|
|
version = "2.4.3";
|
2024-10-10 22:22:06 +00:00
|
|
|
pyproject = true;
|
2022-09-21 07:16:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "p0dalirius";
|
|
|
|
repo = "Coercer";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-12-17 01:35:36 +00:00
|
|
|
hash = "sha256-WeaKToKYIB+jjTNIQvAUQQNb25TsNWALYZwIZuBjkPE=";
|
2022-09-21 07:16:16 +00:00
|
|
|
};
|
|
|
|
|
2024-10-10 22:22:06 +00:00
|
|
|
pythonRelaxDeps = [ "impacket" ];
|
2023-12-17 01:35:36 +00:00
|
|
|
|
2024-10-10 22:22:06 +00:00
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
2022-09-21 07:16:16 +00:00
|
|
|
|
2024-10-10 22:22:06 +00:00
|
|
|
dependencies = with python3.pkgs; [
|
2022-09-21 07:16:16 +00:00
|
|
|
impacket
|
2023-12-17 01:35:36 +00:00
|
|
|
xlsxwriter
|
2022-09-21 07:16:16 +00:00
|
|
|
];
|
|
|
|
|
2024-10-10 22:22:06 +00:00
|
|
|
pythonImportsCheck = [ "coercer" ];
|
2022-09-21 07:16:16 +00:00
|
|
|
|
2023-05-14 20:31:26 +00:00
|
|
|
# this file runs into issues on case-insensitive filesystems
|
|
|
|
# ValueError: Both <...>/coercer and <...>/coercer.py exist
|
|
|
|
postPatch = ''
|
|
|
|
rm Coercer.py
|
|
|
|
'';
|
|
|
|
|
2022-09-21 07:16:16 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to automatically coerce a Windows server";
|
|
|
|
homepage = "https://github.com/p0dalirius/Coercer";
|
2024-10-10 22:22:06 +00:00
|
|
|
changelog = "https://github.com/p0dalirius/Coercer/releases/tag/${version}";
|
|
|
|
license = licenses.gpl2Only;
|
2022-09-21 07:16:16 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-10-10 22:22:06 +00:00
|
|
|
mainProgram = "coercer";
|
2022-09-21 07:16:16 +00:00
|
|
|
};
|
|
|
|
}
|