diff --git a/src/primaite/simulator/system/applications/red_applications/c2/c2_beacon.py b/src/primaite/simulator/system/applications/red_applications/c2/c2_beacon.py index 449cc8d3..13918cd7 100644 --- a/src/primaite/simulator/system/applications/red_applications/c2/c2_beacon.py +++ b/src/primaite/simulator/system/applications/red_applications/c2/c2_beacon.py @@ -56,12 +56,6 @@ class C2Beacon(AbstractC2, identifier="C2Beacon"): def __init__(self, **kwargs): kwargs["name"] = "C2Beacon" super().__init__(**kwargs) - self.configure( - c2_server_ip_address=self.config.c2_server_ip_address, - keep_alive_frequency=self.config.keep_alive_frequency, - masquerade_port=self.config.masquerade_port, - masquerade_protocol=self.config.masquerade_protocol, - ) @property def _host_terminal(self) -> Optional[Terminal]: diff --git a/tests/integration_tests/system/red_applications/test_c2_suite_integration.py b/tests/integration_tests/system/red_applications/test_c2_suite_integration.py index d88f8249..6eab7361 100644 --- a/tests/integration_tests/system/red_applications/test_c2_suite_integration.py +++ b/tests/integration_tests/system/red_applications/test_c2_suite_integration.py @@ -495,6 +495,13 @@ def test_c2_suite_yaml(): computer_b: Computer = yaml_network.get_node_by_hostname("node_b") c2_beacon: C2Beacon = computer_b.software_manager.software.get("C2Beacon") + c2_beacon.configure( + c2_server_ip_address=c2_beacon.config.c2_server_ip_address, + keep_alive_frequency=c2_beacon.config.keep_alive_frequency, + masquerade_port=c2_beacon.config.masquerade_port, + masquerade_protocol=c2_beacon.config.masquerade_protocol, + ) + assert c2_server.operating_state == ApplicationOperatingState.RUNNING