nixpkgs/pkgs/tools/security/crackmapexec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.3 KiB
Nix
Raw Normal View History

2022-06-09 09:16:12 +00:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "crackmapexec";
version = "5.4.0";
2022-06-09 09:16:12 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "Porchetta-Industries";
2022-06-09 09:16:12 +00:00
repo = "CrackMapExec";
rev = "refs/tags/v${version}";
hash = "sha256-V2n840QyLofTfQE4vtFYGfQwl65sklp+KfNS9RCLvI8=";
2022-06-09 09:16:12 +00:00
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = with python3.pkgs; [
aioconsole
2022-08-08 10:23:27 +00:00
aardwolf
2022-06-09 09:16:12 +00:00
beautifulsoup4
dsinternals
impacket
lsassy
masky
2022-06-09 09:16:12 +00:00
msgpack
neo4j
paramiko
pylnk3
pypsrp
pywerview
requests
requests_ntlm
termcolor
terminaltables
xmltodict
];
2022-08-08 10:23:27 +00:00
postPatch = ''
substituteInPlace pyproject.toml \
--replace '{ git = "https://github.com/mpgn/impacket.git", branch = "master" }' '"x"'
'';
2022-06-09 09:16:12 +00:00
pythonRelaxDeps = true;
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"cme"
];
meta = with lib; {
description = "Tool for pentesting networks";
homepage = "https://github.com/Porchetta-Industries/CrackMapExec";
changelog = "https://github.com/Porchetta-Industries/CrackMapExec/releases/tag/v${version}";
2022-06-09 09:16:12 +00:00
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
mainProgram = "cme";
};
}