File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,21 @@ RUN pip3 install frida-tools
8484# frida-dexdump
8585RUN 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
88103USER 0
89104RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments