Currently, all data defined in etc/honeyclient.xml must be a scalar type (i.e., string, integer).
Task: Update the Config package to support list-based configuration data, allowing enumerated lists to be manipulated as arrays.
For example, if etc/honeyclient.xml contained the following data:
<HoneyClient>
<Agent>
<Integrity>
<exclude_file>c:\path\to\file1.exe</exclude_file>
<exclude_file>c:\path\to\file2.exe</exclude_file>
<exclude_file>c:\path\to\file3.exe</exclude_file>
<exclude_registry>HKCU\path\to\key1</exclude_registry>
<exclude_registry>HKCU\path\to\key2</exclude_registry>
<exclude_registry>HKCU\path\to\key3</exclude_registry>
</Integrity>
</Agent>
</HoneyClient>
Then, the following code should work:
use HoneyClient::Util::Config qw(getVar);
my @exclude_files = getVar(name => "exclude_file",
namespace => "Honeyclient::Agent::Integrity");
my @exclude_registry = getVar(name => "exclude_registry",
namespace => "Honeyclient::Agent::Integrity");