A lightweight utility that automatically renames ASUS BIOS .CAP (or from ZIP file) files based on their internal EFI header metadata.
This is an alternative to:
- the official ASUS BiosRenamer.exe, which works only on Windows, or would require Wine.
- an unofficial Rust implementation, which requires installing a Rust toolchain.
- an unofficial Typescript implementation, which requires installing a Typescript toolchain.
- an unofficial Python implementation, which only print the output name and does not support renaming nor ZIP files.
- an unofficial Bash implementation, a fun one-liner that trivially reads the last string with "CAP" in it, and is unsafe for multiple CAP files.
Downloaded BIOS files from ASUS need to be extracted and then the extracted CAP file renamed to a specific name, which is encoded in the file itself.
This script opens one given ZIP or CAP file, locates the $BOOTEFI$ header, extracts the intended filename, and renames the file automatically in its source directory. It does not overwrite any existing files.
There is a final "Press ENTER to exit" step, which is useful in drag and drop usage because the terminal window would close immediately on success or error.
- Python 3.9+
- Clone or download the script.
- Optionally unzip the downloaded BIOS ZIP file from the vendor's website.
- Run the script by passing the path to your
.ZIPor.CAPfile as an argument:
python3 asus_bios_renamer.py path/to/example/ROG-STRIX-B550-F-GAMING-WIFI-II-ASUS-3641.ZIPAlternatively, from its extracted CAP file:
python3 asus_bios_renamer.py path/to/example/ROG-STRIX-B550-F-GAMING-WIFI-II-ASUS-3641.CAPOn Linux with XDG, if you make the asus_bios_renamer.desktop file executable and also "Allow this file to run as a .desktop file" and "Set this file as trusted" in the properties after right-click in your file explorer, you can then drag and drop the original CAP file onto the .desktop file launcher, and it will run the script in a new Terminal window.
- Automatic Extraction: Accepts reading the ZIP file distributed by the vendor, or the extracted CAP file.
- Safety Checks:
- Validates that the input file has the
.CAPfile extension and the output name is safe. - Prevents loading files larger than 100MB.
- Checks if a file with the target name already exists before renaming to prevent overwriting.
- Validates that the input file has the
This project is dedicated to the public domain via the Unlicense. You are free to copy, modify, and distribute this software for any purpose.