Skip to content

UDP Client

Marcin Bury edited this page Oct 12, 2018 · 3 revisions

UDP Client

Example exploit that utilises UDP communication as a client

UDPClient Methods

UDPClient.udp_create

Params

Param Type Description Required
target str target UDP server IP address no, default=exploit.target
port int target UDP server port no, default=exploit.port

Returns

Type Description
UDPCli UDPCli object that is used for communication

Example

UDPCli Methods

UDPCli.send

Params

Param Type Description Required
data bytes data that should be sent to the server yes

Returns

Type Description
bool True if data was sent, False otherwise

Example

UDPCli.recv

Params

Param Type Description Required
num int number of bytes that should be received from the server

Returns

Type Description
bytes bytes received from the server

Example

UDPCli.close

Params

  • None

Returns

Type Description
bool True if socket was closed successfully, False otherwise

Example

Clone this wiki locally