ksp demo
ksp demo
Command ReferenceRun an automated visual simulation demonstrating a complete server-client handshake, multiplexing, and teardown.
Interactive & Fun
Purpose
Run an automated visual simulation demonstrating a complete server-client handshake, multiplexing, and teardown.
Syntax
Command-line specificationbash / powershell
ksp demo [OPTIONS]
Options & Flags
| Option Flag | Description |
|---|---|
| --speed <MULT> | Animation speed multiplier (default: `1.0`). |
| --scenario <NAME> | Scenario preset: `standard`, `high-loss-network`, `mitm-attack-blocked`, or `replay-rejection`. |
Example Usage
Example command
ksp demo --scenario mitm-attack-blocked
Expected Output
[DEMO] Starting KSP Simulation Scenario: MITM Attack Defense... [CLIENT] Sending ClientHello across network... [MITM] Eve intercepts frame and injects forged ServerHello + Fake Certificate! [CLIENT] Verifying certificate signature against local Ed25519 root anchor... [CLIENT] ❌ SIGNATURE MISMATCH DETECTED! [CLIENT] Sending GoAway (Reason: CERTIFICATE_INVALID | Code: 0x0008) [CLIENT] Socket closed immediately. Attack thwarted! ✔ Simulation finished. KSP cryptographic binding protected the session.
Implementation Notes
Great for technical presentations, team demonstrations, and verifying security behavior under adversarial conditions.