-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathapp.py
38 lines (28 loc) · 864 Bytes
/
app.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
import sys
from frida_tools.application import ConsoleApplication
from xpcspy.lib.types import Filter
from agent import Agent
class XPCSpyApplication(ConsoleApplication):
def _usage(self):
return "%(prog)s"
def _needs_target(self):
return True
def _initialize(self, parser, options, args):
self._filter = Filter.from_str("o:*")
self._should_parse = True
self._print_timestamp = False
self._target = ("name", "AppleSpell")
def _start(self):
agent = Agent(
self._filter,
self._should_parse,
self._session,
self._reactor,
self._print_timestamp,
)
agent.start_hooking(self)
if __name__ == "__main__":
if len(sys.argv) == 1:
sys.argv.append("AppleSpell")
app = XPCSpyApplication()
app.run()