A terminal-based CTF (Capture The Flag) engine with CLI and TUI interfaces for cybersecurity training