diff --git a/README.md b/README.md index 6f3738b..a5dc297 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ * [`Log SQLite query`](#log-sqlite-query) * [`Log method arguments`](#log-method-arguments) * [`Intercept entire module`](#intercept-entire-module) +* [`Dump memory segments`](#dump-memory-segments) + @@ -1689,6 +1691,32 @@ TODO
[⬆ Back to top](#table-of-contents) + +#### Dump memory segments + +```js +Process.enumerateRanges('rw-', { + onMatch: function (instance) { + console.log(`base=${instance.base} size=${instance.size} prot=${instance.protection}`); + var f = new File('/sdcard/' + instance.base + '_dump', 'wb'); + f.write(Memory.readByteArray(instance.base, instance.size)); + f.close(); + }, + onComplete: function () {} +}); +``` + +
+Output example +TODO +
+ +
[⬆ Back to top](#table-of-contents) + + + + + #### Device properties Example of quick&dirty iOS device properties extraction