dump memory segment
This commit is contained in:
parent
5b7c2d794d
commit
3cff0e9346
28
README.md
28
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)
|
||||
|
||||
|
||||
</details>
|
||||
|
||||
@ -1689,6 +1691,32 @@ TODO
|
||||
<br>[⬆ 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 () {}
|
||||
});
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Output example</summary>
|
||||
TODO
|
||||
</details>
|
||||
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#### Device properties
|
||||
Example of quick&dirty iOS device properties extraction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user