Skip to content

Commit

Permalink
darwin: symbol: add region property
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Mar 30, 2022
1 parent 5fa0ce0 commit fb9cfc6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rpcclient/rpcclient/darwin/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ def objc_call(self, selector, *params, **kwargs):

return self._client.symbols.objc_msgSend(self, sel, *params, **kwargs)

@property
def region(self):
""" get corresponding region """
for region in self._client.processes.get_by_pid(self._client.pid).regions:
if (self >= region.start) and (self <= region.end):
return region

@property
def cfdesc(self):
"""
Expand Down

0 comments on commit fb9cfc6

Please sign in to comment.