Target

class boofuzz.Target(connection, procmon=None, procmon_options=None, netmon=None, max_recv_bytes=10000)[source]

Bases: object

Target descriptor container.

Takes an ITargetConnection and wraps send/recv with appropriate FuzzDataLogger calls.

Encapsulates pedrpc connection logic.

Contains a logger which is configured by Session.add_target().

Example

tcp_target = Target(SocketConnection(host=‘127.0.0.1’, port=17971))

Parameters:connection (itarget_connection.ITargetConnection) – Connection to system under test.
close()[source]

Close connection to the target.

Returns:None
open()[source]

Opens connection to the target. Make sure to call close!

Returns:None
pedrpc_connect()[source]

Pass specified target parameters to the PED-RPC server.

recv(max_bytes=None)[source]

Receive up to max_bytes data from the target.

Parameters:max_bytes (int) – Maximum number of bytes to receive.
Returns:Received data.
send(data)[source]

Send data to the target. Only valid after calling open!

Parameters:data – Data to send.
Returns:None
set_fuzz_data_logger(fuzz_data_logger)[source]

Set this object’s fuzz data logger – for sent and received fuzz data.

Parameters:fuzz_data_logger (ifuzz_logger.IFuzzLogger) – New logger.
Returns:None