Metadata-Version: 2.4
Name: fridac
Version: 0.1.2
Summary: Frida CLI proxy that prepends a compatibility shim for old scripts on Frida 17+.
Author: Ryan Andrew
License-Expression: MIT
Keywords: frida,instrumentation,reverse-engineering,compatibility
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Debuggers
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: frida>=17
Requires-Dist: frida-tools>=14

# fridac

[`fridac`](https://github.com/ryan-andrew/fridac) is a proxy for the `frida` CLI command.

It prepends a JavaScript compatibility shim to every script loaded with
`-l/--load`, so older Frida scripts can keep running on Frida 17+.

## Install

```bash
pip install fridac
```

Or if using an internal package repository:
```bash
pip install fridac --index-url https://pypi.org/simple
```

This installs `frida>=17` and `frida-tools` as dependencies.

## Usage

Use it exactly like `frida`:

```bash
fridac -U -f com.example.app -l my_old_script.js
```

The proxy:

- rewrites each `-l/--load` script to a temporary shimmed file
- forwards all other arguments unchanged to `frida`
- watches loaded script files and refreshes the shimmed temp files on edit

## Development

The shim source of truth is:

- `src/fridac/shim.js`

The embedded Python string used at runtime is:

- `src/fridac/_embedded_shim.py`

Regenerate it manually:

```bash
python tools/embed_shim.py
```
