This is various random sample code I've written in the past. It's probably not correct, elegant, or well written, but oh well. It's up here in case other people want it.
fc4.c - Fedora Core 4 exploit me - wrote ages ago
fd_recv_fuzzer.py - Code to receive a file descriptor from RatBox IRCD and execute a program to fuzz the client
Fischer-Price 2.6 kernel module - Sample kernel module code for 2.6, with Makefile etc already written.. for simple code only :)
igs.asm - Shellcode for an exploit I wrote once upon a time.
m_fdsend.c - RatBox IRCD to send a users file descriptor to another process.
modified-ircfuzz.c - Modified version of ilja's ircfuzz.c
slayerforums.py - Sample code to receive a file descriptor from RatBox IRCD and print out some socket information.
roulette.asm - Sample Russian roulette /dev/mem|/dev/kmem silliness, written in assembly. Shouts to ITL for inspiration :P
plt-resolve.c - Code to resolve PLT symbols in a process, under IA32 linux, maybe others :p
plt-resolve-netbsd.c - Code to resolve PLT symbols in a process, for NetBSD. Written by spoty with help from dmk.
running_line.c - This implements "running line" code under IA32 Linux. Running line is an old dos anti-debug/tunneling type trick where it traces every instruction that is executed.
analyse.c - Sample code to recursively disassemble a binary, and follow code flow (via a stack based mechanism). Generates a set of structures that could be used for obfuscating flow control via exceptions/signals.
linker.c - Sample code showing how to link elf object .o files in to a process, taking care of relocations etc.