GithubHelp home page GithubHelp logo

wtfd-tech / wtfd Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 7.0 4.57 MB

CTF-Engine, written in go (WIP)

Home Page: http://wtfd.tech

License: GNU Affero General Public License v3.0

Go 48.15% HTML 10.17% CSS 9.88% JavaScript 7.46% TypeScript 22.78% Makefile 1.55%
golang ctf ctf-framework ctf-platform hacktoberfest

wtfd's Introduction

WTFd

License Latest stable version
Build Status Codecov Dependencies Repository Size
Last Commit Contributors Open Issues Open PRs Rawsec's CyberSecurity Inventory

a CTFd-like Server in go

demo

Configuration

At start, a config.yaml is generated. You should edit it with the settings you need

The Challenge info Dir shall look like that:

├── chall-1
│   ├── meta.yaml
│   ├── README.md
│   └── SOLUTION.md
├── chall-2
│   ├── meta.yaml
│   ├── README.md
│   └── SOLUTION.md

For each Challenge you need a meta.yaml, a README.md and a SOLUTION.md

The meta.yaml shall look like that:

points: <How many points the challenge should have>
uri: "<Protocol and user of your ssh Challenges (e.g. `ssh://chall-1@%s`>"
deps: [<Dependencies the Challenge has>]
flag: "<The flag>"
author: "<The author of the challenge>"
title: "(optional) the title of the challenge, else the directory name is used"

The README.md and SOLUTION.md are markdown files (syntax). The SOLUTION.md contents can only be seen by users who already solved the challenge

Building WTFd yourself

You need to have go, sqlite3 and yarn installed

git clone https://github.com/wtfd-tech/wtfd
cd wtfd
make

Running WTFd

Now you can finally start wtfd by downloading it from the releases, giving it permissions chmod +x wtfd and running it ./wtfd

WTFd is HTTP only, if you need HTTPS use a reverse proxy like Traefik or nginx

Development notes

To make working with the TypeScript easier, you can do

make js-run

to automatically compile the JS on changes

wtfd's People

Contributors

dermolly avatar jroeger23 avatar lxndio avatar noraj avatar nzbr avatar r3drock avatar thexyno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wtfd's Issues

Footer-Template unwanted a-Tag

When the footer-Template is rendered, there is an a-Tag around the first cell, that should not be there and disrupts the layout.

<a>
    <div class="flexcell flex-left">
        MISSING
    </div>
</a>

Password Change Dialog

Es sollte, wenn man auf die E-Mail adresse klickt ein Dialogfeld geöffnet werden, in dem man ein neues Password vergeben kann

Inventory notification

Your tool/software has been inventoried on Rawsec's CyberSecurity Inventory:

What is Rawsec's CyberSecurity Inventory?

An inventory of tools and resources about CyberSecurity. This inventory aims to help people to find everything related to CyberSecurity.

More details about features here.

Note: the inventory is a FLOSS (Free, Libre and Open-Source Software) project.

Why should you care about being inventoried?

Mainly because this is giving visibility to your tool and improve its referencing.

Badges

The badge shows to your community that your are inventoried. It looks good but also shows you care about your project, that your tool is referenced.

Feel free to claim your badge here: http://inventory.rawsec.ml/features.html#badges, it looks like that Rawsec's CyberSecurity Inventory, but there are several styles available.

Want to thank us?

If you want to thank us, you can help make our open project better known by tweeting about it! For example: Twitter URL

So what?

That's all, this message is just to notify you if you care. Else you can close this issue.

Email Verification

Optionally requre users to verify their E-Mail Address by sending them a verification link

Notifications

It would be nice to be able to send notifications to users to announce information during an event. This system could also be used, to send a push notification if someone overtakes you on the leaderboard, so that the competition is a bit more exciting.

Admin Page

a page for admins to monitor users, change settings, ... would be 1nice

Features:

  • User Deletion/Modification
  • Challenge locking (so that nobody can solve it (if there is a bug))-
  • Fancy Graphs and tables

Rate Limiting

Irgendeine Art von DoS-Protection implementieren. Idealerweise mit eigenem SSH-Server, damit man sein OpenSSH nicht kaputt machen muss

SMTP: Allow different username

The SMTP implementation currently ties the login username to the sender address. There should be an option to set it independently

Gereral Fix Branch

Use e.g. branch general-fixes for minor changes to keep them apart from other branches, where they don't belong. Then merge this branch with regularity.

Icon

We need an Icon

Admin tool to show wrong flags

It would be nice to have an overview of the wrong solutions people come up with. If a wrong flag appears multiple times, it could be a sign, that a challenge is misleading and further information should be added.

make readme great

a better readme with images, config eamples and more would be great

Bug reporter

Ein Bug-Symbol im challenge-info dialog, mit dem man Fehler zur Challenge melden kann.

First blood

It would be nice to see who solved a challenge first.

Major Refactoring

Steps for refactoring:

  • Document API #33
  • Start server side project from scratch
    • Split the server into multiple packages
      • internal/api API
      • internal/http HTTP
      • internal/db Database Stuff
      • internal/smtp Email stuff
      • internal/config Config loading (optionally with multiple ways of defining configs)
      • internal/ws Websocket stuff for leaderboard and more
    • Implement the new API
  • Develop new functions against a REST-Testing framework e.g. go-http-test

RFC

CI

Now that we moved to github we need a new CI

Remove leaderbord entry for "user created"

We should not store dataponts for when users are created, because that leads to there being a huge blank space on the diagram from when the first users are created before the event to the actual data while it is running.

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.