#2689 Updated following PR
This commit is contained in:
@@ -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."}),
|
)
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user