This 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.exe [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 with administrator privilege with PowerShell or CMD on Windows.
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.exe --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.exe --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.exe --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.exe --check_configBehavior: Loads and parses the configuration file, checking for syntax or logical errors. Prints the validation result to the console.
--add_tool #
--add_toolStructure: --add_tool <EXECUTABLE_TOOL_PATH> <OUTPUT_FILE>
Description: Adds a new external executable tool to the Aralez resource set.
Required Parameters:
: Path to the external executable tool you want to add.EXECUTABLE_TOOL_PATH: Path to the output binary with the new tool embedded.OUTPUT_FILE
Example Usage:
aralez.exe --add_tool tool.exe updated_aralez.exeBehavior: Creates updated_aralez.exe, embedding the specified tool inside the binary.
--remove_tool #
--remove_tool Structure: --remove_tool <EXECUTABLE_TOOL_NAME> <OUTPUT_FILE>
Description: Removes an external tool from the Aralez resource set.
Required Parameters:
: Name of the tool to be removed.EXECUTABLE_TOOL_NAME: Path to the output binary without the specified tool.OUTPUT_FILE
Example Usage:
aralez.exe --remove_tool tool.exe updated_aralez.exeBehavior: Creates updated_aralez.exe, removing the specified tool from the embedded resources.
--list_tools #
--list_tools Description: Lists all external tools currently embedded in Aralez.
Example Usage:
aralez.exe --list_toolsBehavior: Prints the list of embedded external tools 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.exe --show_config- Check the config before executing Aralez
aralez.exe --check_config- Run Aralez without additional flags:
aralez.exeOutput:
- 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.exe --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.exe --debugOutput:
- Detailed information about task progression, including configuration parsing, data collection, and errors are displayed to the console.