sshmitm.tutorial.hosts.logfile_inc.db01 package
Mock host: db01.logfileinc.internal
Production PostgreSQL database. Not directly reachable from the developer LAN — only web01 and files may connect. There is no SSH service; db01 is an indirect target reachable only via lateral movement through an already- compromised application server.
The host declaration is included so that check-publickey can probe it for key validity (CVE-2016-20012) without starting any interactive service.
- class sshmitm.tutorial.hosts.logfile_inc.db01.DB01
Bases:
Hostdb01.logfileinc.internal — production PostgreSQL database.
- __init__()
- address: ClassVar[str] = '127.3.0.1'
- configure(session_data)
Inject session values (passwords, keys, secrets) before start.
- Parameters:
session_data (
dict)- Return type:
None
- hostname: ClassVar[str] = 'db01.logfileinc.internal'
- label: ClassVar[str] = 'db01'
- segment
alias of
DatabaseSegment
- services: ClassVar[list[Service]] = [<sshmitm.tutorial.hosts.PostgreSQLService 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'>]