conpot.utils package¶
Submodules¶
conpot.utils.ext_ip module¶
- conpot.utils.ext_ip.get_ext_ip(config=None, urls=None)¶
conpot.utils.mac_addr module¶
conpot.utils.networking module¶
- conpot.utils.networking.chr_py3(x)¶
- conpot.utils.networking.fix_sslwrap()¶
- conpot.utils.networking.get_interface_ip(destination_ip: str)¶
- conpot.utils.networking.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.utils.networking.str_to_bytes(x)¶