#!/usr/bin/env python """ Inspects each loaded module, and reports whether the PEHeader contains the relevant information indicating it is compatible with Vista's ASLR implementation (DLLCharacteristics). Rhys Kidd (c) 2007 """ import immlib from immutils import * import struct DESC = """Inspect modules for Vista ASLR compatibility""" def main(args): imm=immlib.Debugger() allmodules=imm.getAllModules() table=imm.createTable('ASLR /dynamicbase Table',[ 'Base', 'Name', 'DLLCharacteristics', 'Enabled?' ]) for key in allmodules.keys(): state = "" mod=imm.getModule(key) mzbase=mod.getBaseAddress() peoffset=struct.unpack('