-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (33 loc) · 1.41 KB
/
Copy pathDockerfile
File metadata and controls
42 lines (33 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:24.04 AS stage1
WORKDIR /root
# 源
# COPY sources.list /etc/apt/sources.list
# DEB822 格式源
COPY ubuntu.sources /etc/apt/sources.list.d/
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y git curl unzip python3 python3-pip build-essential lib32stdc++-9-dev \
libc6-dev-i386 nodejs npm
# 进程名和文件名
ARG NAME
RUN git config --global user.email "you@example.com" && \
git config --global user.name "Your Name" && \
npm config set registry http://mirrors.cloud.tencent.com/npm/ && \
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/ && \
\
git clone https://github.com/kwdiwt/frida-core.git && \
cd frida-core && \
git switch --track origin/1656 && \
git submodule update --init --recursive && \
sed -i "s/ggbond/${NAME:-kjlk}/" src/frida-glue.c && \
\
cd && curl -O https://dl.google.com/android/repository/android-ndk-r25c-linux.zip && \
unzip android-ndk-r25c-linux.zip
ENV ANDROID_NDK_ROOT=/root/android-ndk-r25c
RUN cd frida-core && ./configure --host=android-arm64 && make
RUN pip install lief --break-system-packages --trusted-host mirrors.aliyun.com && \
mkdir end && cd end && \
cp ~/frida-core/src/anti-anti-frida.py ~/frida-core/build/server/frida-server ./ && \
python3 anti-anti-frida.py frida-server
FROM scratch AS export-stage
ARG NAME
COPY --from=stage1 /root/end/frida-server ./$NAME