Files
NetExec/tests
Marshall Hallenbeck 476228c386 test(e2e): cover printnightmare in e2e_commands
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.
2026-07-28 15:08:13 -04:00
..
2024-06-05 12:18:04 -04:00
2025-10-23 05:14:21 -04:00
2024-05-26 18:24:36 +02:00
2026-07-21 13:20:23 -04:00

nxc Tests

Running Tests

Unit Tests

  • Install nxc (either in venv or via Poetry)
  • Run pytest (or poetry 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 -k parameter
    • Poetry: poetry run python tests/e2e_tests.py -t $IP -u $USER -p $PASS
  • 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 --errors flag