Client and server containers code

Client main code

Client icmp plugin

class clientservercode.clientplugins.icmp.icmp(logger)

Bases: object

ERROR = 1
ERR_EXCEPTION = 255
ERR_TIMEOUT = 2
LAYER = 3
OK = 0
PRIORITY = 1
PROTOCOL_NUMBER = 1
run(proto, srcip, ip, srcport, dstport, searchfor)

Sends icmp packet and wait for 1 response

Client tcp plugin

class clientservercode.clientplugins.tcp.tcp(logger)

Bases: object

ERROR = 1
ERR_EXCEPTION = 255
ERR_TIMEOUT = 2
LAYER = 3
OK = 0
PRIORITY = 1
PROTOCOL_NUMBER = 6
get_service(service, numericformat=True)
run(proto, srcip, ip, srcport, dstport, searchfor)

Send a tcp data and wait for response

Client udp plugin

class clientservercode.clientplugins.udp.udp(logger)

Bases: object

ERROR = 1
ERR_EXCEPTION = 255
ERR_TIMEOUT = 2
LAYER = 3
OK = 0
PRIORITY = 1
PROTOCOL_NUMBER = 17
run(proto, srcip, ip, srcport, service, searchfor)

Send a udp data and wait for response

Server main code

Server icmp plugin

class clientservercode.serverplugins.icmp.icmp(logger)

Bases: object

ERROR = 1
ERR_EXCEPTION = 255
ERR_TIMEOUT = 2
LAYER = 3
OK = 0
PRIORITY = 1
PROTOCOL_NUMBER = 1
run(proto, srcip, ip, srcport, dstport, searchfor)

Recive icmp packet and sends 1 response

Server tcp plugin

class clientservercode.serverplugins.tcp.tcp(logger)

Bases: object

ERROR = 1
ERR_EXCEPTION = 255
ERR_TIMEOUT = 2
LAYER = 3
OK = 0
PRIORITY = 1
PROTOCOL_NUMBER = 6
get_service(service, numericformat=True)
run(proto, srcip, ip, srcport, dstport, searchfor)

Waits for a tcp data and sends a response

Server udp plugin

class clientservercode.serverplugins.udp.udp(logger)

Bases: object

ERROR = 1
ERR_EXCEPTION = 255
ERR_TIMEOUT = 2
LAYER = 3
OK = 0
PRIORITY = 1
PROTOCOL_NUMBER = 17
run(proto, srcip, ip, srcport, dstport, searchfor)

Waits for a udp data and sends a response