update list modules & exports
This commit is contained in:
parent
64eee4dc89
commit
1041b71f3c
12
README.md
12
README.md
@ -1,6 +1,6 @@
|
|||||||
# Contents
|
# Contents
|
||||||
- [Enumerate loaded classes](#enumerate-loaded-classes)
|
- [Enumerate loaded classes](#enumerate-loaded-classes)
|
||||||
- [Extract modules from APK](#extract-modules-from-apk)
|
- [List modules](#list-modules)
|
||||||
- [Get methods from .so file](#get-methods-from-so-file)
|
- [Get methods from .so file](#get-methods-from-so-file)
|
||||||
- [SQLite hook example](#sqlite-hook)
|
- [SQLite hook example](#sqlite-hook)
|
||||||
- [Hook Java refelaction](#hook-refelaction)
|
- [Hook Java refelaction](#hook-refelaction)
|
||||||
@ -17,12 +17,20 @@
|
|||||||
```
|
```
|
||||||
$ frida -U com.pkg -qe 'Java.perform(function(){Java.enumerateLoadedClasses({"onMatch":function(c){console.log(c);}});});' -o pkg.classes
|
$ frida -U com.pkg -qe 'Java.perform(function(){Java.enumerateLoadedClasses({"onMatch":function(c){console.log(c);}});});' -o pkg.classes
|
||||||
```
|
```
|
||||||
#### Extract modules from APK
|
#### List modules
|
||||||
```
|
```
|
||||||
$ frida -Uq com.android. -e "Process.enumerateModules({onMatch: function(m){console.log('-' + m.name)},onComplete:function(){}})"
|
$ frida -Uq com.android. -e "Process.enumerateModules({onMatch: function(m){console.log('-' + m.name)},onComplete:function(){}})"
|
||||||
....
|
....
|
||||||
-libsqlite.so
|
-libsqlite.so
|
||||||
```
|
```
|
||||||
|
```
|
||||||
|
Process.enumerateModulesSync()
|
||||||
|
.filter(function(m){ return m['path'].toLowerCase().indexOf('app') !=-1 ; })
|
||||||
|
.forEach(function(m) {
|
||||||
|
console.log(JSON.stringify(m, null, ' '));
|
||||||
|
// to list exports use Module.enumerateExportsSync(m.name)
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
#### Get methods from so file
|
#### Get methods from so file
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user