Skip to content

Commit

Permalink
fixing donut args
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Aug 31, 2024
1 parent 4392afd commit 1354c7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Payload_Type/apollo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ RUN /venv/bin/python -m pip install mslex
COPY [".", "."]

# fetch all dependencies
RUN cd apollo/agent_code && dotnet restore

RUN cp /donut donut
RUN cd apollo/agent_code && dotnet restore && rm donut && cp /donut donut

CMD ["/venv/bin/python", "main.py"]
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def build(self) -> BuildResponse:
stderr=asyncio.subprocess.PIPE)
stdout, stderr = await proc.communicate()

command = "{} -f 1 {}".format(donutPath, output_path)
command = "{} {}".format(donutPath, output_path)
# need to go through one more step to turn our exe into shellcode
proc = await asyncio.create_subprocess_shell(command, stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async def create_go_tasking(
donutPath, EXECUTE_PE_PATH, taskData.args.get_arg("pipe_name")
)
else:
command = '{} -f 1 {} -p "{}"'.format(
command = '{} -i {} -p "{}"'.format(
donutPath, EXECUTE_PE_PATH, taskData.args.get_arg("pipe_name")
)
# print(command)
Expand Down

0 comments on commit 1354c7b

Please sign in to comment.