Published on January 6th, 2018 | Post Views: 1,579 Hits0
Simple script to check if your Linux machine is vulnerable to #Meltdown
*** Only works on Linux for now ***
How does it work?
It works by using /proc/kallsyms to find system call table and checking whether the address of a system call found by exploiting MELTDOWN match the respective one in /proc/kallsyms.
What to do when you face this error “Unable to read /proc/kallsyms…”
That’s because your system may be preventing the program from reading kernel symbols in /proc/kallsyms due to /proc/sys/kernel/kptr_restrict set to 1. The following command will do the trick:
sudo sh -c “echo 0 > /proc/sys/kernel/kptr_restrict”
Please open an issue if you have an idea on how to fall back to another approach in this scenario.
git clone https://github.com/raphaelsc/Am-I-affected-by-Meltdown.git
Copyright (c) 2018 Raphael S. Carvalho <[email protected]>