Remove unwanted code (for mapping config to matrix [T1136])

This commit is contained in:
Shreya 2020-04-24 22:47:43 +05:30
parent 0394b8404a
commit e164f53ed4
1 changed files with 0 additions and 13 deletions

View File

@ -217,19 +217,6 @@ class ConfigurePageComponent extends AuthComponent {
updateConfigSection = () => { updateConfigSection = () => {
let newConfig = this.state.configuration; let newConfig = this.state.configuration;
if (Object.keys(this.currentFormData).length > 0) { if (Object.keys(this.currentFormData).length > 0) {
if (this.currentSection == 'monkey') {
let tempMatrix = this.state.attackConfig;
if (this.currentFormData['general']['post_breach_actions'].includes('BackdoorUser')) {
tempMatrix['persistence'].properties['T1136'].value = true;
}
else {
tempMatrix['persistence'].properties['T1136'].value = false;
}
this.setState({attackConfig: tempMatrix});
this.matrixSubmit();
}
newConfig[this.currentSection] = this.currentFormData; newConfig[this.currentSection] = this.currentFormData;
this.currentFormData = {}; this.currentFormData = {};
} }