def dump_memory_to_file()

in hexforge_modules/misc_modules.py [0:0]


    def dump_memory_to_file(self, start_addr, end_addr, filepath):
        size = end_addr - start_addr
        data = idaapi.get_bytes(start_addr, size)
        if data:
            with open(filepath, "wb") as f:
                f.write(data)
            print(f"Memory dumped to {filepath}")
        else:
            print("Failed to read memory")