CTF exploit development and other tools of pwnage
Python C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
__init__.py
ctf-payload
data.py
pattern.py
process.py
runasm.c
setup.py
shellcode.json
shellcode.py
sock.py

README.md

Introduction

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.

Example

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

Installation

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