sshmitm.forwarders.scp module

class sshmitm.forwarders.scp.SCPBaseForwarder(session: Session)

Bases: BaseForwarder

close_session(channel: Channel) None
close_session_with_status(channel: Channel, status: Optional[int]) None
forward() None
handle_error(traffic: bytes) bytes
handle_traffic(traffic: bytes, isclient: bool) bytes
rewrite_scp_command(command: str) str
sendall(channel: Channel, data: bytes, sendfunc: Callable[[bytes], int]) int
class sshmitm.forwarders.scp.SCPForwarder(session: Session)

Bases: SCPBaseForwarder

forwards a file from or to the remote server

handle_command(traffic: bytes) bytes
handle_scp(traffic: bytes) bytes
handle_traffic(traffic: bytes, isclient: bool) bytes
process_data(traffic: bytes) bytes
process_response(traffic: bytes) bytes