Skip to content

Commit

Permalink
client: symbol: add stripped_value property
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Oct 15, 2024
1 parent 25d7fa0 commit dc809cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rpcclient/rpcclient/darwin/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ def objc_symbol(self):
def osstatus(self) -> Optional[list[ErrorCode]]:
""" Get possible translation to given error code by querying osstatus """
return get_possible_error_codes(self)

@property
def stripped_value(self) -> 'DarwinSymbol':
""" Remove PAC upper bits """
return self._client.symbol(self & 0xfffffffff)

0 comments on commit dc809cc

Please sign in to comment.