UI: Adjust safe option validation to new schema
This commit is contained in:
parent
138a065d75
commit
d2c8065163
|
@ -2,27 +2,27 @@ function getPluginDescriptors(schema, config) {
|
|||
return ([
|
||||
{
|
||||
name: 'Brute force exploiters',
|
||||
allPlugins: schema.definitions.brute_force_classes.anyOf,
|
||||
allPlugins: schema.properties.propagation.properties.exploitation.properties.brute_force.items.anyOf,
|
||||
selectedPlugins: config.propagation.exploitation.brute_force
|
||||
},
|
||||
{
|
||||
name: 'Vulnerability exploiters',
|
||||
allPlugins: schema.definitions.vulnerability_classes.anyOf,
|
||||
allPlugins: schema.properties.propagation.properties.exploitation.properties.vulnerability.items.anyOf,
|
||||
selectedPlugins: config.propagation.exploitation.vulnerability
|
||||
},
|
||||
{
|
||||
name: 'Fingerprinters',
|
||||
allPlugins: schema.definitions.fingerprinter_classes.anyOf,
|
||||
allPlugins: schema.properties.propagation.properties.network_scan.properties.fingerprinters.items.anyOf,
|
||||
selectedPlugins: config.propagation.network_scan.fingerprinters
|
||||
},
|
||||
{
|
||||
name: 'PostBreachActions',
|
||||
allPlugins: schema.definitions.post_breach_actions.anyOf,
|
||||
allPlugins: schema.properties.post_breach_actions.items.anyOf,
|
||||
selectedPlugins: config.post_breach_actions
|
||||
},
|
||||
{
|
||||
name: 'CredentialCollectors',
|
||||
allPlugins: schema.definitions.credential_collectors_classes.anyOf,
|
||||
allPlugins: schema.properties.credential_collectors.items.anyOf,
|
||||
selectedPlugins: config.credential_collectors
|
||||
}
|
||||
]);
|
||||
|
|
|
@ -21,11 +21,7 @@ export const SCHEMA = {
|
|||
'title': 'Credential collectors',
|
||||
'type': 'array',
|
||||
'uniqueItems': true,
|
||||
'items': CREDENTIAL_COLLECTORS,
|
||||
'default': [
|
||||
'MimikatzCollector',
|
||||
'SSHCollector'
|
||||
]
|
||||
'items': CREDENTIAL_COLLECTORS
|
||||
},
|
||||
'advanced': {
|
||||
'title': 'Advanced',
|
||||
|
|
Loading…
Reference in New Issue