From 3cff0e93462a6917051730e8e32fe08fb90b4bb4 Mon Sep 17 00:00:00 2001 From: iddoeldor Date: Wed, 17 Jul 2019 18:10:52 +0300 Subject: [PATCH] dump memory segment --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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