sshmitm.apps.mosh.forwarder module
- class sshmitm.apps.mosh.forwarder.MoshForwarder(session)
Bases:
ExecHandlerBasePluginForwarder for MOSH (Mobile Shell) sessions.
Executes the mosh-server command, waits for the MOSH CONNECT handshake to complete (server channel closes after sending it), then reads the buffered response and rewrites the port to point at the UDP proxy.
- Parameters:
session (
Session)
- property client_channel: Channel | None
Returns the client channel for the current plugin type
- command_prefix: ClassVar[bytes] = b'mosh-server'
- disable_pty: ClassVar[bool] = True
- disable_ssh: ClassVar[bool] = True
- forward()
Forwards data between the client and the server
- Return type:
None
- handle_client_data(data)
- Parameters:
data (
bytes)- Return type:
bytes
- handle_server_data(data)
- Parameters:
data (
bytes)- Return type:
bytes
- classmethod parser_arguments()
- Return type:
None