1.0.1 • Published 2 years ago
frida-loader v1.0.1
frida-loader
A faster frida-compile to bundle and inject script
Difference between frida-loader and frida-compile
They are both tools for building bundled scripts for frida, but frida-loader has a much faster compile speed with the help of esbuild.
In addition, frida-loader integrates with frida and supports direct injection of built scripts into the process. (No longer need Python)
Feature
- Bundle script and inject to process with extremely speed
- Typescript support
- Watch for file changes and hot reload
Usage
Add to an existing project
- Install
npm install frida-loader --save-dev
- Add a build script to your package.json file like this, then change
PROCESS
to your process name and changesrc/index.ts
to your entry script, see Documentation for more details
{
"scripts": {
"build": "frida-loader src/index.ts -U -n PROCESS"
}
}
- Make sure frida-server and target processes are running, then run
npm run launch
- Modify yout script and save it, and you'll see the script quickly reloaded
You can also try it on example
Documentation
Usage: loader-cli [options] <entry-file>
Options:
-V, --version output the version number
-D, --device ID connect to device with the given ID
-U, --usb connect to USB device
-R, --remote connect to remote frida-server
-f , --file <TARGET> spawn FILE
-F, --attach-frontmost attach to frontmost application (default: false)
-n, --attach-name <NAME> attach to NAME
-p, --attach-pid <PID> attach to PID
-m, --minify minify output script
--no-watch do not watch for file changed
--no-inject do not inject to process
-h, --help display help for command