conpot package

Subpackages

Submodules

conpot.helpers module

Some python3 fixtures - helper methods for handy conversions + fix ssl

conpot.helpers.chr_py3(x)
conpot.helpers.fix_sslwrap()
conpot.helpers.number_to_bytes(x)
conpot.helpers.pack_short_int(x)
conpot.helpers.sanitize_file_name(name, host, port)

Ensure that file_name is legal. Slug the filename and store it onto the server. This would ensure that there are no duplicates as far as writing a file is concerned. Also client addresses are noted so that one can verify which client uploaded the file. :param name: Name of the file :param host: host/client address :param port port/client port :type name: str

conpot.helpers.str_to_bytes(x)
conpot.helpers.unpack_short_int(x)

Module contents