-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
31 lines (25 loc) · 840 Bytes
/
__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
import os
from objection.utils.plugin import Plugin
from objection.state.connection import state_connection
class ClipboardPlugin(Plugin):
def __init__(self, namespace):
super().__init__(__file__, namespace, {
'meta': 'Work with the Android Clipboard',
'commands': {
'monitor': {
'meta': 'Monitor the Android Clipboard',
'exec': self.monitor
}
}
})
self.inject()
def monitor(self, args: list = None) -> None:
"""
Starts a new objection job that monitors the Android clipboard
and reports on new strings found.
:param args:
:return:
"""
self.api.android_monitor_clipboard()
namespace = 'clipboard'
plugin = ClipboardPlugin