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: Session)

Bases: SCPForwarder

print traffic as hexdump

handle_traffic(traffic: bytes, isclient: bool) bytes
static print_hexdump(traffic: bytes, hexwidth: int = 16) None

prints the provided data as hexdump