Skip to content

Commit

Permalink
V1.5: Add frida-server, bash script to setup frida-server
Browse files Browse the repository at this point in the history
  • Loading branch information
NasdaqGodzilla committed Nov 24, 2022
1 parent 347b20a commit faf82fa
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,21 @@ RUN pip3 install frida-tools
# frida-dexdump
RUN pip3 install frida-dexdump

# frida-server
USER 0
RUN apt -y install xz-utils
USER 1000
WORKDIR $HOME
ENV FILENAME_FRIDASERVER="frida-server-16.0.3-android-arm64"
COPY "$FILENAME_FRIDASERVER".xz $HOME
RUN sudo chown 1000:1000 $FILENAME_FRIDASERVER.xz \
&& unxz $FILENAME_FRIDASERVER.xz

# Bash script to setup frida-server
USER 1000
WORKDIR $HOME
COPY frida_setup.sh $HOME

# clean
USER 0
RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
Expand Down
Binary file added frida-server-16.0.3-android-arm64.xz
Binary file not shown.
13 changes: 13 additions & 0 deletions frida_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Setup frida server
set -x
adb root
adb remount
adb forward tcp:27043 tcp:27043
adb forward tcp:27042 tcp:27042
adb push $HOME/$FILENAME_FRIDASERVER /data/local/tmp/
adb shell "chmod 755 /data/local/tmp/$FILENAME_FRIDASERVER"
adb shell "nohup 2>&1 1&>/dev/null /data/local/tmp/$FILENAME_FRIDASERVER" &
set +x

0 comments on commit faf82fa

Please sign in to comment.