diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js index 67035f1f4..3256feeaa 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js @@ -60,7 +60,7 @@ export default function UiSchema(props) { }, network_scan: { targets: { - info_box: { + info_box_general: { 'ui:field': InfoBox }, blocked_ips: { @@ -73,6 +73,9 @@ export default function UiSchema(props) { classNames: 'config-template-no-header' } }, + info_box_scan_my_networks: { + 'ui:field': InfoBox + }, subnets: { items: { classNames: 'config-template-no-header' diff --git a/monkey/monkey_island/cc/ui/src/services/configuration/propagation/scanTarget.js b/monkey/monkey_island/cc/ui/src/services/configuration/propagation/scanTarget.js index 9b7aad256..b7071a395 100644 --- a/monkey/monkey_island/cc/ui/src/services/configuration/propagation/scanTarget.js +++ b/monkey/monkey_island/cc/ui/src/services/configuration/propagation/scanTarget.js @@ -2,9 +2,9 @@ const SCAN_TARGET_CONFIGURATION_SCHEMA = { 'title': 'Network', 'type': 'object', 'properties': { - 'info_box': { + 'info_box_general': { 'info': 'The Monkey scans for machines on each of the network interfaces of the ' + - 'machine it is running on if "Scan Agent\'s networks" is checked. ' + + 'machine it is running on, if "Scan Agent\'s networks" is checked. ' + 'Additionally, the Monkey scans machines according to "Scan target list". ' }, 'blocked_ips': { @@ -41,15 +41,17 @@ const SCAN_TARGET_CONFIGURATION_SCHEMA = { '\tDefine a segment using an subnet IP mask: "192.168.0.5/24"\n' + '\tDefine a single-host segment: "printer.example"' }, + 'info_box_scan_my_networks': { + 'info': 'If "Scan Agent\'s networks" is enabled, the Agent will go over all network ' + + 'interfaces and will scan their networks, ' + + 'in addition to the IPs that are configured manually in the "Scan target list". ' + + 'Note: If the Agent runs on a machine within a public network, ' + + 'this setting will cause scanning and exploitation attempts on that network.' + }, 'scan_my_networks': { 'title': 'Scan Agent\'s networks', 'type': 'boolean', - 'default': false, - 'description': 'If enabled, the Agent will go over all network interfaces and ' + - 'will scan their networks,' + - ' in addition to the IPs that are configured manually in the "Scan target list". ' + - 'Note: If the Agent runs on a machine within a public network,' + - ' this setting will cause scanning and exploitation attempts on that network.' + 'default': false }, 'subnets': { 'title': 'Scan target list',