An open API service indexing awesome lists of open source software.

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.

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.