Skip to content

Instantly share code, notes, and snippets.

View setuid0x0's full-sized avatar

Jungwon Lim setuid0x0

View GitHub Profile
@setuid0x0
setuid0x0 / cpf_exploit.c
Last active July 3, 2019 18:19
WCTF 2018 cpf challenge exploit
#define _GNU_SOURCE
#include <sched.h>
#include <unistd.h>
#include <sys/mman.h>
#include <stdio.h>
#include <errno.h>
#include <sys/file.h>
#define __aligned_u64 __u64 __attribute__((aligned(8)))
#include <linux/bpf.h>

Keybase proof

I hereby claim:

  • I am setuid0x0 on github.
  • I am setuid0 (https://keybase.io/setuid0) on keybase.
  • I have a public key ASAS2eWaeW3ekSOffscflmALfmd5d2zwZshybbxplihwJAo

To claim this, I am signing this object: