Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __str__(self):
return "InstructionRangeExceededError(ended at instruction 0x%08X)" % self.pc
class Hook(LoggingObject):
def __init__(self):
super(Hook, self).__init__()
def hook(self, callname, emu, callconv, api, argv):
# must return something other than None if handled
# raise UnsupportedFunction to pass
raise UnsupportedFunction()
class Monitor(vivisect.impemu.monitor.EmulationMonitor, LoggingObject):
def __init__(self, vw):
vivisect.impemu.monitor.EmulationMonitor.__init__(self)
LoggingObject.__init__(self)
self._vw = vw
self._logger = logging.getLogger("Monitor")
def getStackValue(self, emu, offset):
return emu.readMemoryFormat(emu.getStackCounter() + offset, "
def __init__(self, vw):
vivisect.impemu.monitor.EmulationMonitor.__init__(self)
LoggingObject.__init__(self)
self._vw = vw
self._logger = logging.getLogger("Monitor")