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!

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.

Download Code

 

inet_hton.c

Function to take a hostname (or IPv4 address), resolve it, and convert it into network byte order.

Download Code

 

MemoryMap.bt

010 Editor binary template for "memory map" files (see my research on context-keyed payload encoding).

Download Code

 

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).

Download Code

 

printbin.c

Function to print a buffer as binary.

Download Code

 

printhex.c

Function to print a buffer as hex with ascii representations.

Download Code

 

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).

Download Code

 

unencode.c

Function to unencode a buffer from application/x-www-form-urlencoded into text/plain.

Download Code