Skip to content

Instantly share code, notes, and snippets.

Avatar

Avinash Sonawane rootkea

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am rootkea on github.
  • I am rootkea (https://keybase.io/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
rootkea / spectre.c
Created Jan 4, 2018
PoC from Spectre Attacks: Exploiting Speculative Execution (https://spectreattack.com/spectre.pdf)
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)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif