crackmapexec: init at 5.2.2
This commit is contained in:
parent
332422d410
commit
717403a6bb
2 changed files with 74 additions and 0 deletions
72
pkgs/tools/security/crackmapexec/default.nix
Normal file
72
pkgs/tools/security/crackmapexec/default.nix
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, python3
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "crackmapexec";
|
||||||
|
version = "5.2.2";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "byt3bl33d3r";
|
||||||
|
repo = "CrackMapExec";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-IgD8RjwVEoEXmnHU3DR3wzUdJDWIbFw9sES5qYg30a8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
poetry-core
|
||||||
|
pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
aioconsole
|
||||||
|
beautifulsoup4
|
||||||
|
dsinternals
|
||||||
|
impacket
|
||||||
|
lsassy
|
||||||
|
msgpack
|
||||||
|
neo4j
|
||||||
|
paramiko
|
||||||
|
pylnk3
|
||||||
|
pypsrp
|
||||||
|
pywerview
|
||||||
|
requests
|
||||||
|
requests_ntlm
|
||||||
|
termcolor
|
||||||
|
terminaltables
|
||||||
|
xmltodict
|
||||||
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Switch to poetry-core, https://github.com/byt3bl33d3r/CrackMapExec/pull/580
|
||||||
|
(fetchpatch {
|
||||||
|
name = "switch-to-poetry-core.patch";
|
||||||
|
url = "https://github.com/byt3bl33d3r/CrackMapExec/commit/e5c6c2b5c7110035b34ea7a080defa6d42d21dd4.patch";
|
||||||
|
hash = "sha256-5SpoQD+uSYLM6Rdq0/NTbyEv4RsBUuawNNsknS71I9M=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = true;
|
||||||
|
|
||||||
|
pythonRemoveDeps = [
|
||||||
|
"bs4"
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -4979,6 +4979,8 @@ with pkgs;
|
||||||
|
|
||||||
cpufetch = callPackage ../tools/misc/cpufetch { };
|
cpufetch = callPackage ../tools/misc/cpufetch { };
|
||||||
|
|
||||||
|
crackmapexec = callPackage ../tools/security/crackmapexec { };
|
||||||
|
|
||||||
crackxls = callPackage ../tools/security/crackxls { };
|
crackxls = callPackage ../tools/security/crackxls { };
|
||||||
|
|
||||||
crd2pulumi = callPackage ../development/tools/crd2pulumi { };
|
crd2pulumi = callPackage ../development/tools/crd2pulumi { };
|
||||||
|
|
Loading…
Reference in a new issue