Coder Social home page Coder Social logo

theoremoon / interkosenctf2020-challenges Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 1.0 8.95 MB

Home Page: https://theoremoon.github.io/InterKosenCTF2020-challenges/#/

Dockerfile 5.80% Python 38.78% Shell 1.10% HTML 13.64% PHP 3.58% GLSL 13.85% Makefile 0.86% C 12.67% Rust 1.36% Assembly 1.54% JavaScript 6.81%

interkosenctf2020-challenges's Introduction

InterKosenCTF2020

  • task.json が存在するディレクトリが問題のディレクトリとして扱われる
    • 問題のディレクトリは category/title/ にする
  • distfiles に配置したファイルはtar.gzに纏めて配布される
  • rawdistfiles に配置したファイルはそのまま配布される
  • デプロイが必要な場合には docker-compose.yml に全てを書く
    • docker-compose.ymlでは imagevolumes, container_name は使えない
  • solvability checkを行う問題は solution/docker-compose.yml を配置する
    • service名は必ずsolveにする
    • docker-compose run -e HOST=$HOST -e PORT=$PORT のように問題サーバの情報が渡される

複数インスタンスを立ち上げて良い時

Web問題でDBは一つにしたいがフロントは複数立ち上げられる、みたいな場合に docker-compose にreplica数を書いておいてくれると良い

services:
  hoge_service:
    ...
    deploy:
      mode: replicated
      replicas: 6
    ...

category/title/task.json

{
  "name": "challenge_name",
  "description": "<p>challenge description. it is html<br /> <pre>nc ${host} $port </pre> </p>",
  "flag": "KosenCTF{some_awesome_flag_wowow_takoyaki}",
  "author": "author name",
  "tags": ["crypto", "warmup"],
  "host": "pwn.kosenctf.com",
  "port": 8080,
  "is_survey": false
}
  • host / port は省略可
  • "descritpion"内でhost/portのような変数を使いたい場合は${host}$hostとする。
    • 詳しくは string.Template をみて
    • host/port以外の変数も使える

Dockerfile

動かすプログラムに応じて次のコンテナを優先して使う。(上にくるほど優先度高。他にあったら追記して。)

  • python:3.7-alpine
  • php:7.4.1-fpm-alpine
  • ubuntu:18.04

問題設定的にどうしても他のバージョンが必要な場合は他のコンテナを使っても良い。 (例:Flask問だがLD_PRELOADなどのハックが必要なのでubuntuコンテナを使う、など。)

interkosenctf2020-challenges's People

Contributors

theoremoon avatar

Stargazers

Buerck avatar tesso avatar prprhyt avatar  avatar elmore avatar おちゃむら avatar  avatar Hideaki Oguni avatar  avatar  avatar hiroka-wada avatar  avatar  avatar wassan128 avatar pr0xy avatar lokihardt avatar Arata avatar Takeshi Kaneko avatar st98 avatar  avatar licon avatar Shinjiro Sakaitani avatar TWY avatar Nishi avatar Lorse avatar nunu avatar Xornet avatar

Watchers

 avatar Yudai avatar

Forkers

ctfplayground

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.