:py:mod:`expliot.utils` ======================= .. py:module:: expliot.utils .. autoapi-nested-parse:: Utilities for EXPLIoT. Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 nmap/index.rst Package Contents ---------------- Classes ~~~~~~~ .. autoapisummary:: expliot.utils.Tool .. py:class:: Tool(path, default_args='') The base class for any commandline tool that we need to instantiate and execute. .. py:method:: run(args, timeout=None) Run the command as a child with the specified arguments Args: args(str): The arguments to be supplied to the command. timeout(int): The timeout in seconds while waiting for the output. Default is None. For details check subprocess.Popen() timeout argument. Returns: tuple of bytes: Tuple of standard output and standard error (stdout,stderr). It returns bytes because encoding, error, text arguments of Popen are not specified. Raises: FileNotFoundError: In case the tool path/name cannot be found or executed. This is actually raised by subprocess.Popen