forked from p15670423/monkey
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:
parent
de5da88c22
commit
3b2954ec02
|
@ -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': {}}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue