-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from MythicAgents/Arm64
Arm64 update
- Loading branch information
Showing
3 changed files
with
45 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
donut-shellcode | ||
pefile | ||
py2app | ||
py2app |