Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arm64 #75

Merged
merged 14 commits into from
Sep 5, 2024
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
Loading