https://github.com/m7medvision/auto-frida
This script automatically download the latest Frida server and installing it on a connected Android.
https://github.com/m7medvision/auto-frida
android frida frida-scripts frida-tools reverse-engineering
Last synced: about 1 month ago
JSON representation
This script automatically download the latest Frida server and installing it on a connected Android.
- Host: GitHub
- URL: https://github.com/m7medvision/auto-frida
- Owner: m7medVision
- Created: 2024-10-21T19:16:02.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-21T19:42:09.000Z (over 1 year ago)
- Last Synced: 2024-10-22T12:46:17.245Z (over 1 year ago)
- Topics: android, frida, frida-scripts, frida-tools, reverse-engineering
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frida Server auto installer
This script automates the process of downloading the matching Frida server and installing it on a connected Android device. It handles architecture detection and simplifies the setup for Frida-based reverse engineering or instrumentation.
## Prerequisites
* Bash installed.
* `adb` in your system's PATH.
* `curl` installed.
* `xz` utility installed.
## Usage
1. Connect your Android device via USB debugging.
2. Quick run without cloning: `curl -fsSL https://raw.githubusercontent.com/m7medVision/auto-frida/master/install-frida-server.sh | bash`
3. Or run locally from the repo: `bash install-frida-server.sh`
## How it works
1. **Device Detection:** The script checks for a connected device using `adb devices`. If no device is found, it displays an error message.
2. **Frida Version Selection:** It first tries to detect the Frida version already installed on your machine using the `frida` CLI or Python package. If no local installation is found, it falls back to the latest GitHub release.
3. **Architecture Detection:** It determines the device's architecture (arm64, arm, x86_64, x86) using `adb shell getprop ro.product.cpu.abi`.
4. **Frida Download:** Downloads the appropriate Frida server version for the detected architecture from the official GitHub releases. The server is downloaded as an xz compressed file and then decompressed.
5. **Frida Upload:** Uploads `frida-server` to the device's `/data/local/tmp/` directory using `adb push`.
6. **Permissions Setting:** Sets execute permissions for `frida-server` on the device.
## Error
If face any error please open an issue.