# show file modifications # # Use the get_modification API to show all places where bytes were modified in the file for offset in range(bv.start, len(bv) + bv.start): mod = bv.get_modification(offset,1)[0] if mod != ModificationStatus.Original: b = "0x" + bv.read(offset, 1).hex() if mod == ModificationStatus.Inserted: print(f"Looks like {b} was inserted at {hex(offset)}") else: print(f"Looks like {b} was written at {hex(offset)}")