UI: Add SensitiveTextInput to Passwords, LM and NTLM credentials input

This commit is contained in:
Ilija Lazoroski 2022-07-21 11:15:15 +02:00
parent 9fdbcc441d
commit fec3df937b
1 changed files with 19 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import InfoBox from './InfoBox';
import TextBox from './TextBox.js';
import PbaInput from './PbaInput';
import {API_PBA_LINUX, API_PBA_WINDOWS} from '../pages/ConfigurePage';
import SensitiveTextInput from '../ui-components/SensitiveTextInput';
export default function UiSchema(props) {
const UiSchema = {
@ -25,7 +26,6 @@ export default function UiSchema(props) {
options: {
http_ports: {
items: {
classNames: 'config-template-no-header'
}
}
}
@ -38,6 +38,24 @@ export default function UiSchema(props) {
private_key: {
}
}
},
exploit_password_list: {
items: {
classNames: 'config-template-no-header',
'ui:widget': SensitiveTextInput
}
},
exploit_lm_hash_list:{
items: {
classNames: 'config-template-no-header',
'ui:widget': SensitiveTextInput
}
},
exploit_ntlm_hash_list:{
items: {
classNames: 'config-template-no-header',
'ui:widget': SensitiveTextInput
}
}
},
network_scan: {