Quote:
Originally Posted by chants
Does anyone have any working code samples which detect the exploit on a given processor or any practically useful instances:
...
|
Here we go

:
Utilities to Check the Status on Windows and Linux :
SpecuCheck - a Windows utility for checking the state of the software mitigations against CVE-2017-5754 (Meltdown) and hardware mitigations against CVE-2017-5715 (Spectre):
Compiled Checker Here :
Code:
https://github.com/ionescu007/SpecuCheck/releases/download/1.0.4/SpecuCheck.exe
POWERSHELL SCRIPT METHOD (For Windows) :
Quote:
Microsoft has also produced a PowerShell script that checks whether your
PC is vulnerable.
Use the following steps to install and run the test.
1. Press the Windows key and type PowerShell.
2. Right click the PowerShell shortcut and select Run as Administrator.
3. Type Install-Module SpeculationControl and press Enter.
4. If you are prompted to install the NuGet provider, type Y and press Enter, and repeat
if you are warned about installing from an untrusted repository.
5. With the installation complete, type Import-Module SpeculationControl and press
Enter.
6. Type Get-SpeculationControlSettings and press Enter.
|
Spectre & Meltdown vulnerability/mitigation checker for Linux :
Code:
https://github.com/speed47/spectre-meltdown-checker
EXPLOIT PoCs :
Meltdown Exploit PoC :
Code:
https://github.com/paboldin/meltdown-exploit
PoC from Spectre Attacks- Exploiting Speculative Execution :
Code:
https://gist.github.com/rootkea/ba370a3c81122030510cfe92cdc5c4a2