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.
This commit is contained in:
vakaris_zilius 2022-09-06 08:51:22 +00:00
parent de5da88c22
commit 3b2954ec02
1 changed files with 2 additions and 2 deletions

View File

@ -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': {}}
},