forked from hluwa/frida-dexdump
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__init__.py
52 lines (37 loc) · 1.2 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Author: hluwa <[email protected]>
# HomePage: https://github.com/hluwa
# CreatedTime: 2020/3/5 19:14
__description__ = "a objection plugin to fast search and dump dex on memory."
from objection.state.connection import state_connection
from objection.utils.plugin import Plugin
from .main import *
class DEXDump(Plugin):
def __init__(self, ns):
"""
Creates a new instance of the plugin
:param ns:
"""
self.script_path = os.path.join(os.path.dirname(__file__), "agent.js")
implementation = {
'meta': 'fast search and dump dex on memory.',
'commands': {
'search': {
'meta': 'search all dex',
'exec': self.search
},
'dump': {
'meta': 'dump all dex',
'exec': self.dump
}
}
}
super().__init__(__file__, ns, implementation)
self.inject()
def search(self, args=None):
main.search(self.api)
def dump(self, args=None):
"""
"""
main.dump(state_connection.gadget_name, self.api)
namespace = 'dexdump'
plugin = DEXDump