Skip to content

Instantly share code, notes, and snippets.

@gsauthof
Created December 28, 2024 23:00
Show Gist options
  • Save gsauthof/030852d24c2825006636276ab3252346 to your computer and use it in GitHub Desktop.
Save gsauthof/030852d24c2825006636276ab3252346 to your computer and use it in GitHub Desktop.
Read Trusted Execution Technology (TXT) firmware component version from DMI table
python -c 'import sys; s=sys.argv[1]; s=s.strip()[5*3:-2*2]; print(".".join(str(int(x, 16)) for x in s.split()))' \
"$(dmidecode --handle 0x0030 | grep Strings -B1 | head -1 )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment