From 319c1c27bbd29b40e1582310ef742b663ea32610 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 27 Apr 2020 19:26:01 +0530 Subject: [PATCH] Remove redundant code (which was mapping matrix to PBA config) --- .../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 9f1429abe..a8c44b8b0 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -181,19 +181,6 @@ class ConfigurePageComponent extends AuthComponent { let tempMatrix = this.state.attackConfig; 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 if (!mapped) { // Loop trough each column and each row