Skip to content

Commit

Permalink
DarwinClient: Add CFSTR to iPython namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
netanelc305 committed Jul 12, 2023
1 parent a6574f1 commit 1373f2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rpcclient/rpcclient/darwin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ def _init_process_specific(self):
self._NSPropertyListSerialization = self.objc_get_class('NSPropertyListSerialization')
self._CFNullTypeID = self.symbols.CFNullGetTypeID()

def interactive(self, additional_namespace: typing.Mapping = None):
if additional_namespace is None:
additional_namespace = {}
additional_namespace['CFSTR'] = self.cf
super().interactive(additional_namespace=additional_namespace)

@property
def images(self) -> typing.List[DyldImage]:
m = []
Expand Down

0 comments on commit 1373f2b

Please sign in to comment.