forked from p34709852/monkey
Moved "is monkey alive" into internal(still hidden) config, fixed PBA UI
This commit is contained in:
parent
2c96ace908
commit
57ee55d9ff
|
@ -35,28 +35,34 @@ INTERNAL = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"monkey": {
|
"monkey": {
|
||||||
"title": "Monkey",
|
"title": "Monkey",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"self_delete_in_cleanup": {
|
"self_delete_in_cleanup": {
|
||||||
"title": "Self delete on cleanup",
|
"title": "Self delete on cleanup",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": True,
|
"default": True,
|
||||||
"description": "Should the monkey delete its executable when going down"
|
"description": "Should the monkey delete its executable when going down"
|
||||||
},
|
},
|
||||||
"use_file_logging": {
|
"use_file_logging": {
|
||||||
"title": "Use file logging",
|
"title": "Use file logging",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": True,
|
"default": True,
|
||||||
"description": "Should the monkey dump to a log file"
|
"description": "Should the monkey dump to a log file"
|
||||||
},
|
},
|
||||||
"serialize_config": {
|
"serialize_config": {
|
||||||
"title": "Serialize config",
|
"title": "Serialize config",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": False,
|
"default": False,
|
||||||
"description": "Should the monkey dump its config on startup"
|
"description": "Should the monkey dump its config on startup"
|
||||||
}
|
},
|
||||||
}
|
"alive": {
|
||||||
|
"title": "Alive",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": True,
|
||||||
|
"description": "Is the monkey alive"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"classes": {
|
"classes": {
|
||||||
"title": "Classes",
|
"title": "Classes",
|
||||||
|
|
|
@ -8,18 +8,6 @@ MONKEY = {
|
||||||
"title": "Monkey",
|
"title": "Monkey",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"general": {
|
|
||||||
"title": "General",
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"alive": {
|
|
||||||
"title": "Alive",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": True,
|
|
||||||
"description": "Is the monkey alive"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"post_breach": {
|
"post_breach": {
|
||||||
"title": "Post breach",
|
"title": "Post breach",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
|
@ -15,16 +15,11 @@ export default function UiSchema(props) {
|
||||||
},
|
},
|
||||||
basic_network: {},
|
basic_network: {},
|
||||||
monkey: {
|
monkey: {
|
||||||
general: {
|
post_breach: {
|
||||||
alive: {
|
|
||||||
classNames: 'config-field-hidden'
|
|
||||||
},
|
|
||||||
post_breach_actions: {
|
post_breach_actions: {
|
||||||
classNames: 'config-template-no-header',
|
classNames: 'config-template-no-header',
|
||||||
'ui:widget': AdvancedMultiSelect
|
'ui:widget': AdvancedMultiSelect
|
||||||
}
|
},
|
||||||
},
|
|
||||||
post_breach: {
|
|
||||||
custom_PBA_linux_cmd: {
|
custom_PBA_linux_cmd: {
|
||||||
'ui:widget': 'textarea',
|
'ui:widget': 'textarea',
|
||||||
'ui:emptyValue': ''
|
'ui:emptyValue': ''
|
||||||
|
@ -76,6 +71,11 @@ export default function UiSchema(props) {
|
||||||
classNames: 'config-template-no-header',
|
classNames: 'config-template-no-header',
|
||||||
'ui:widget': AdvancedMultiSelect
|
'ui:widget': AdvancedMultiSelect
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
monkey: {
|
||||||
|
alive: {
|
||||||
|
classNames: 'config-field-hidden'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue