forked from p15670423/monkey
UI: Add HideInput component to internal exploits
This commit is contained in:
parent
9a0837656b
commit
a8cc0e6781
|
@ -18,7 +18,7 @@ export default function UiSchema(props) {
|
||||||
credentials : {
|
credentials : {
|
||||||
exploit_password_list: {
|
exploit_password_list: {
|
||||||
items: {
|
items: {
|
||||||
'ui:widget': HideInput
|
'ui:widget': HideInput
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -112,6 +112,18 @@ export default function UiSchema(props) {
|
||||||
aws_keys: {
|
aws_keys: {
|
||||||
classNames: 'config-field-hidden'
|
classNames: 'config-field-hidden'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
exploits: {
|
||||||
|
exploit_lm_hash_list:{
|
||||||
|
items: {
|
||||||
|
'ui:widget': HideInput
|
||||||
|
}
|
||||||
|
},
|
||||||
|
exploit_ntlm_hash_list: {
|
||||||
|
items: {
|
||||||
|
'ui:widget': HideInput
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,15 +24,15 @@ class HideInput extends React.PureComponent {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<InputGroup className='mb-3'>
|
<InputGroup className='mb-4'>
|
||||||
<FormControl
|
<FormControl
|
||||||
value={this.props.value || ''}
|
value={this.props.value || ''}
|
||||||
type={this.state.hidden ? 'text' : 'password'}
|
type={this.state.hidden ? 'text' : 'password'}
|
||||||
onChange={(event) => this.onChange(event)}
|
onChange={(event) => this.onChange(event)}
|
||||||
/>
|
/>
|
||||||
<InputGroup.Append>
|
<InputGroup.Append>
|
||||||
<InputGroup.Text>
|
<InputGroup.Text onClick={this.toggleShow} >
|
||||||
<i onClick={this.toggleShow} className={this.state.hidden ? 'fas fa-eye-slash' : 'fas fa-eye'}></i>
|
<i className={this.state.hidden ? 'fas fa-eye-slash' : 'fas fa-eye'}></i>
|
||||||
</InputGroup.Text>
|
</InputGroup.Text>
|
||||||
</InputGroup.Append>
|
</InputGroup.Append>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
|
|
Loading…
Reference in New Issue