from fwexploit_base import * def get_ivs(): for i in range(10): add(Message(mode=0, data=b"\0" * 32)) data = decrypt(10) cts = [d.data.ljust(32, b"\0") for d in data] return [xor(ct[:16], ct[16:32]) for ct in cts] ivs = get_ivs() log.info("ivs: %s", [iv.hex() for iv in ivs]) block_old = struct.pack("