--audit scan automatically creates a session file that tracks scan progress. If the scan is interrupted — by a network issue, keyboard interrupt, or system crash — you can resume exactly where it left off.
Session file creation
The session file is created automatically at the start of every--audit run. Its path is printed before scanning begins:
relayking-session.resume in the current working directory.
What is saved
The session file records:- Phase — current stage of the scan (init, targets_ready, scanning, complete)
- Target list — the full resolved host list from AD enumeration and DNS resolution
- Tier-0 assets — SCCM, ADCS, and Exchange servers identified during enumeration
- DC hostnames — domain controllers discovered via LDAP
- Port scan results — open ports per host (when
--proto-portscanis used) - Completed hosts — per-host scan results for every host that finished scanning
- Completed groups — which scan groups have been fully processed
- Output configuration —
--output-file,-oformat list, and--gen-relay-listfilename
What is skipped on resume
When--session-resume is used, RelayKing skips:
- AD computer enumeration via LDAP
- DNS resolution for all hosts
- Port scanning for hosts already in the session
- Protocol scanning for hosts already marked complete
Resuming a scan
If you want to override the output file or format on resume, pass those flags explicitly. Command-line values take precedence over session-restored values.
Output behavior on resume
Output is appended to existing files rather than overwritten. A blank separator line is written between the previously completed output and the resumed section. This applies to all configured output formats and the relay list file.Session lifecycle
| Phase | Description |
|---|---|
init | Session created, no targets loaded yet |
targets_ready | AD enumeration and DNS resolution complete |
scanning | Active protocol scanning in progress |
complete | All groups finished; session will not be resumed |
complete. Attempting to resume a completed session will load successfully but will find no remaining work to do.
