sshmitm.tutorial.hosts.logfile_inc.web01 package
Mock host: web01.logfileinc.internal
Application server running the company’s Django customer portal. Accepts both password and public-key SSH authentication.
- class sshmitm.tutorial.hosts.logfile_inc.web01.Web01
Bases:
Hostweb01.logfileinc.internal — application server, Django customer portal.
- __init__()
- address: ClassVar[str] = '127.2.0.1'
- configure(session_data)
Inject session values (passwords, keys, secrets) before start.
- Parameters:
session_data (
dict)- Return type:
None
- exec_outputs(session_data)
- Parameters:
session_data (
dict)- Return type:
dict[str,bytes]
- hostname: ClassVar[str] = 'web01.logfileinc.internal'
- label: ClassVar[str] = 'web01'
- random_exec_command()
- Return type:
str
- segment
alias of
ApplicationServers
- services: ClassVar[list[Service]] = [<sshmitm.tutorial.hosts.SSHService object>, <sshmitm.tutorial.hosts.HTTPService object>, <sshmitm.tutorial.hosts.HTTPService object>]
- 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.MaxMorgan'>, <class 'sshmitm.tutorial.hosts.logfile_inc.SarahKing'>, <class 'sshmitm.tutorial.hosts.logfile_inc.LisaChen'>]