diff --git a/Payload_Type/athena/.docker/Dockerfile b/Payload_Type/athena/.docker/Dockerfile index 17e7bba4..e55e0510 100644 --- a/Payload_Type/athena/.docker/Dockerfile +++ b/Payload_Type/athena/.docker/Dockerfile @@ -1,33 +1,55 @@ -FROM python:3.11-slim-bookworm as builder - -COPY [".docker/requirements.txt", "requirements.txt"] -#force push -RUN apt-get -y update && \ - apt-get -y upgrade && \ - apt-get install --no-install-recommends \ - wget software-properties-common apt-utils make build-essential libssl-dev zlib1g-dev libbz2-dev \ - xz-utils tk-dev libffi-dev liblzma-dev libsqlite3-dev protobuf-compiler \ - binutils-aarch64-linux-gnu libc-dev-arm64-cross -y -RUN python3 -m pip wheel --wheel-dir /wheels -r requirements.txt - FROM python:3.11-slim-bookworm -COPY --from=builder /wheels /wheels +ARG DONUT_URL=https://github.com/MEhrn00/donut/releases/download/v2.0.0/donut_shellcode-2.0.0.tar.gz +ARG DOTNET_URL=https://dot.net/v1/dotnet-install.sh + +WORKDIR /Mythic/ -RUN apt-get -y update && apt-get install -y wget gcc libicu-dev gcc-mingw-w64 make -RUN pip install --no-cache /wheels/* -RUN pip install donut-shellcode -RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh +RUN apt-get -y update && apt-get -y upgrade +RUN apt-get install --no-install-recommends -y \ + apt-utils \ + binutils-aarch64-linux-gnu \ + build-essential \ + curl \ + gcc \ + gcc-mingw-w64 \ + git \ + libbz2-dev \ + libc-dev-arm64-cross \ + libffi-dev \ + libicu-dev \ + liblzma-dev \ + libsqlite3-dev \ + libssl-dev \ + make \ + protobuf-compiler \ + software-properties-common \ + tk-dev \ + wget \ + xz-utils \ + zlib1g-dev + +# Install requirements for the project +RUN python3 -m pip install pycryptodome mythic-container pefile py2app + +# RUN python3 -m pip install --no-cache /wheels/* +RUN wget ${DOTNET_URL} -O dotnet-install.sh ENV PATH="${PATH}:/root/.dotnet/" ENV PATH="${PATH}:/root/.dotnet/tools" ENV DOTNET_ROOT="/root/.dotnet/" RUN chmod +x ./dotnet-install.sh RUN ./dotnet-install.sh --version 7.0.115 +#For ARM64 +RUN ./dotnet-install.sh --version 6.0.425 RUN dotnet tool install Obfuscar.GlobalTool -g -WORKDIR /Mythic/ - +# Add Donut with ARM64 support +RUN mkdir /tmp/donut +RUN wget -qO- ${DONUT_URL} | tar xvz -C /tmp/donut/ +RUN cd /tmp/donut/donut_shellcode-2.0.0/ && make && cp donut / +RUN rm -rf /tmp/donut +RUN python3 -m pip install git+https://github.com/MEhrn00/donut.git@v2.0.0 COPY [".", "."] -CMD ["python3", "main.py"] \ No newline at end of file +CMD ["python3", "/Mythic/main.py"] diff --git a/Payload_Type/athena/.docker/requirements.txt b/Payload_Type/athena/.docker/requirements.txt index 9caab8a1..ee6dd46c 100644 --- a/Payload_Type/athena/.docker/requirements.txt +++ b/Payload_Type/athena/.docker/requirements.txt @@ -1,9 +1,4 @@ -aio-pika==9.0.4 -dynaconf==3.1.11 -ujson==5.7.0 -aiohttp==3.8.3 -psutil==5.9.4 pycryptodome -mythic-container==0.4.5 +mythic-container pefile -py2app \ No newline at end of file +py2app diff --git a/Payload_Type/athena/requirements.txt b/Payload_Type/athena/requirements.txt index 3e4ccedc..4e4d266f 100644 --- a/Payload_Type/athena/requirements.txt +++ b/Payload_Type/athena/requirements.txt @@ -1,3 +1,2 @@ -donut-shellcode pefile -py2app \ No newline at end of file +py2app