Skip to content

Commit faf82fa

Browse files
V1.5: Add frida-server, bash script to setup frida-server
1 parent 347b20a commit faf82fa

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@ RUN pip3 install frida-tools
8484
# frida-dexdump
8585
RUN pip3 install frida-dexdump
8686

87+
# frida-server
88+
USER 0
89+
RUN apt -y install xz-utils
90+
USER 1000
91+
WORKDIR $HOME
92+
ENV FILENAME_FRIDASERVER="frida-server-16.0.3-android-arm64"
93+
COPY "$FILENAME_FRIDASERVER".xz $HOME
94+
RUN sudo chown 1000:1000 $FILENAME_FRIDASERVER.xz \
95+
&& unxz $FILENAME_FRIDASERVER.xz
96+
97+
# Bash script to setup frida-server
98+
USER 1000
99+
WORKDIR $HOME
100+
COPY frida_setup.sh $HOME
101+
87102
# clean
88103
USER 0
89104
RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
14.9 MB
Binary file not shown.

frida_setup.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Setup frida server
4+
set -x
5+
adb root
6+
adb remount
7+
adb forward tcp:27043 tcp:27043
8+
adb forward tcp:27042 tcp:27042
9+
adb push $HOME/$FILENAME_FRIDASERVER /data/local/tmp/
10+
adb shell "chmod 755 /data/local/tmp/$FILENAME_FRIDASERVER"
11+
adb shell "nohup 2>&1 1&>/dev/null /data/local/tmp/$FILENAME_FRIDASERVER" &
12+
set +x
13+

0 commit comments

Comments
 (0)