sshmitm.workarounds.transport module

Core protocol implementation

sshmitm.workarounds.transport.transport_activate_outbound(self)

Patched _activate_outbound that adds publickey-hostbound@openssh.com to the first EXT_INFO message. OpenSSH clients only accept this extension in the first EXT_INFO (ext_info_received == 1).

Return type:

None

sshmitm.workarounds.transport.transport_run(self)
sshmitm.workarounds.transport.transport_send_kex_init(self)

announce to the other side that we’d like to negotiate keys, and what kind of key negotiation we support.