forked from p15670423/monkey
Island: Rename `credential_collector_classes` to `credential_collectors`
This commit is contained in:
parent
794ad6e5b0
commit
3368153507
|
@ -20,7 +20,7 @@ SCHEMA = {
|
||||||
# users will not accidentally chose unsafe options
|
# users will not accidentally chose unsafe options
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"exploiter_classes": EXPLOITER_CLASSES,
|
"exploiter_classes": EXPLOITER_CLASSES,
|
||||||
"credential_collector_classes": CREDENTIAL_COLLECTOR_CLASSES,
|
"credential_collectors": CREDENTIAL_COLLECTOR_CLASSES,
|
||||||
"post_breach_actions": POST_BREACH_ACTIONS,
|
"post_breach_actions": POST_BREACH_ACTIONS,
|
||||||
"finger_classes": FINGER_CLASSES,
|
"finger_classes": FINGER_CLASSES,
|
||||||
},
|
},
|
||||||
|
|
|
@ -77,11 +77,11 @@ MONKEY = {
|
||||||
"title": "Credential collection",
|
"title": "Credential collection",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"credential_collector_classes": {
|
"credential_collectors": {
|
||||||
"title": "Credential collectors",
|
"title": "Credential collectors",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"uniqueItems": True,
|
"uniqueItems": True,
|
||||||
"items": {"$ref": "#/definitions/credential_collector_classes"},
|
"items": {"$ref": "#/definitions/credential_collectors"},
|
||||||
"default": [
|
"default": [
|
||||||
MIMIKATZ_COLLECTOR,
|
MIMIKATZ_COLLECTOR,
|
||||||
SSH_COLLECTOR,
|
SSH_COLLECTOR,
|
||||||
|
|
|
@ -95,7 +95,7 @@ export default function UiSchema(props) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
credential_collectors: {
|
credential_collectors: {
|
||||||
credential_collector_classes: {
|
credential_collectors: {
|
||||||
classNames: 'config-template-no-header',
|
classNames: 'config-template-no-header',
|
||||||
'ui:widget': AdvancedMultiSelect
|
'ui:widget': AdvancedMultiSelect
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,8 @@ function getPluginDescriptors(schema, config) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'CredentialCollectors',
|
name: 'CredentialCollectors',
|
||||||
allPlugins: schema.definitions.credential_collector_classes.anyOf,
|
allPlugins: schema.definitions.credential_collectors.anyOf,
|
||||||
selectedPlugins: config.monkey.credential_collectors.credential_collector_classes
|
selectedPlugins: config.monkey.credential_collectors.credential_collectors
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue