Skip to content

aYoung-CS/ctf-pow-for-docker-compose

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CTF-PoW-for-docker-compose

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)

Usage: ctf-pow-for-docker-compose [OPTIONS] --compose-dir <COMPOSE_DIR>

Options:
      --compose-dir <COMPOSE_DIR>          The directory containing the docker-compose.tpl file
      --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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 96.2%
  • Python 3.2%
  • Smarty 0.6%