mirror of
https://github.com/Pennyw0rth/NetExec.git
synced 2026-11-07 09:26:01 -10:00
printnightmare was absent from the e2e command list entirely, including the combined multi-module line. It defines its own impacket NDRCALL requests, which makes it the module most sensitive to how the loader registers modules in sys.modules — and the gap meant a loader regression that broke it ran clean through the whole suite. Add it standalone and to the multi-module line, so both single-module and multi-module loading paths exercise it.
nxc Tests
Running Tests
Unit Tests
- Install nxc (either in venv or via Poetry)
- Run
pytest(orpoetry run pytest)
End to End Tests
- Install nxc (either in venv or via Poetry):
poetry install --with dev - Run
python tests/e2e_tests.py -t $IP -u $USER -p $PASS, with optional-kparameter- Poetry:
poetry run python tests/e2e_tests.py -t $IP -u $USER -p $PASS
- Poetry:
- For testing standalone binaries (e.g. windows) run:
python tests/e2e_tests.py --executable dist/nxc.exe -t $IP -u $USER -p $PASS - To see full errors (that might show real errors not caught by checking the exit code), run with the
--errorsflag