9elements / converged-security-suite

Converged Security Suite for Intel & AMD platform security features
https://www.9esec.io
BSD 3-Clause "New" or "Revised" License
58 stars 15 forks source link

fix(display_fwinfo): Decompress DXE if required #341

Closed xaionaro closed 1 year ago

xaionaro commented 1 year ago

Nowadays DXE is usually compressed, fixing display_fwinfo to support this case.

Before

[xaionaro@void converged-security-suite]$ go run ./cmd/pcr0tool/ display_fwinfo ~/pcr0tool-cases/case0/firmware.fd
unable to parse the image info: 'unable to find SMBIOS static data in the firmware: no appropriate nodes found'[xaionaro@void converged-security-suite]$

After

[xaionaro@void converged-security-suite]$ go run ./cmd/pcr0tool/ display_fwinfo ~/pcr0tool-cases/case0/firmware.fd
{"Vendor":"American Megatrends International, LLC.","Version":"Y35CLD11","ReleaseDate":"12/12/2012","Revision":"5.29"}
[xaionaro@void converged-security-suite]$