feat: add Cisco IOS shell with mode state machine and abbreviation matching (PLAN.md 3.2)

Implements a Cisco IOS CLI emulator with four modes (user exec, privileged exec,
global config, interface config), Cisco-style command abbreviation (e.g. sh run,
conf t), enable password flow, and realistic show command output including
running-config, interfaces, IP routes, and VLANs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 14:58:26 +01:00
parent 058da51f86
commit 5ba62afec3
9 changed files with 1506 additions and 3 deletions

View File

@@ -29,6 +29,11 @@ password = "admin"
# password = "banking"
# shell = "banking"
# [[auth.static_credentials]]
# username = "admin"
# password = "cisco"
# shell = "cisco"
[storage]
db_path = "oubliette.db"
retention_days = 90
@@ -53,6 +58,12 @@ hostname = "ubuntu-server"
# [shell.adventure]
# dungeon_name = "THE OUBLIETTE"
# [shell.cisco]
# hostname = "Router"
# model = "C2960"
# ios_version = "15.0(2)SE11"
# enable_password = "" # empty = accept after 1 failed attempt
# [detection]
# enabled = true
# threshold = 0.6 # 0.01.0, sessions above this trigger notifications