UI: Allow for empty file extension

This commit is contained in:
Kekoa Kaaikala 2022-08-17 20:27:33 +00:00
parent 194f08c294
commit 0797afb9a0
1 changed files with 10 additions and 7 deletions

View File

@ -2,7 +2,7 @@ import AdvancedMultiSelect from '../ui-components/AdvancedMultiSelect';
import InfoBox from './InfoBox'; import InfoBox from './InfoBox';
import TextBox from './TextBox.js'; import TextBox from './TextBox.js';
import PbaInput from './PbaInput'; import PbaInput from './PbaInput';
import {API_PBA_LINUX, API_PBA_WINDOWS} from '../pages/ConfigurePage'; import { API_PBA_LINUX, API_PBA_WINDOWS } from '../pages/ConfigurePage';
import SensitiveTextInput from '../ui-components/SensitiveTextInput'; import SensitiveTextInput from '../ui-components/SensitiveTextInput';
export default function UiSchema(props) { export default function UiSchema(props) {
@ -45,13 +45,13 @@ export default function UiSchema(props) {
'ui:widget': SensitiveTextInput 'ui:widget': SensitiveTextInput
} }
}, },
exploit_lm_hash_list:{ exploit_lm_hash_list: {
items: { items: {
classNames: 'config-template-no-header', classNames: 'config-template-no-header',
'ui:widget': SensitiveTextInput 'ui:widget': SensitiveTextInput
} }
}, },
exploit_ntlm_hash_list:{ exploit_ntlm_hash_list: {
items: { items: {
classNames: 'config-template-no-header', classNames: 'config-template-no-header',
'ui:widget': SensitiveTextInput 'ui:widget': SensitiveTextInput
@ -82,11 +82,11 @@ export default function UiSchema(props) {
tcp: { tcp: {
ports: { ports: {
items: { items: {
classNames: 'config-template-no-header' classNames: 'config-template-no-header'
} }
} }
}, },
fingerprinters:{ fingerprinters: {
classNames: 'config-template-no-header', classNames: 'config-template-no-header',
'ui:widget': AdvancedMultiSelect, 'ui:widget': AdvancedMultiSelect,
fingerprinter_classes: { fingerprinter_classes: {
@ -99,9 +99,12 @@ export default function UiSchema(props) {
payloads: { payloads: {
classNames: 'config-template-no-header', classNames: 'config-template-no-header',
encryption: { encryption: {
info_box : { info_box: {
'ui:field': InfoBox 'ui:field': InfoBox
}, },
file_extension: {
'ui:emptyValue': ''
},
directories: { directories: {
// Directory inputs are dynamically hidden // Directory inputs are dynamically hidden
}, },
@ -112,7 +115,7 @@ export default function UiSchema(props) {
'ui:widget': 'hidden' 'ui:widget': 'hidden'
} }
}, },
other_behaviors : { other_behaviors: {
'ui:widget': 'hidden' 'ui:widget': 'hidden'
} }
}, },