Pwnshop is a templated challenge generation engine, built on jinja, to generate source code for challenges, compile it, verify it, and all that fun stuff. We use pwnshop to generate most of pwn.college's challenges!
This repository has the core of pwnshop, along with one example challenge.
pip install pwnshop
Let's generate some things!
# render example challenge source code in testing mode
pwnshop -I /path/to/example_module render ShellExample
# render example challenge source code in teaching mode
pwnshop -I /path/to/example_module render ShellExample --walkthrough
# test the example challenge binary and solution
pwnshop -I /path/to/example_module verify ShellExample --walkthrough
# build the example challenge binary
pwnshop -I /path/to/example_module build ShellExample --walkthrough -O example_shell
Check out example_module
for an example challenge.
- Write some templates.
- Write some Python.
pwnshop.register_challenge