From e164f53ed4ed6a886586fea035254aa133b113df Mon Sep 17 00:00:00 2001 From: Shreya Date: Fri, 24 Apr 2020 22:47:43 +0530 Subject: [PATCH] Remove unwanted code (for mapping config to matrix [T1136]) --- .../cc/ui/src/components/pages/ConfigurePage.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index 14023472b..9f1429abe 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -217,19 +217,6 @@ class ConfigurePageComponent extends AuthComponent { updateConfigSection = () => { let newConfig = this.state.configuration; 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; this.currentFormData = {}; }