Skip to content

Instantly share code, notes, and snippets.

@xanderlent
Created December 30, 2022 19:17
Show Gist options
  • Save xanderlent/cc5e0e58f52147dd9889e1a7b048035e to your computer and use it in GitHub Desktop.
Save xanderlent/cc5e0e58f52147dd9889e1a7b048035e to your computer and use it in GitHub Desktop.
A bash script to show all CPU Hardware Security Vulnerabilities that Linux reports information on
#!/bin/bash
# This is a little script that I keep re-writing whenever I need it.
# I suppose that means it's time to write it down!
for vuln in /sys/devices/system/cpu/vulnerabilities/*; do echo "$(basename $vuln): $(cat $vuln)"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment