sshmitm.plugins.scp.debug_traffic module

Plugin for printing traffic as hexdump.

The SCPDebugForwarder class extends the SCPForwarder class, and it implements the handle_traffic method 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 traffic as hexdump

Parameters:

session (Session)

handle_traffic(traffic, isclient)
Parameters:
  • traffic (bytes)

  • isclient (bool)

Return type:

bytes