forked from p15670423/monkey
Remove redundant code (which was mapping matrix to PBA config)
This commit is contained in:
parent
cdf65ae097
commit
319c1c27bb
|
@ -181,19 +181,6 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
let tempMatrix = this.state.attackConfig;
|
let tempMatrix = this.state.attackConfig;
|
||||||
tempMatrix[techType[0]].properties[technique].value = value;
|
tempMatrix[techType[0]].properties[technique].value = value;
|
||||||
|
|
||||||
if (technique == 'T1136') {
|
|
||||||
let newConfig = this.state.configuration;
|
|
||||||
if (value && !newConfig['monkey']['general']['post_breach_actions'].includes('BackdoorUser')) {
|
|
||||||
newConfig['monkey']['general']['post_breach_actions'].push('BackdoorUser');
|
|
||||||
}
|
|
||||||
else if (!value && newConfig['monkey']['general']['post_breach_actions'].includes('BackdoorUser')) {
|
|
||||||
let toRemoveIndex = newConfig['monkey']['general']['post_breach_actions'].indexOf('BackdoorUser');
|
|
||||||
newConfig['monkey']['general']['post_breach_actions'].splice(toRemoveIndex, 1);
|
|
||||||
}
|
|
||||||
this.setState({attackConfig: tempMatrix, configuration: newConfig});
|
|
||||||
this.configSubmit();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Toggle all mapped techniques
|
// Toggle all mapped techniques
|
||||||
if (!mapped) {
|
if (!mapped) {
|
||||||
// Loop trough each column and each row
|
// Loop trough each column and each row
|
||||||
|
|
Loading…
Reference in New Issue