sshmitm.plugins.scp.debug_traffic module

Plugin for printing data as hexdump.

The SCPDebugForwarder class extends the SCPForwarder class, and it implements the handle_client_data and handle_server_data methods to print the data as hexdump. The print_hexdump method is a static method that takes a bytes object and an optional int parameter hexwidth and prints the data as a hexdump.

class sshmitm.plugins.scp.debug_traffic.SCPDebugForwarder(session)

Bases: SCPForwarder

print data as hexdump

Parameters:

session (Session)

handle_client_data(data)
Parameters:

data (bytes)

Return type:

bytes

handle_server_data(data)
Parameters:

data (bytes)

Return type:

bytes