conpot.protocols.proxy package

Submodules

conpot.protocols.proxy.ascii_decoder module

class conpot.protocols.proxy.ascii_decoder.AsciiDecoder

Bases: ProxyDecoder

decode_in(data)

Decode data that goes into the proxied device

decode_out(data)

Decode data that goes out from the proxied device to the connected client(attacker).

conpot.protocols.proxy.proxy module

class conpot.protocols.proxy.proxy.Proxy(name, proxy_host, proxy_port, decoder=None, keyfile=None, certfile=None)

Bases: object

get_server(host, port)
handle(sock, address)
handle_in_data(data, sock, session)
handle_out_data(data, sock, session)
stop()
class conpot.protocols.proxy.proxy.ProxyDecoder

Bases: ABC

abstract decode_in(data)

Decode data that goes into the proxied device

abstract decode_out(data)

Decode data that goes out from the proxied device to the connected client(attacker).

Module contents