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 set.

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:

  • Various desktop motherboards:
    • B450, B550, and B650 models
    • X570, X670E, and X870E models
  • Lenovo ThinkPad P14s Gen 1 & 2 AMD
  • An assortment of EPYC-based servers

See Tested Platforms for the complete list. If you tested agesafetch on a new system and would like to add it, 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.1.tar.gz (26.5 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.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (437.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

agesafetch-2.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (437.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

agesafetch-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (438.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

agesafetch-2.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (438.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: agesafetch-2.0.1.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for agesafetch-2.0.1.tar.gz
Algorithm Hash digest
SHA256 02fefb4f0b9802a54c11a82f9921b76478c9616867fa1785d932e62fb35c77fd
MD5 dd1ab97d1929f6fc9ebf9a3f73653e1b
BLAKE2b-256 66bbd5bacf18eb4c7b42429b49c069226eeb17fe568958cbbe157a7ffea2653f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agesafetch-2.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b02d76bcbb2367f559c47d0b101bd62a5af54974aeb0449f7f9c3ba0611858ad
MD5 6862b3671fc154301f7cd12af5c1e5f3
BLAKE2b-256 ae134208fc97210da88484a26057f64f3e4911b8ae03616724c758ed83808ad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agesafetch-2.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d50edb6faf657d8856b762ba21254acd77c051375154f5dde5df999d26a4c1ea
MD5 e3ca33e80d55872b6f867ae09f829a69
BLAKE2b-256 7d1eb6efcbd97cd1ab0bdb285738ef82ee987073337c1ae0ebf23f860b093a25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agesafetch-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 565ec013ed1bfb591575efe443a12439cb22fd64da852108ec4a42f22440db33
MD5 5e943f37718400b660c1e355cbc1821f
BLAKE2b-256 39df9d5fbffd05d26f9ac1e226d596813621ac01bfbe1a0c6328a74876cf35a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agesafetch-2.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6cf14c711eb9f724fae927738e75b1ad12151cd8c536ea6d2e27d5bb0e6f68fd
MD5 e13795a1c96cad62764e7f05f8bcac50
BLAKE2b-256 6a41d3f2d61e37066c1afa49d620bfec0b003ff5ab228bf93a74b7a7dd825b23

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