Libctf is a CTF framework written by meta of the Neg9 CTF team. The framework is a collection of tools and python libraries to simplify exploit development and many of the other tasks frequently performed during a CTF.
from libctf import * shelldb = ShellcodeDB() print shelldb.list() shellcode = shelldb.get('linux x86 execve 1') sock = Sock('localhost',9090) sock.verbose = True payload = pack('A'*100, 0x11223344, shellcode) print hexdump(payload) sock.recv() sock.send(payload) sock.interact()
To install to your home directory (~/.local/lib/python2.7/site-packages/):
python setup.py install --user
To install for all users (/usr/local/lib/python2.7/dist-packages/):
sudo python setup.py install