nbulischeck / dctf Goto Github PK
View Code? Open in Web Editor NEWDocker-based CTF Platform
Docker-based CTF Platform
for root, dirs, files in os.walk('.'):
dirs[:] = [d for d in dirs if d not in default]
break
for item in zip(chall_info, dirs):
The challenge info list will be in a random order causing occasional success.
Line 71 in 131832a
Global is not required unless you intend to modify default
The output of the docker command are not designed to be scriptable/machine readable. Using the -q option or docker inspect will be less likely to encounter weird errors.
How cool would it be to deploy new challenges without disrupting your current infrastructure!?
Currently I've only implemented config generation for FBCTF. CTFd can come later.
ConfigParser allows for a .get() method which allow you to specify a default if a value does not exist. This could be used to clean up lines 38 and following in ctf.py removing the forloop
Pros:
docker-compose.yml
Cons:
Currently only minimal output is provided and that's in the form of docker itself and the little output that ./scripts/gen.sh
provides.
If category is web, then type will be web.
If category is anything else, assume binary for the time being.
Line 51 in 131832a
This could be written as:
from pathlib import Path
defaults = set([“.git”, “skel”])
return (p for p in Path.cwd().glob(“**/config.ini) if not defaults & set(p.parts))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.