Skip to content

Instantly share code, notes, and snippets.

@nubzzz
nubzzz / spectre.c
Created January 4, 2018 22:37 — forked from rootkea/spectre.c
PoC from Spectre Attacks: Exploiting Speculative Execution (https://spectreattack.com/spectre.pdf)
#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
#!/usr/bin/env sh
# This bootstraps Puppet on Debian
set -e
# Remove the cdrom crap from /etc/apt/sources.list
echo "Removing cdrom sources"
echo "deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main

Keybase proof

I hereby claim:

  • I am nubzzz on github.
  • I am nubzzz (https://keybase.io/nubzzz) on keybase.
  • I have a public key whose fingerprint is 817B A9E4 C37A 31DD BB01 1444 97B0 EB0F 1AF7 FD37

To claim this, I am signing this object: