当前位置: 首页>>代码示例>>Python>>正文


Python addrspace.ASAssertionError方法代码示例

本文整理汇总了Python中volatility.addrspace.ASAssertionError方法的典型用法代码示例。如果您正苦于以下问题:Python addrspace.ASAssertionError方法的具体用法?Python addrspace.ASAssertionError怎么用?Python addrspace.ASAssertionError使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在volatility.addrspace的用法示例。


在下文中一共展示了addrspace.ASAssertionError方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: generate_suggestions

# 需要导入模块: from volatility import addrspace [as 别名]
# 或者: from volatility.addrspace import ASAssertionError [as 别名]
def generate_suggestions(self):
        """Generates a single response of True or False depending on whether the space is a valid Windows AS"""
        # This constraint looks for self referential values within
        # the paging tables
        try:
            if self.obj_vm.pae:
                pde_base = 0xc0600000
                pd = self.obj_vm.get_pdpi(0) & 0xffffffffff000
            else:
                pde_base = 0xc0300000
                pd = self.obj_vm.dtb
            if (self.obj_vm.vtop(pde_base) == pd):
                yield True
                raise StopIteration

        except addrspace.ASAssertionError, _e:
            pass 
开发者ID:virtualrealitysystems,项目名称:aumfor,代码行数:19,代码来源:windows.py

示例2: load_as

# 需要导入模块: from volatility import addrspace [as 别名]
# 或者: from volatility.addrspace import ASAssertionError [as 别名]
def load_as(config, astype = 'virtual', **kwargs):
    """Loads an address space by stacking valid ASes on top of each other (priority order first)"""

    base_as = None
    error = exceptions.AddrSpaceError()

    # Start off requiring another round    
    found = True
    ## A full iteration through all the classes without anyone
    ## selecting us means we are done:
    while found:
        debug.debug("Voting round")
        found = False
        for cls in sorted(registry.get_plugin_classes(addrspace.BaseAddressSpace).values(),
                          key = lambda x: x.order if hasattr(x, 'order') else 10):
            debug.debug("Trying {0} ".format(cls))
            try:
                base_as = cls(base_as, config, astype = astype, **kwargs)
                debug.debug("Succeeded instantiating {0}".format(base_as))
                found = True
                break
            except addrspace.ASAssertionError, e:
                debug.debug("Failed instantiating {0}: {1}".format(cls.__name__, e), 2)
                error.append_reason(cls.__name__, e)
                continue
            except Exception, e:
                debug.debug("Failed instantiating (exception): {0}".format(e))
                error.append_reason(cls.__name__ + " - EXCEPTION", e)
                continue 
开发者ID:virtualrealitysystems,项目名称:aumfor,代码行数:31,代码来源:utils.py


注:本文中的volatility.addrspace.ASAssertionError方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。