NetExec: list SMB shares with credentials
List SMB shares with credentials.
1. Run the example
Download the NetExec example. Extract it, install httpx, set your API URL and token, then run python client.py. The client uploads the included inputs, submits the command, and saves the result under results/RUN_ID.
2. Check the result
Read stdout for the shares exposed by the isolated SMB target.
Read the native exit code and cleanup status printed by the client. Read results and save reports explains the returned files.
3. Use your own inputs
Edit example.json to change the command arguments, requested outputs or deadline. Replace the files under inputs/ with your own data, keeping the staged paths aligned with the command. The client creates the artifact IDs for you; illustrative IDs shown here must not be copied into a live request.
This example selects the isolated smb-fixture target. To use a reachable target of your own, change the target arguments or driver and remove target_profile. See Run a check against a target for network setup.
Commands, version and prerequisites
Qualified version: 1.5.1. Commands: nxc, nxcdb, netexec, NetExec.
- Protocol assessments need a compatible selected target; Windows-only and privileged features need an appropriate runtime.
Inspect GET /v1/tools/netexec for the current installed version and readiness. The published snapshot has 11 functional case(s), plus timeout and cancellation checks. These examples demonstrate the native path; other flags and inputs are supported within the tool’s runtime limits.