Skip to content

Instantly share code, notes, and snippets.


Avinash Sonawane rootkea

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rootkea on github.
  • I am rootkea ( on keybase.
  • I have a public key whose fingerprint is 415B 70C9 BAC5 69C6 38E8 5B65 6BDD BCCD 6D8C 0F44

To claim this, I am signing this object:

rootkea / spectre.c
Created Jan 4, 2018
PoC from Spectre Attacks: Exploiting Speculative Execution (
View spectre.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#include <x86intrin.h> /* for rdtscp and clflush */