Skip to content

v1.0.3 - Alfred

Choose a tag to compare

@mpgn mpgn released this 06 Sep 20:45
· 56 commits to main since this release
Immutable release. Only release title and notes can be modified.

This release is about what the model reads back. Same tool surface, better answers: fewer silent empties, fewer raw numbers to interpret, and no dead ends where nxc removed something.

Built and verified against nxc 1.5.1 "Yippie-Ki-Yay" build 677 (2bdc7e5e), up from build 595.

New nxc capabilities wrapped

  • ldap_ous — the new --ous flag. Without an argument it returns the OU inventory as ous ({ou, distinguished_name}); the DN is the useful half, since it is what you feed to ldap_query as base_dn to scope a search. With ou="<name>" it returns the users under that OU's baseDN as users.
  • nfs_cat_file — the new --cat flag: read a remote file straight to stdout, without writing anything to the nxc host. Loot-gated, like nfs_get_file.
  • vnc_timeout on both VNC tools — the new --vnc-timeout. A host that completes the TCP connect and then stalls in the RFB handshake used to hang the scan; it is now bounded, and reported as a timeout rather than as a rejected password.
  • nxc's two new modules, rclone (SMB, credential dumping) and resetnightmare (LDAP, CVE-2026-27912), need no wrapper: nxc_run_module discovers them from -L and gates them by their declared category.

Results a model can act on

  • unparsed_lines on every result. nxc prints headings through markers ([*]/[+]/[-]) but prints its findings untagged, so records/counts could read "nothing found" over a stdout full of results. Every result now carries a count of the untagged non-empty lines: when it is greater than zero, the summary is incomplete and the payload is in stdout. It is a pointer, not a second copy.
  • Retired nxc modules answer with the replacement. nxc_list_modules no longer offers modules nxc has removed as if they were runnable; they are served separately with the tool that does the job now (enum_trusts → ldap_dc_list, group-mem → ldap_groups, the coerce family → smb_coerce_plus, firefox → smb_dpapi, and the rest). nxc_run_module refuses them up front with that same pointer, instead of failing later as "offensive action, needs NXC_MODE=full", which invited a pointless request to raise the mode.
  • Domain trusts are routed, not guessed. ldap_dc_list documents that its output already decodes each trust (north.example.local -> Bidirectional -> Within Forest), and says what to do when the trusted domain's DCs do not resolve over DNS: read the attributes directly with ldap_query on (objectClass=trustedDomain).
  • Raw AD numbers are decoded. ldap_query entries now carry a decoded field for userAccountControl, trustDirection, trustType and trustAttributes, so a bitmask does not have to be interpreted from memory.
  • ldap_query takes attributes as a list. A comma-separated string used to be passed straight to nxc, which silently returned zero attributes with exit 0. Lists are now the documented form, and a string is normalised (commas, semicolons or spaces).
  • smb_enum_hosts is explicit about is_dc. It is True or None, never False: nxc emits its (DC:...) tag only when it concluded the host is a domain controller, so None means "not tagged", not "the parser missed it".
  • Module listings also surface nxc's LOW/HIGH PRIVILEGE MODULES banner.

Reliability

  • Timeouts no longer orphan nxc or lose output. The command is started in its own process group and the whole group is killed on timeout: argv[0] is usually a launcher (uv run …, poetry, pipx, docker), so killing the process alone left nxc running, reparented to init, still holding the pipes, and the recovery read then hung forever. The output drains also write into caller-owned buffers rather than going through communicate(), which loses everything it has read when cancelled: 3.1 MB were measured lost on a command still writing when it expired. Partial output now comes back with timed_out=True.
  • Launcher noise is filtered out of stderr. uv's "Building/Installed" chatter no longer looks like an nxc error.

Discovery

  • nxc_find_tool matches short domain abbreviations as whole words, so "which users are in this OU" reaches ldap_ous instead of the generic user tools. Substring matching cannot do this: "ou" also lives inside "group", "you" and "about".

Docs

The README's tool count is corrected to 128 (114 protocol tools + 9 discovery/meta-tools + 5 workspace-DB readers); the previous 131 counted the meta-tools twice.

Compatibility

No tool was renamed or removed and no parameter became required. unparsed_lines is additive, and ldap_query's attributes still accepts the string form.

Validation

425 unit tests, plus a live pass against a GOAD lab at build 677: both --ous shapes parsed, group members intact, is_dc correct on a DC and on a member server, and the parser audit re-run on two domain controllers with no drift. vnc_timeout was validated against a deliberately silent local listener. nfs_cat_file is source-verified and unit-tested only, for lack of an NFS server to point it at.

What's Changed

Full Changelog: v1.0.2...v1.0.3