- Frida hooks and helpers mostly aimed at finding crypto functions.
- Modify the
index.jsto suit your needs. - Use
npm installto install the dependencies.
- Use
frida-compile:node_modules/.bin/frida-compile index.js -o compiled.js. - Load the compiled file:
frida -f </path/to/someapplication> -F -l compiled.js.
mkdir myproject \
&& cd myproject \
&& npm init -y \
&& npm install --save-dev frida-compile \
&& npm install --save-dev git+https://github.com/FrankSpierings/fritzl.git \
&& touch index.jsExample index.js:
"use strict";
const Fritzl = require('fritzl');
var Utils = Fritzl.Utils;
var Golang = Fritzl.Golang;
Fritzl.disablePinning();
Fritzl.hookDecryption();
Fritzl.hookEncryption();
Fritzl.hookHMAC();
Fritzl.hookKeygen();
Fritzl.hookGoEncryption();
global.Fritzl = Fritzl;
global.hd = Fritzl.hd;
global.ts = Fritzl.ts;
console.log('Regex example: ' + JSON.stringify(Golang.findSymbolsByPattern(/decrypt/i), null, 1));- Compile:
node_modules/.bin/frida-compile index.js -o compiled.js. - Usage example:
frida --no-pause -l compiled.js -f $(which curl) -- https://www.google.com
- Use the
Utils.telescopeandUtils.hexdumpto find pointers in memory. - You might be able to use the
golang.jsmodule to hookGolangexecutables (as long as that binary is linked tolibc).
- Grab whatever you want or need from this code. I am a lousy developer, so I am sure you will improve it ;)
