Skip to content

Instantly share code, notes, and snippets.

@louieli
louieli / hook_elf.c
Last active August 29, 2015 14:22 — forked from astarasikov/hook_elf.c
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <dlfcn.h>
#include <errno.h>
#include <sys/mman.h>
#include <unistd.h>