--gen-relay-list <file> flag tells RelayKing to write all relayable targets to a file in URI format as the scan progresses. The output file is compatible with ntlmrelayx.py’s -tf flag.
Output format
Each entry is a URI string:- Non-HTTP protocols:
protocol://hostname - HTTP/HTTPS:
protocol://hostname:port/path— the full NTLM-enabled path is included, since relaying to the web root will not work.
For HTTP and HTTPS targets, RelayKing includes the specific path that exposes NTLM authentication (e.g.,
/ccm_system_windowsauth for SCCM or /certsrv/ for ADCS). Generic paths that do not trigger NTLM negotiation are excluded.Complete workflow
Run RelayKing with relay list generation
relaytargets.txt after each scan group completes.Session resume behavior
When resuming an interrupted scan with--session-resume, the relay list filename is restored from the session file automatically. Newly discovered targets are appended to the existing file rather than overwriting it.
Duplicate handling
RelayKing deduplicates relay targets within each scan group. If multiple scan groups produce the same target URI, it may appear more than once across groups when appending. Usesort -u to deduplicate the final file if needed:
