Skip to main content

A tool for obtaining your firmware's embedded AGESA version on Linux.

Project description

agesafetch

crates.io Version crates.io Downloads License: MIT REUSE Status

A tool for obtaining your firmware's embedded AGESA version on Linux.

Installation

AUR Version PyPI Version

Binaries

Pre-compiled and signed binaries are provided with all GitLab releases.

From Source

cargo install agesafetch

Note

By default, Cargo installs binaries in ~/.cargo/bin, so that directory must be in $PATH for agesafetch to be found. However, not all methods of privilege escalation preserve the $PATH variable, e.g. sudo with a secure_path value.

When in doubt, refer to the complete path: sudo ~/.cargo/bin/agesafetch

From PyPI

sudo pipx install --global agesafetch
# or, to run it directly without a persistent installation:
sudo pipx run agesafetch

Python Bindings

On top of the agesafetch command, the Python package also provides basic bindings for the AGESA search that you can invoke from your own code (which then also requires elevated privileges or capabilities):

import agesafetch

version: agesafetch.AGESAVersion | None = agesafetch.find_agesa_version()

Usage

agesafetch [-h]
🔒 The AGESA search requires elevated privileges or suitable capabilities.

Simply run agesafetch to invoke a search for the AGESA version in memory:

$ sudo agesafetch
:: Searching Reserved region #1 (1667 KiB)...
-> Found AGESA version: CezannePI-FP6 1.0.1.1

When run non-interactively, such as in pipes or redirections, agesafetch will automatically suppress all output except for the found version:

$ sudo agesafetch > found_version
$ cat found_version
CezannePI-FP6 1.0.1.1

Testing

agesafetch has been confirmed to work on a broad set of systems, including:

  • ASUS X670E and X870E desktop boards
  • Gigabyte B450, B550, B650, and X570 boards
  • Multiple Lenovo ThinkPad P14s Gen 1 & 2 AMD
  • An assortment of EPYC-based server platforms

See Tested Platforms for the complete list. If you tested agesafetch on a new system and would like to add it, please get in touch!

Author

Thanks To

License

This project is licensed under the MIT license. See the LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agesafetch-2.0.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

agesafetch-2.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (436.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

agesafetch-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (436.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

agesafetch-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (437.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

agesafetch-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (437.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file agesafetch-2.0.0.tar.gz.

File metadata

  • Download URL: agesafetch-2.0.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for agesafetch-2.0.0.tar.gz
Algorithm Hash digest
SHA256 fab261ffa975cab6e9462fb9df4abf5ddc45e4ec4bc78146a1c96b74525c505f
MD5 a8c2cbd03c236901038be1bb5f8d534c
BLAKE2b-256 5cbea5f0a4472881983955595620bd0f6325a0dd9c3f6fc3b897791744d6dc82

See more details on using hashes here.

File details

Details for the file agesafetch-2.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for agesafetch-2.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cf222aa187e9bf29b36677fc7f1832df11245f40718186f8263aca6ed72f6d9b
MD5 fc950f7576c324870b7997c36fe1f3a0
BLAKE2b-256 5ab0f5d7951a6856879ded2acf9a9cce0f59a56b8507430236cf658e5e643147

See more details on using hashes here.

File details

Details for the file agesafetch-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for agesafetch-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 257e645b4cde59a70bf60b35eb7186f946a64d234b92919afa0e6b032d72cad2
MD5 f666cb47f436f6428adbec0107c9b884
BLAKE2b-256 13b2c45fec2946bdd395537ca1b423c4b1e7713c60f8542e52c0ad244548ddbb

See more details on using hashes here.

File details

Details for the file agesafetch-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for agesafetch-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 745cee6d734860f79021be42c5c7ea8d3cdff4344cc5363d012f96255584bdb1
MD5 1ff81a544f3d82cbd02e5b136873449b
BLAKE2b-256 7f3605871c921163033ecca51ee2d9c2606320d84aa1c38399a627e13aef70ce

See more details on using hashes here.

File details

Details for the file agesafetch-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for agesafetch-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3bc33cc9e0af69c99824d290dec167abd01ac7ec9e5e86bcc645d4a8a24590fb
MD5 26326fd8de83d375aad61934641cc278
BLAKE2b-256 c4322d92e07fca3354ca4080213ad23c22e100b264d1d1eaf9a299505fb7dcac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page