Hi Guy, how to insert a uuid in aptio ami? I have a full bios 8192kb but update and backup its only 6200kb. how to unprotect? thanks
Not sure if its the same thing or not but in my work with HP BIOS, needing to find gzip streams in files, I use this python script. It was the find_gz in the name that caught my eye, sorry if I'm way off on this one Tito. Code: import zlib from glob import glob def zipstreams(filename): """Return all zip streams and their positions in file.""" with open(filename, 'rb') as fh: data = fh.read() i = 0 while i < len(data): try: zo = zlib.decompressobj() yield i, zo.decompress(data[i:]) i += len(data[i:]) - len(zo.unused_data) except zlib.error: i += 1 for filename in glob('*.ROM'): #change to meet your file extension print(filename) for i, data in zipstreams(filename): print (i, len(data)) Output looks like (Showing file size and len of data 'if any')