From 930258606c083b156d5a5f0409f68541004ab2da Mon Sep 17 00:00:00 2001 From: Iddo Date: Wed, 30 May 2018 18:47:02 +0300 Subject: [PATCH] nm long flags --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 14cd73f..fbed1d3 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Interceptor.attach(Module.findExportByName(null, "dlopen"), { console.log("dlopen called exit with: " + this.lib); if (this.lib.endsWith("libfoo.so")) { console.log("ret: " + retval); - var funcAddr = 0x0021e5b4; // find function address with $ nm -CD libfoo.so | grep "SomeClass::someFunction" + var funcAddr = 0x0021e5b4; // find function address with $ nm --demangle --dynamic libfoo.so | grep "SomeClass::someFunction" var offset = Module.findBaseAddress("libfoo.so"); // Process.findModuleByName("libfoo.so").base) will also work Interceptor.attach(offset.add(funcAddr), { onEnter: function(args) {