From a8cc0e6781b5710eb7b058c7fbc364dad07f17bf Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Wed, 18 Aug 2021 11:49:01 +0200 Subject: [PATCH] UI: Add HideInput component to internal exploits --- .../configuration-components/UiSchema.js | 14 +++++++++++++- .../ui/src/components/ui-components/HideInput.js | 6 +++--- 2 files changed, 16 insertions(+), 4 deletions(-) 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 9263ba772..e6dbed239 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 @@ -18,7 +18,7 @@ export default function UiSchema(props) { credentials : { exploit_password_list: { items: { - 'ui:widget': HideInput + 'ui:widget': HideInput } } } @@ -112,6 +112,18 @@ export default function UiSchema(props) { aws_keys: { classNames: 'config-field-hidden' } + }, + exploits: { + exploit_lm_hash_list:{ + items: { + 'ui:widget': HideInput + } + }, + exploit_ntlm_hash_list: { + items: { + 'ui:widget': HideInput + } + } } } }; diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/HideInput.js b/monkey/monkey_island/cc/ui/src/components/ui-components/HideInput.js index 148e9dac3..4a2e53915 100644 --- a/monkey/monkey_island/cc/ui/src/components/ui-components/HideInput.js +++ b/monkey/monkey_island/cc/ui/src/components/ui-components/HideInput.js @@ -24,15 +24,15 @@ class HideInput extends React.PureComponent { render() { return (
- + this.onChange(event)} /> - - + +