sshmitm.tutorial.hosts.logfile_inc.router01 package

Mock host: router01.logfileinc.internal

Core network router managed by Thomas Webb. SNMP is enabled with a read-write community string stored in the running configuration. Thomas’s SSH sessions tend to stay open for hours.

class sshmitm.tutorial.hosts.logfile_inc.router01.Router01

Bases: Host

router01.logfileinc.internal — core network router.

__init__()
address: ClassVar[str] = '127.4.0.1'
configure(session_data)

Inject session values (passwords, keys, secrets) before start.

Parameters:

session_data (dict)

Return type:

None

hostname: ClassVar[str] = 'router01.logfileinc.internal'
label: ClassVar[str] = 'router01'
segment

alias of ManagementSegment

services: ClassVar[list[Service]] = [<sshmitm.tutorial.hosts.SSHService object>, <sshmitm.tutorial.hosts.SNMPService object>]
sftp_files(session_data)
Parameters:

session_data (dict)

Return type:

dict[str, bytes]

shell_outputs(session_data)
Parameters:

session_data (dict)

Return type:

dict[str, bytes]

shell_prompt()
Return type:

bytes

async start(events)

Start mock services. Store the event queue for later use.

Parameters:

events (Queue)

Return type:

None

async stop()

Stop all running mock services.

Return type:

None

users: ClassVar[list[type[User]]] = [<class 'sshmitm.tutorial.hosts.logfile_inc.ThomasWebb'>]