This is the source code of LC3CTF website. And it can be easily modified to a universal CTF platform.
LC3CTF is originally the lab 4 of ICS 2018 (a CS course in USTC). And it is based on LC-3 CPU.
- Modify files in the example directory and then move them outside
mv examples/* ./
. - Run
python3 dbinit.py
to generatectf.db
. - Then use
python3 server.py
to start a temporary server, or use uwsgi with nginx/apache.