Review remote execution modules

This commit is contained in:
fbsanchez 2019-10-11 12:50:29 +02:00
parent 4fedfe92fc
commit 4c6d924495
3 changed files with 3 additions and 3 deletions

View File

@ -447,7 +447,7 @@ $table_simple->colspan['row-cmd-row-1'][1] = 3;
push_table_simple($data, 'row-cmd-row-1');
require_once $config['homedir'].'/include/class/CredentialStore.class.php';
$array_credential_identifier = CredentialStore::getKeys();
$array_credential_identifier = CredentialStore::getKeys('CUSTOM');
$data[0] = __('Credential identifier');
$data[1] = html_print_select(

View File

@ -224,7 +224,7 @@ $table->colspan['row-cmd-row-1'][1] = 3;
push_table_row($data, 'row-cmd-row-1');
require_once $config['homedir'].'/include/class/CredentialStore.class.php';
$array_credential_identifier = CredentialStore::getKeys();
$array_credential_identifier = CredentialStore::getKeys('CUSTOM');
$data[0] = __('Credential identifier');
$data[1] = html_print_select(

View File

@ -468,7 +468,7 @@ sub exec_network_module ($$$$) {
my $tcp_rcv = $module->{'tcp_rcv'};
my $timeout = $module->{'max_timeout'};
my $retries = $module->{'max_retries'};
my $target_os = $module->{'custom_string_2'};
my $target_os = pandora_get_os($dbh, $module->{'custom_string_2'});
if (!defined($target_os) || "$target_os" eq '0') {
$target_os = $agent_row->{'id_os'};