netexec: fix read-only nxc.conf file

This commit is contained in:
Mag1cByt3s
2025-12-26 22:42:09 +01:00
parent 772f012d4a
commit b810057378
+4
View File
@@ -48,6 +48,10 @@ python.pkgs.buildPythonApplication rec {
];
postPatch = ''
substituteInPlace nxc/first_run.py \
--replace-fail "from os import mkdir" "from os import mkdir, chmod" \
--replace-fail "shutil.copy(default_path, NXC_PATH)" $'shutil.copy(default_path, CONFIG_PATH)\n chmod(CONFIG_PATH, 0o600)'
substituteInPlace pyproject.toml \
--replace-fail " @ git+https://github.com/Pennyw0rth/Certipy" "" \
--replace-fail " @ git+https://github.com/fortra/impacket" "" \