Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@LevitatingLion
LevitatingLion / ridl.c
Created February 4, 2021 15:36
PoC for RIDL
#define _GNU_SOURCE
#include <sched.h>
#include <signal.h>
#include <stdalign.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@LevitatingLion
LevitatingLion / exploit.py
Created April 11, 2019 13:09
Exploit for hfs-vm challenge, Midnight Sun CTF 2019 Quals
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwn import *
"""
instruction encoding (low to hi):
low word:
5 bits: instr type
4 bits: 1st operand