Skip to content

Instantly share code, notes, and snippets.

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:
➜ 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
...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
var frida = require('frida');
var script = `
recv('getModules', function() {
var modules = [];
Process.enumerateModules({
onMatch: function(module) {
Interceptor.replace('%addr%', new NativeCallback(function() {
return 5;
}, 'int', []));
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);" +
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.
➜ 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:
➜ ~ npm update 6to5 -g --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'update',
npm verb cli '6to5',
npm verb cli '-g',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
function something(options) {
var { hello = "world" } = options;
console.log(hello);
}
something({ hello: "lol" }); // -> hello lol
something({}); // -> hello world