From 3b2954ec02a286aff7db981a787fadeb5e10f21d Mon Sep 17 00:00:00 2001 From: vakaris_zilius Date: Tue, 6 Sep 2022 08:51:22 +0000 Subject: [PATCH] UI: Fix missing default brute-forcer options in config schema If we don't provide default options in config schema AdvancedMultiSelect doesn't know what to reset it back to. Essentially we need two states, one for the actual value of configuration and one for the default. When we disable SMB, the SMB value with all it's options are deleted. When we enable it, we need to pull its options from somewhere. --- .../cc/ui/src/services/configuration/exploiterClasses.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/services/configuration/exploiterClasses.js b/monkey/monkey_island/cc/ui/src/services/configuration/exploiterClasses.js index 006d03a68..d31ddb533 100644 --- a/monkey/monkey_island/cc/ui/src/services/configuration/exploiterClasses.js +++ b/monkey/monkey_island/cc/ui/src/services/configuration/exploiterClasses.js @@ -6,9 +6,9 @@ export const BRUTE_FORCE_EXPLOITERS = { 'machine/service.', 'type': 'string', 'pluginDefs': { - 'SmbExploiter': {'name': 'SmbExploiter', 'options': {}}, + 'SmbExploiter': {'name': 'SmbExploiter', 'options': {'smb_download_timeout': 30}}, 'PowerShellExploiter': {'name': 'PowerShellExploiter', 'options': {}}, - 'WmiExploiter': {'name': 'WmiExploiter', 'options': {}}, + 'WmiExploiter': {'name': 'WmiExploiter', 'options': {'smb_download_timeout': 30}}, 'MSSQLExploiter': {'name': 'MSSQLExploiter', 'options': {}}, 'SSHExploiter': {'name': 'SSHExploiter', 'options': {}} },