kitty.targets.server module

class kitty.targets.server.ServerTarget(name, logger=None, expect_response=False)[source]

Bases: kitty.targets.base.BaseTarget

This class represents a target when fuzzing a server. Its main job, beside using the Controller and Monitors, is to send and receive data from/to the target.

__init__(name, logger=None, expect_response=False)[source]
Parameters:
  • name – name of the target
  • logger – logger for this object (default: None)
  • expect_response – should wait for response from the victim (default: False)
post_test(test_num)[source]

Called after each test

Parameters:test_num – the test number
pre_test(test_num)[source]

Called before each test

Parameters:test_num – the test number
set_expect_response(expect_response)[source]
Parameters:expect_response – should wait for response from the victim (default: False)
transmit(payload)[source]

Transmit single payload, and receive response, if expected. The actual implementation of the send/receive should be in _send_to_target and _receive_from_target.

Parameters:payload (str) – payload to send
Return type:str
Returns:the response (if received)