A proof-of-work wrapper for CTF challenges hosted with docker-compose, inspired by it's singleton-container version: pow-wrapper.
- For player
python3 client.py
- For host
Replace your docker-compose.yml's port mapping with {{port}}
and rename it into docker-compose.tpl (see ./example)
Note: Due to limitations of third-party libraries, refrain from using relative paths such as "../example" to represent parent directories as --compose-dir.
Usage: ctf-pow-for-docker-compose.exe [OPTIONS] --compose-dir <COMPOSE_DIR>
Options:
--compose-dir <COMPOSE_DIR>
The directory containing the docker-compose.tpl file (Due to limitations of third-party libraries, refrain from using relative paths such as "../example" to represent parent directories as --compose-dir.)
--port <PORT>
The port to listen on [default: 1337]
--difficulty <DIFFICULTY>
The difficulty of the proof of work [default: 6]
--pow-timeout <POW_TIMEOUT>
The timeout for the proof of work (seconds) [default: 30]
--service-timeout <SERVICE_TIMEOUT>
The timeout for the service (seconds) [default: 120]
-h, --help
Print help