frida-inject
With this module, you can easily inject javascript into processes.
Features
- Bundle & Transpile injected scripts (no frida-compile needed)
- Clean frida bloat (tmp folder & injector process)
- Retry if process not found
- Easy to use!
Installation
$ npm install frida-inject
Documentation
FridaInject (options): Function
- options: Object
- clean: Boolean
[default=true]
- debug: Boolean
[default=false]
- device: FridaDevice
[default=localDevice]
- pid: Number // Process id
- name: String // Process name
- scripts: Array< String|Array<String> >
[default=[]]
- waitDelay: Number
[default=0]
(ms to wait before retrying injection|0=off) - onAttach: Function<session>
- onDetach: Function<session, reason>
- onLoad: Function<script>
- onUnload: Function<script>
- clean: Boolean
Example
Simple injection
const FridaInject =
Simple injection (Bundled scripts)
Since version 0.3.0 you can provide multiple scripts into one script.
This will allow you to share a global scope.
const FridaInject =
Advanced injection (provided device)
const Frida = const FridaInject = { const device = await Frida const pid = await device }
TODO
- Implement better clean logic