Code
Here you can find links to my GitLab and GitHub profiles as well as bits ‘o open source code I’ve written and released publicly over the years. Feel free to browse and use the following for reference!
Source Code Repositories
Professional
Personal
Hacker
Random Code
backup-fs.c
Backup utility that will push it's tar.gz through a keyauth'd SSH tunnel to a remote filesystem, avoiding having to store the backup locally. Will use the system fstab for backup targets or a user supplied fstab file.
inet_hton.c
Function to take a hostname (or IPv4 address), resolve it, and convert it into network byte order.
MemoryMap.bt
010 Editor binary template for "memory map" files (see my research on context-keyed payload encoding).
popenrw.c
An implementation of popen() that returns both a read and write file descriptor as well as the process PID (popen() only returns either a read or write descriptor).
printbin.c
Function to print a buffer as binary.
printhex.c
Function to print a buffer as hex with ascii representations.
randmac.c
Little utility that will generate a random MAC address and set the specified interface to that MAC address (defaults to eth0 if no interface is specified).
unencode.c
Function to unencode a buffer from application/x-www-form-urlencoded into text/plain.