platomav / BIOSUtilities

Collection of various BIOS/UEFI-related utilities which aid in research and/or modding purposes.
Other
818 stars 159 forks source link

AMI_PFAT_Extract not working with new METEORLAKE core ultra AMI BIOS Guard protected images #30

Closed Anton-35 closed 6 months ago

Anton-35 commented 11 months ago

ASUS released new Intel 14th gen Core Ultra ASUS Zenbook 14. https://www.asus.com/laptops/for-home/zenbook/asus-zenbook-14-oled-ux3405/techspec/

And AMI BIOS Guard Extractor v4.0_a12 not working with it's AMI BIOS Guard protected BIOS images. Showing many errors. Error log: https://mega.nz/file/sTR3nLDD#K0fqlV8GorWfuubM3heOii0RHSIhvMca-LW9_UAPDvk bios image: https://mega.nz/file/FapnAYKQ#HBuHEUFEHgq6f-XsYF7Tr7VKLCunhnk0CkePpOm1QS0

aditya11ttt commented 11 months ago

Original backup please

Anton-35 commented 11 months ago

Original backup please

I don't have a backup or a laptop. Meteor Lake laptops were released a few days ago.

Anton-35 commented 10 months ago

I managed to find the original full dump for this notebook. It wasn't easy. full dump v301: https://mega.nz/file/9GAinTjC#6Ot89QDTQbq8VoXFfYBGGUxCpbLnv5MzsorqEuLEWI0 asus bios update v301: https://mega.nz/file/sfR3BJzA#mOv6_PndVUKVq0Tk6jwABJiO0uxW3JPSQDeWL4XUdXg I hope it will help in developing a new version of the script.

platomav commented 10 months ago

The problem occurs because the PFAT images of Meterolake platform use a stronger/larger RSA signature (3072-bits vs 2048-bits) after each signed data block.

I have already added support for RSA 3K signed blocks in a (currently) internal/wip build of the AMI PFAT Extractor utility, but have not really back-ported that enhancement to the old/main branch here. I'm not sure if I'll do that soon, to be honest, but I am attaching here the output of that Meteorlake image you provided. The issue will remain open until the fix is properly pushed to the repo, of course.

UX3405MAAS.301_extracted_rar.zip

Anton-35 commented 10 months ago

Thanks, but i don't need extracted bios update image for this notebook if i already have a full dump. I needed a working version of AMI_PFAT_Extract script that would help unpack other bios update images. If you have a solution why not apply it? I don't quite understand this.

platomav commented 6 months ago

Fixed at #38 (6ae1587)