Created
December 2, 2020 13:36
-
-
Save konsumer/d17905909ac7c967f366f493ff9ace84 to your computer and use it in GitHub Desktop.
Script to get frida installed on rooted device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# get frida installed on your android device | |
# you should be rooted & have adb & unxz in your path | |
VERSION="14.0.8-android-arm64" | |
adb shell "su -c killall -9 frida-server" | |
if ! adb shell "test -f /data/local/tmp/frida-server"; then | |
if [ ! -f "frida-server-${VERSION}.xz" ]; then | |
wget "https://github.com/frida/frida/releases/download/14.0.8/frida-server-${VERSION}.xz" | |
fi | |
if [ ! -f "frida-server-${VERSION}" ]; then | |
unxz "frida-server-${VERSION}.xz" | |
fi | |
adb push "frida-server-${VERSION}" /data/local/tmp/frida-server | |
adb shell "chmod 755 /data/local/tmp/frida-server" | |
fi | |
adb shell "su -c '/data/local/tmp/frida-server -D'" & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment