From e479c59ef3d4a08fbf86d5cd36ea22c91b47f9db Mon Sep 17 00:00:00 2001 From: its-a-feature Date: Tue, 6 Feb 2024 22:31:08 -0600 Subject: [PATCH] updating build instructions --- Payload_Type/arachne/arachne/agent_functions/builder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Payload_Type/arachne/arachne/agent_functions/builder.py b/Payload_Type/arachne/arachne/agent_functions/builder.py index 3c67451..314cbfe 100644 --- a/Payload_Type/arachne/arachne/agent_functions/builder.py +++ b/Payload_Type/arachne/arachne/agent_functions/builder.py @@ -59,6 +59,7 @@ async def build(self) -> BuildResponse: resp.build_message = "Can't include more than one c2 profile currently" return resp file1 = file1.replace("%UUID%", self.uuid) + remote_url = "" for c2 in self.c2info: try: profile = c2.get_c2profile() @@ -69,6 +70,7 @@ async def build(self) -> BuildResponse: file1 = file1.replace('%PARAM%', c2_dict["query_param"]) file1 = file1.replace('%COOKIE%', c2_dict["cookie_name"]) file1 = file1.replace('%USER_AGENT%', c2_dict['user_agent']) + remote_url = c2_dict["url"] except Exception as e: resp.build_stderr = str(e) return resp @@ -83,6 +85,9 @@ async def build(self) -> BuildResponse: PayloadUUID=self.uuid, C2ProfileName="webshell", )) + resp.build_message = f"An initial callback is automatically created and tasking that callback will try to reach out directly to {remote_url} to issue tasking." + resp.build_message += f"\nLink to this callback from another agent in order to task {remote_url} from that agent." + resp.build_message += f"\nUnlink all other callbacks from this callback in order to have the payload type container reach out directly to {remote_url} again." if not create_callback.Success: logger.info(create_callback.Error) else: