Skip to content

Commit

Permalink
Fix the dockerfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Zervas <[email protected]>
  • Loading branch information
dzervas committed Jul 28, 2024
1 parent d7ff62f commit d4660c0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/tests
target
.git
.vscode
.github
!/.github/undetected-frida-patches.patch
*.nix
/renovate.json
__handlers__
2 changes: 1 addition & 1 deletion Dockerfile.android
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ COPY . /injectionforge
WORKDIR /injectionforge

# Run with: docker run -it --name iforge -v $(pwd):/injectionforge injectionforge:latest
CMD ["cargo", "ndk", "-t", ${NDK_ARCH}, "--bindgen", "build"]
CMD cargo ndk -t armeabi-v7a --bindgen build --release
5 changes: 4 additions & 1 deletion Dockerfile.android-undetect
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ RUN git clone https://github.com/frida/frida-core /frida-core && \
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", "&&", "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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ process (or APK repacking):
```bash
git clone https://github.com/dzervas/injectionforge
cd injectionforge
docker build -t injectionforge-android -f Dockerfile.android
docker build -t injectionforge-android -f Dockerfile.android .
docker run -e FRIDA_CODE_FILE=/script.js -v $(pwd)/target:/injectionforge/target -v $(pwd)/myscript.js:/script.js injectionforge-android
```

Expand All @@ -104,8 +104,8 @@ To use a patched frida to evade some basic anti-frida techniques
```bash
git clone https://github.com/dzervas/injectionforge
cd injectionforge
docker build -t injectionforge-android -f Dockerfile.android
docker build -t injectionforge-android-undetect -f Dockerfile.android-undetect
docker build -t injectionforge-android -f Dockerfile.android .
docker build -t injectionforge-android-undetect -f Dockerfile.android-undetect .
docker run -e FRIDA_CODE_FILE=/script.js -v $(pwd)/target:/injectionforge/target -v $(pwd)/myscript.js:/script.js injectionforge-android-undetect
```

Expand Down

0 comments on commit d4660c0

Please sign in to comment.