Skip to content

Commit

Permalink
Merge pull request #75 from MythicAgents/Arm64
Browse files Browse the repository at this point in the history
Arm64 update
  • Loading branch information
tr41nwr3ck authored Sep 5, 2024
2 parents 81c25a6 + fb4d786 commit 13a65df
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 29 deletions.
62 changes: 42 additions & 20 deletions Payload_Type/athena/.docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/[email protected]
COPY [".", "."]

CMD ["python3", "main.py"]
CMD ["python3", "/Mythic/main.py"]
9 changes: 2 additions & 7 deletions Payload_Type/athena/.docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
py2app
3 changes: 1 addition & 2 deletions Payload_Type/athena/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
donut-shellcode
pefile
py2app
py2app

0 comments on commit 13a65df

Please sign in to comment.