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.2.tar.gz (26.8 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.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (450.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

agesafetch-2.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (450.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

agesafetch-2.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (449.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

agesafetch-2.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (450.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for agesafetch-2.0.2.tar.gz
Algorithm Hash digest
SHA256 7e10596cb1de6603d1b9746fa63748c68d86702ac7602d6fc83a04b2b0b716b2
MD5 1ff97b89154b0fe1d6da1862f35533e7
BLAKE2b-256 e492557998685ef8ce4f2d491e76342605574393f8695b1b5331dfdbcaf1cf61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agesafetch-2.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1087d0a88f80f074354a571b6cab12542614811c17205924d42c3ab0d9d724f
MD5 d25f13abee6e6aae3a8c5852dfcb5bb4
BLAKE2b-256 5589e050b0912aeb284e400b8766b720e7fc779fb6fc06e20c0efff559683e14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agesafetch-2.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55f550091be9b884f97fb5364433bb0ab5d2de8012f2bdb7c86332c3616af032
MD5 194c906b9dce6a3d8ea7096c87c3a3ae
BLAKE2b-256 1ce213c90ce61681ab9858c30bf0ec4198333f1824ac09d2695c6cf4e536206e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agesafetch-2.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fcfe5d3b19ba85cb54883587cd34cfce9f92f743d075dfb1245ccc381ece5514
MD5 9a88bd5f649c2bb03e1e52146bd66162
BLAKE2b-256 1796f51a1fbe83ddb72e321bd2b8b1c75512c142130b4c118ff8c6dde9e93b85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agesafetch-2.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fe29dad3f73132598b541b88dd22c773b2a583bb2384a331d5c1fc78f51d1d1b
MD5 37f281faf648548e21bd9818a6454d46
BLAKE2b-256 2a76c16098b0ca2bd20d0aece59a7f81c548e73859053277de232ec06ae6a5e0

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