-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile.android-undetect
26 lines (22 loc) · 1.64 KB
/
Dockerfile.android-undetect
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
# Before building this image:
# docker build -t injectionforge-android -f Dockerfile.android
FROM injectionforge-android
# Frida dependencies to optionally compile frida
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential git lib32stdc++-9-dev libc6-dev-i386 nodejs npm python3-pip && \
pip install --break-system-packages lief
# Compile frida-core devkit
ARG FRIDA_HOST=android-arm
# Updated https://github.com/ultrafunkamsterdam/undetected-frida-patches
COPY .github/undetected-frida-patches.patch /undetected-frida-patches.patch
RUN git clone https://github.com/frida/frida-core /frida-core && \
cd /frida-core && \
git apply /undetected-frida-patches.patch && \
./configure --host=${FRIDA_HOST} --with-devkits=core --disable-connectivity --disable-portal --disable-server --disable-tests --disable-gadget --disable-inject && \
make -j8
ENV FRIDA_CORE_DEVKIT_PATH="/frida-core/build/src/devkit"
# Run with: docker run -it --name iforge -v $(pwd):/injectionforge injectionforge:latest
# CMD [ "cargo", "ndk", "-t", "armeabi-v7a", "--bindgen", "build", "--no-default-features", "--features", "frida", "&&", "python3", "/frida-core/src/anti-anti-frida.py", "target/armv7-linux-androideabi/debug/standalone", "&&", "python3", "/frida-core/src/anti-anti-frida.py", "target/armv7-linux-androideabi/debug/libinjectionforge.so" ]
CMD cargo ndk -t armeabi-v7a --bindgen build --no-default-features --features frida --release && \
python3 /frida-core/src/anti-anti-frida.py target/armv7-linux-androideabi/release/standalone && \
python3 /frida-core/src/anti-anti-frida.py target/armv7-linux-androideabi/release/libinjectionforge.so