rendered paste body def fix_overlays(self, overlay, version, dtb):
overlay.update({'VOLATILITY_MAGIC' : [0x00, { '__KERNEL_VERSION' : [ 0x00, ['VolatilityMagic', dict(value = version)]]}]})
overlay.update({'VOLATILITY_MAGIC' : [0x00, { 'DTB' : [ 0x00, ['VolatilityMagic', dict(value = dtb)]]}]})
def __init__(self, *args):
commands.command.__init__(self, *args)
self.addr_space = utils.load_as()
self.profile = self.addr_space.profile
self.fix_overlays(self.profile.overlay, self.profile.kernel_version, self.profile.dtb)