Skip to main content
RelayKing supports six output formats. The default is plaintext. Specify a format with -o / --output-format.

Producing multiple formats at once

Pass a comma-separated list of formats to -o and specify a base filename with --output-file. RelayKing writes one file per format, appending the appropriate extension:
python3 relayking.py -u lowpriv -p pass -d corp.local --dc-ip 10.0.0.1 \
  --audit -o plaintext,json,csv --output-file relayking-scan
This produces:
relayking-scan.txt
relayking-scan.json
relayking-scan.csv

File extension mapping

FormatExtension
plaintext.txt
json.json
xml.xml
csv.csv
grep.grep
markdown.md

Format details

Human-readable output with labeled sections, a summary block, relay paths sorted by severity, and per-host protocol detail. This is the default format.
python3 relayking.py -u lowpriv -p pass -d corp.local --audit -o plaintext
Example output structure:
================================================================================
RelayKing Scan Results
================================================================================

SUMMARY
--------------------------------------------------------------------------------
Total Hosts Scanned:    147
Relayable Hosts:        23
Critical Relay Paths:   4
High Risk Paths:        11
Medium Risk Paths:      8
Low Risk Paths:         2
Scan Duration:          142.37 seconds

RELAY ATTACK PATHS
--------------------------------------------------------------------------------
[CRITICAL] Relay to LDAP on dc01.corp.local / 10.0.0.1 - Can create computer accounts, modify ACLs (RBCD, DACL abuse)
[HIGH] Relay to SMB on fileserver01.corp.local / 10.0.0.20 - File system access, potential code execution via services

DETAILED HOST RESULTS
================================================================================

Host: dc01.corp.local
--------------------------------------------------------------------------------
  [LDAP] RELAYABLE
    Version: Windows Server 2022
    Signing Required: False
    Channel Binding: False
  [SMB] PROTECTED
    Version: SMB 3.1.1
    Signing Required: True

Build docs developers (and LLMs) love