GithubHelp home page GithubHelp logo

lukas-dresel / ctfd-oracle-challenges Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nbanmp/ctfd-oracle-challenges

0.0 1.0 1.0 27 KB

Oracle challenge type for CTFd

Python 55.46% HTML 34.72% JavaScript 9.82%

ctfd-oracle-challenges's Introduction

CTFd Oracle Challenges

When creating a challenge, an endpoint for an "oracle" is specified. This oracle handles challenge deployment and testing. It must respond to a post request to /create and /attempt.

Installation

Clone into CTFd plugins directory.

Oracle API

POST - /create

JSON will be provided with the integer team_id and boolean force_new.

The endpoint must ensure a challenge instance for the specified team exists, and return a string with details containing any information needed to interact with the deployed instance.

If force_new is true, the endpoint must create a new instance and may delete the old instance. If force_new is false, the endpoint should create a new instance only if no instance has been created, and should otherwise return the already existing instance.

POST - /attempt

JSON will be provided with the integer team_id.

The endpoint must validate whether or not the team's challenge instance has reached a solved state. If the instance has been solved, a 200 code should be returned, if the instance has not been solved, a non-200 code should be returned.

ctfd-oracle-challenges's People

Contributors

lukas-dresel avatar nbanmp avatar

Watchers

 avatar

Forkers

degrigis

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.