diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 5fa92f8c85..701ce4894b 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1475,13 +1475,13 @@ if ($update_module === true || $create_module === true) { $plugin_pass = io_input_password( (string) get_parameter('snmp3_auth_pass') ); - $plugin_parameter = (string) get_parameter('snmp3_auth_method'); + $plugin_parameter = (string) get_parameter('snmp3_auth_method', 'MD5'); - $custom_string_1 = (string) get_parameter('snmp3_privacy_method'); + $custom_string_1 = (string) get_parameter('snmp3_privacy_method', 'DES'); $custom_string_2 = io_input_password( (string) get_parameter('snmp3_privacy_pass') ); - $custom_string_3 = (string) get_parameter('snmp3_security_level'); + $custom_string_3 = (string) get_parameter('snmp3_security_level', 'noAuthNoPriv'); } else if ($id_module_type >= 34 && $id_module_type <= 37) { $tcp_send = (string) get_parameter('command_text'); $custom_string_1 = (string) get_parameter( diff --git a/pandora_console/godmode/agentes/module_manager_editor.php b/pandora_console/godmode/agentes/module_manager_editor.php index 42aa286c8a..452d2a498a 100644 --- a/pandora_console/godmode/agentes/module_manager_editor.php +++ b/pandora_console/godmode/agentes/module_manager_editor.php @@ -459,10 +459,10 @@ if ($id_agent_module) { $snmp_version = 1; $snmp3_auth_user = ''; $snmp3_auth_pass = ''; - $snmp3_auth_method = ''; - $snmp3_privacy_method = ''; + $snmp3_auth_method = 'MD5'; + $snmp3_privacy_method = 'DES'; $snmp3_privacy_pass = ''; - $snmp3_security_level = ''; + $snmp3_security_level = 'noAuthNoPriv'; // For Remote CMD. $command_text = ''; diff --git a/pandora_console/godmode/agentes/module_manager_editor_network.php b/pandora_console/godmode/agentes/module_manager_editor_network.php index 656dac2b0b..a5f0b4d184 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_network.php +++ b/pandora_console/godmode/agentes/module_manager_editor_network.php @@ -405,7 +405,22 @@ push_table_simple($data, 'field_snmpv3_row1'); $data = []; $data[0] = __('Privacy method'); -$data[1] = html_print_select(['DES' => __('DES'), 'AES' => __('AES')], 'snmp3_privacy_method', $snmp3_privacy_method, '', '', '', true, false, false, '', $disabledBecauseInPolicy); +$data[1] = html_print_select( + [ + 'DES' => __('DES'), + 'AES' => __('AES'), + ], + 'snmp3_privacy_method', + $snmp3_privacy_method, + '', + '', + '', + true, + false, + false, + '', + $disabledBecauseInPolicy +); $data[2] = __('Privacy pass').ui_print_help_tip(__('The pass length must be eight character minimum.'), true); $data[3] = html_print_input_password( 'snmp3_privacy_pass',