From a6eaabc7fb5fa5de514896b99cf2c3dae6ad15aa Mon Sep 17 00:00:00 2001 From: iddoeldor Date: Wed, 14 Oct 2020 18:37:28 +0300 Subject: [PATCH] c++ demangler --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/README.md b/README.md index 0178b82..19f3dc6 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ * [`Dump memory segments`](#dump-memory-segments) * [`Memory scan`](#memory-scan) * [`Stalker`](#stalker) +* [`Cpp Demangler`](#cpp-demangler) @@ -2165,6 +2166,55 @@ mul x5, x2, x21 # mul 0x3, 0x4, 0x5 + + + +#### Cpp demangler + +```sh +$ npm i frida-compile demangler-js -g +``` + +add to your script + +```js +const demangle = require('demangler-js').demangle; +... +Module.enumerateExportsSync('library.so') + .filter(x => x.name.startsWith('_Z')) + .forEach(x => { + Interceptor.attach(x.address, { + onEnter: function (args) { + console.log('[-] ' + demangle(x.name)); + } + }); + }); +``` + +compile + +```sh +$ frida-compile script.js -o out.js +``` + +run + +```sh +$ frida -Uf com.app -l out.js +``` + + +
+Output example +TODO +
+ +
[⬆ Back to top](#table-of-contents) + + + + + #### Device properties Example of quick&dirty iOS device properties extraction