his section provides a detailed guide on how to use Aralez, including available options, commands, and example workflows to maximize its utility.
Basic Command #
The tool can be executed with the following syntax:
aralez [OPTIONS]The OPTIONS parameter allows you to customize the behavior of the tool, such as enabling debug mode, displaying configuration details, or modifying the embedded configuration.
Important: Aralez should be executed by root on Linux.
Options #
--debug #
Description: Activates debug mode to provide detailed logs and verbose output during execution. This option is useful for troubleshooting and monitoring the internal workings of the tool.
Example Usage:
aralez --debugBehavior: Outputs additional runtime information, including executed tasks, configuration details, and potential issues on the console.
--show_config #
--show_configDescription: Displays the current embedded configuration file in YAML format without executing any tasks.
Example Usage:
aralez --show_configBehavior: Loads the embedded configuration and prints it to the console for review or debugging.
--change_config #
--change_config Structure: –change_config <CONFIG_FILE> <OUTPUT_FILE>
Description: Updates the embedded configuration in the executable using CONFIG_FILE and saves the updated version to OUTPUT_FILE.
Important: If the new config is not valid, an error will be raised and the config won’t be updated.
Required Parameters:
CONFIG_FILE: Path to the new configuration file (in YAML format).
Example Usage:
aralez --change_config new_config.yml new_aralez.exeBehavior: Creates a new_aralez.exe binary with the updated configuration embedded, leaving the original executable untouched.
--check_config #
--check_config Description: Validates the current configuration file for correctness and potential errors.
Example Usage:
aralez --check_configBehavior: Loads and parses the configuration file, checking for syntax or logical errors. Prints the validation result to the console.
Workflows #
Running a Data Collection Task #
Scenario: You want to collect system and file data with the default configuration.
Steps:
- Ensure the configuration is correctly set up. Display the config of Aralez and check the content.
aralez --show_config- Check the config before executing Aralez
aralez --check_config- Run Aralez without additional flags:
aralezOutput:
- Collected data is saved in the directory specified in the configuration file.
- The directory is compressed into a ZIP archive for convenience.
Updating and Validating Configuration #
Scenario: You need to modify the configuration for a specific use case.
Steps:
- Edit or create a new custom_config.yml file.
- Embed the new configuration into a custom executable:
aralez --change_config custom_config.yml custom_aralez.exeIf the configuration file is valid, custom_aralez.exe will be created.
Output:
- If the configuration file is valid, custom_aralez.exe will be created with the updated configuration.
Debugging Task Execution #
Scenario: You encounter unexpected behavior during a task and want detailed logs.
Steps:
- Run the tool in debug mode:
aralez --debugOutput:
- Detailed information about task progression, including configuration parsing, data collection, and errors are displayed to the console.