Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
checkymander committed Jan 23, 2025
1 parent f1c16ad commit dc9bc63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Payload_Type/athena/athena/mythic/agent_functions/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,14 @@ async def build(self) -> BuildResponse:
shutil.make_archive(f"{agent_build_path.name}/output", "zip", f"{agent_build_path.name}")
return await self.returnSuccess(resp, "File built succesfully!", agent_build_path)

mCommand = self.getBuildCommentModels()
mCommand = await self.getBuildCommentModels()

try:
mProc = await asyncio.create_subprocess_shell(mCommand, stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
cwd=agent_build_path.name)
except:
build_stdout, build_stderr = await proc.communicate()
build_stdout, build_stderr = await mProc.communicate()
logger.critical(e)
logger.critical("command: {}".format(command))
return await self.returnFailure(resp, str(traceback.format_exc()), e)
Expand Down

0 comments on commit dc9bc63

Please sign in to comment.