GithubHelp home page GithubHelp logo

xuccc / ctfdonlinechallenge Goto Github PK

View Code? Open in Web Editor NEW
31.0 1.0 4.0 122 KB

Plugin that uses to generate dynamic flag with oneline envirenment for CTFd

Python 32.67% HTML 56.63% JavaScript 10.70%
ctfd ctfd-plugin ctfd-database python docker ctf-platform ctf-challenges

ctfdonlinechallenge's Introduction

Online Challenges Plugin for CTFd

It's a plugin that uses to generate dynamic flag for Web or Pwn online envirenment Chanls with dockerfile

Usage

  1. New a Online Challenges with a random token.
  2. Copy the token into send.py and change the platfrom url.
  3. Config the interval(default is 5 seconds) in send.py.
  4. Copy the send.py into your Online envirenment and run it.

Install

Requires: CTFd >= 1.1.2

Don't test on earlier version

  • Clone this repository to CTFd/plugins

Notes: make sure this folder is named OnlineChallenge so that CTFd can load the assets.

TODO

  • Server
    • Optimize Web UI
    • Cheat warnings when find someone copy others' flag
    • Create and Update the token easier
    • More detailed log
    • Secure authentication with token
    • Cheat Monitor
  • Client
    • Regenerate the flag when it accessed
    • More detailed log
  • Useage demo

Screenshot

Challenges

Admin Monitor

Reference

ctfdonlinechallenge's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ctfdonlinechallenge's Issues

update chlas errer

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/seunion/platform/CTFd/CTFd/utils.py", line 284, in decorated_function
    return f(*args, **kwargs)
  File "/home/seunion/platform/CTFd/CTFd/admin/challenges.py", line 288, in admin_update_chal
    chal_class.update(challenge, request)
  File "/home/seunion/platform/CTFd/CTFd/plugins/CTFdOnlineChallenge/__init__.py", line 161, in update
    key.data = token

upload file failed

[2018-03-28 04:22:43,142] ERROR in app: Exception on /admin/chal/new [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/seunion/platform/CTFd/CTFd/utils.py", line 284, in decorated_function
    return f(*args, **kwargs)
  File "/home/seunion/platform/CTFd/CTFd/admin/challenges.py", line 268, in admin_create_chal
    chal_class.create(request)
  File "/home/seunion/platform/CTFd/CTFd/plugins/CTFdOnlineChallenge/__init__.py", line 109, in create
    utils.upload_file(file=f, chalid=chal.id)
NameError: global name 'utils' is not defined

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.