Skip to content

Instantly share code, notes, and snippets.

➜ frida-node git:(master) ✗ npm install --build-from-source
> [email protected] install /private/tmp/frida-node
> node-pre-gyp install
CXX(target) Release/obj.target/frida_binding/src/addon.o
In file included from ../src/addon.cc:1:
In file included from ../src/device.h:4:
In file included from ../src/glib_object.h:4:
In file included from ../src/runtime.h:4:
11:42:33 <+yrp> I should write an app named crack who's output is nearly always pipe'd
11:43:36 <@katana_> And now we're all on a list.
11:43:39 <@katana_> Thanks, yrp.
11:43:49 <+yrp> youve been on the list for a while
11:44:18 <+carbonated> pgp encryption sha256 bitcoin wikileaks snowden tunneling tor onion
11:44:21 <+carbonated> there now we're all on a list.
var frida = require('..');
var processName = process.argv[2];
var processAddress = process.argv[3];
var script =
"var fn = new NativeFunction(ptr('%addr'), 'void', [ 'int' ]);" +
"fn(1);" +
"fn(1);" +
Interceptor.replace('%addr%', new NativeCallback(function() {
return 5;
}, 'int', []));
var frida = require('frida');
var script = `
recv('getModules', function() {
var modules = [];
Process.enumerateModules({
onMatch: function(module) {
...snip
/System/enumerate-processes-returns-processes-with-icons: OK
/Fruitjector/inject-current-arch:
FAIL: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code0: task_for_pid failed while trying to inject: (os/kern) failure (5)
**
ERROR:../../../../frida-core/tests/test-fruitjector.c:1026:frida_fruitjector_test_lab_rat_do_injection_co: code should not be reached
make[1]: *** [check-core-mac] Abort trap: 6
make: *** [check-gum-mac] Error 2
➜ frida git:(master) make check-core-mac
build/tmp-mac-i386/frida-core/tests/frida-tests -p /
/System/enumerate-processes-returns-processes-with-icons: OK
/Fruitjector/inject-current-arch:
FAIL: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code0: task_for_pid failed while trying to inject: (os/kern) failure (5)
**
ERROR:../../../../frida-core/tests/test-fruitjector.c:1026:frida_fruitjector_test_lab_rat_do_injection_co: code should not be reached
^Cmake[1]: *** [check-core-mac] Abort trap: 6
make: *** [check-core-mac] Interrupt: 2
npm ERR! publish Failed PUT undefined
npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/adam/.nvm/versions/io.js/v2.2.0/bin/iojs" "/Users/adam/.nvm/versions/io.js/v2.2.0/bin/npm" "publish"
npm ERR! node v2.2.0
npm ERR! npm v2.11.0
npm ERR! code ESSL
npm ERR! SSL Error: https://registry.npmjs.org/hudson-taylor does not support SSL
npm ERR!
npm ERR! If you need help, you may report this error at:
var cpu = new CPU([
0xA0, 0xCE, // 200: I = 206
0x60, 0x01, // 202: V[0] = 0x01
0xF0, 0x1E, // 204: I += V[0]
0x12, 0x0D, // 206: JMP 213
0x12, 0x34, // 207-8: DATA
0x56, 0x78, // 209-10: DATA
0x9A, // 212: DATA
0xFA, 0x65 // 213
]);
function cdcontainer() { cd /var/lib/docker/containers/`docker ps | grep $1 | awk '{print $1}'`*; }