mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
netexec: 1.3.0 -> 1.4.0
Diff: https://github.com/Pennyw0rth/NetExec/compare/refs/tags/v1.3.0...refs/tags/v1.4.0 Changelog: https://github.com/Pennyw0rth/NetExec/releases/tag/v1.4.0
This commit is contained in:
parent
496fcd4aee
commit
5f478b3a2b
1 changed files with 8 additions and 9 deletions
|
@ -3,6 +3,7 @@
|
|||
stdenv,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
let
|
||||
python = python3.override {
|
||||
|
@ -27,14 +28,14 @@ let
|
|||
in
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
pname = "netexec";
|
||||
version = "1.3.0";
|
||||
version = "1.4.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Pennyw0rth";
|
||||
repo = "NetExec";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-Pub7PAw6CTN4c/PHTPE9KcnDR2a6hSza1ODp3EWMOH0=";
|
||||
hash = "sha256-1yNnnPntJ5aceX3Z8yYAMLv5bSFfCFVp0pgxAySlVfE=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = true;
|
||||
|
@ -46,8 +47,9 @@ python.pkgs.buildPythonApplication rec {
|
|||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail '{ git = "https://github.com/fortra/impacket.git" }' '"*"' \
|
||||
--replace-fail '{ git = "https://github.com/Pennyw0rth/NfsClient" }' '"*"'
|
||||
--replace-fail " @ git+https://github.com/fortra/impacket.git" "" \
|
||||
--replace-fail " @ git+https://github.com/wbond/oscrypto" "" \
|
||||
--replace-fail " @ git+https://github.com/Pennyw0rth/NfsClient" ""
|
||||
'';
|
||||
|
||||
build-system = with python.pkgs; [
|
||||
|
@ -56,6 +58,7 @@ python.pkgs.buildPythonApplication rec {
|
|||
];
|
||||
|
||||
dependencies = with python.pkgs; [
|
||||
jwt
|
||||
aardwolf
|
||||
aioconsole
|
||||
aiosqlite
|
||||
|
@ -89,15 +92,11 @@ python.pkgs.buildPythonApplication rec {
|
|||
xmltodict
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python.pkgs; [ pytestCheckHook ];
|
||||
nativeCheckInputs = with python.pkgs; [ pytestCheckHook ] ++ [ writableTmpDirAsHomeHook ];
|
||||
|
||||
# Tests no longer works out-of-box with 1.3.0
|
||||
doCheck = false;
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Network service exploitation tool (maintained fork of CrackMapExec)";
|
||||
homepage = "https://github.com/Pennyw0rth/NetExec";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue