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

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

65 lines
1.2 KiB
Nix
Raw Normal View History

2022-06-09 09:16:12 +00:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "crackmapexec";
2022-08-08 10:23:27 +00:00
version = "5.3.0";
2022-06-09 09:16:12 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "byt3bl33d3r";
repo = "CrackMapExec";
rev = "v${version}";
2022-08-08 10:23:27 +00:00
hash = "sha256-wPS1PCvR9Ffp0r9lZZkFATt+i+eR5ap16HzLWDZbJKI=";
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
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/byt3bl33d3r/CrackMapExec";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
mainProgram = "cme";
};
}