#2689 Updated following PR

This commit is contained in:
Archer Bowen
2024-08-19 15:24:24 +01:00
parent 2413a2f6a8
commit 7b1584ccb7

View File

@@ -472,7 +472,7 @@ class AbstractC2(Application, identifier="AbstractC2"):
), ),
) )
if self.c2_remote_connection is False: if self.c2_remote_connection is None:
self.sys_log.warning(f"{self.name}: C2 Application has yet to establish connection. Rejecting command.") self.sys_log.warning(f"{self.name}: C2 Application has yet to establish connection. Rejecting command.")
return ( return (
False, False,
@@ -481,8 +481,7 @@ class AbstractC2(Application, identifier="AbstractC2"):
data={"Reason": "C2 Application has yet to establish connection. Unable to send command."}, data={"Reason": "C2 Application has yet to establish connection. Unable to send command."},
), ),
) )
else: return (
return ( True,
True, RequestResponse(status="success", data={"Reason": "C2 Application is able to send connections."}),
RequestResponse(status="success", data={"Reason": "C2 Application is able to send connections."}), )
)