def __init__(self, session=None, parent=None, device=None): super(Dwarf, self).__init__(parent=parent) self._app_window = parent self.database = Database() self.io = IO(self) self.keystone_installed = False try: import keystone.keystone_const self.keystone_installed = True except: pass self.java_available = False # frida device self._device = device # process self._pid = 0 self._package = None self._process = None self._script = None self._spawned = False self._resumed = False # kernel self._kernel = Kernel(self) # hooks self.hooks = {} self.native_on_loads = {} self.java_on_loads = {} self.java_hooks = {} self.watchers = {} self.temporary_input = '' self.native_pending_args = None self.java_pending_args = None # context self._arch = '' self._pointer_size = 0 self.contexts = {} self.context_tid = 0 self._platform = '' # disassembler self.disassembler = Disassembler(self) # connect to self self.onApplyContext.connect(self._on_apply_context) self.onRequestJsThreadResume.connect(self._on_request_resume_from_js)
def __init__(self, session=None, parent=None, device=None): super(Dwarf, self).__init__(parent=parent) self._app_window = parent self.database = Database() self.io = IO(self) self.keystone_installed = False try: import keystone.keystone_const self.keystone_installed = True except: pass self.java_available = False # frida device self._device = device # process self._pid = 0 self._package = None self._process = None self._script = None self._spawned = False self._resumed = False # kernel self._kernel = Kernel(self) # breakpoints self.breakpoints = {} self.java_breakpoints = {} self.objc_breakpoints = {} self.module_initialization_breakpoints = {} self.java_class_initialization_breakpoints = {} self.watchpoints = {} # context self._arch = '' self._pointer_size = 0 self.contexts = {} self.context_tid = 0 self._platform = '' # connect to self self.onApplyContext.connect(self._on_apply_context) self.onRequestJsThreadResume.connect(self._on_request_resume_from_js) # disassembler self.disassembler = Disassembler(self)