SamuelM96 / java-frida

An example of calling a Frida script from Java using JNI and frida-core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java <-> Frida Example

An example project showing how to call a Frida script from Java using JNI and frida-core.

Uses Frida 16.1.8. Tested on Ubuntu (WSL), macOS Sonoma (Apple Silicon), and Windows 11.

Usage

Linux/macOS

# Install the dependencies (Ubuntu example)
sudo apt install openjdk-11-jdk openjdk-11-jre cmake build-essential
# Or
brew install openjdk@11 cmake

# Build the project
./build.sh # Linux/macOS

# Run the example binary in a separate terminal
./build/example # Linux/macOS

# Run the Java example
./run.sh # Linux/macOS

Windows

# Install dependencies
winget install cmake ojdkbuild.openjdk.11.jre ojdkbuild.openjdk.11.jdk Microsoft.VisualStudio.2022.Community

# Build the project
./build.ps1
# Open ./build/java-frida.sln in Visual Studio and run Build > Build Solution

# Run the example binary in a separate terminal
./build/Debug/example.exe

# Run the Java example
./run.ps1

About

An example of calling a Frida script from Java using JNI and frida-core


Languages

Language:C 99.9%Language:Java 0.0%Language:CMake 0.0%Language:Shell 0.0%Language:PowerShell 0.0%Language:JavaScript 0.0%