Giter Site home page Giter Site logo

hsasctf / lxctf Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 40.07 MB

Attack/Defense CTF Framework forked from iCTF-Framework for use at HS AlbSig (Albstadt-Sigmaringen University of Applied Sciences)

License: GNU General Public License v2.0

Python 81.84% Mako 0.24% JavaScript 2.37% HTML 14.50% Shell 1.06%
attack-defense-ctf capture-the-flag ctf ctf-framework ctf-platform

lxctf's People

Contributors

c-goes avatar domiroh avatar leotlr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

gitter-badger

lxctf's Issues

Make Visual Studio Code Project

  • Figure out if the project structure can be configured with vscode
  • Containerize all gameserver components so testing is possible without Vagrant/VMs, using devcontainer.json if possible

Currently the project is configured using PyCharm Professional.

Firewall role improvements

  • service_ports -> read from json/yaml files?
  • test bash scripts in scripts/
  • are all services using TCP, not UDP?

wireguard

We plan to switch from openvpn to wireguard for performance reasons

Team creation and service implementation

Hi I have two questions.

First is the demo01.py file. If I understand the process correct we need to run a changed demo file to run our dashboard. Or is there another file which allows us to run the dashboard. Because if we need to run the changed demo file we need to change the amount of the teams or the passwords manually. It would be better to load them from the DB.
Or did I understand something wrong or didn't find the correct file.

Secondly is the implementation of the services. We were wondering if we are correct that this happens in the reset1.py file. Or is this somewhere else.

Thank you for your support.

change sha2 to sha256

Following configs should be changed:

roles/vpn/templates/openssl/server.cnf.j2:5: default_md = sha2
roles/vpn/templates/openssl/client1.cnf.j2:5: default_md = sha2

to

default_md = sha256

This solved an error while running the ansible provision.

port scorebot to python 3

We plan to port Scorebot to python 3 for easier dependency management and to make it possible to also write the get/setflag scripts in py3

Resolve CVE issues

  • remove unused imports
  • remove unused packages in requirements.txt
  • upgrade packages with security bugs

Release 0.1.2-alpha

@c-goes our ctf is planned for january and we would like to have the ctf up and running for testing and usage. Is it possible to get a release until sunday evening 15.12.2019 23:59?
We will add pull requests for all features we woud like in the release until tomorrow evening.

Webserver not starting

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      2986/mysqld     
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      9258/redis-server 1
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      383/sshd        
tcp6       0      0 :::22                   :::*                    LISTEN      383/sshd```
@c-goes on startup of the web container no webservice is executed.
Should the webserver be installed manually or is there an ansible role, but it is just not executed?

Ansible didn't return a error on startup.

register app

  • configuration keys for all email addresses
  • download configs while game is running

Firewall role

  • disable LXD auto rule generation
  • add role to infrastructure.yml playbook
  • .gitignore for rules file
  • NAT rules?
  • service_ports -> read from json/yaml files?
  • are all services using TCP, not UDP?
  • test bash scripts in scripts/
  • remove delegate_to
  • PR

Upload other services

For now we just made the logserver service public. In the next days we'll try to upload the other services as well.

Registration/Webserver

We wanted to know if there is a similar python file like demo.py which is for app_registration? Or do we need to start it manually? And if so can you give us some pointer?

Do we need to start it manually with waitress or ???

Another point that you still can access the Website https://ctf.uber.space. We are wondering where is the location, is this the old server from the previous ctf.

use travis ci

  • installation
  • run a short demo with logs of failing flags scripts

automatic login

we already hat automatic login to dashboard in use for 2019 ctf (based on ip address).
but it's not yet in git.
solves bug where team cannot login when team name has special characters.

new services

We plan to add 3-6 new small services for next ctf (dec 2019/jan 2020)

Registration

Hi I started the register_tornado.py and than I get this Error.

"Database error, there is no empty event in database (event without ticks)"

I tried to reset the Database with the manage_reset_db.py and there I get the Error.

"Can't connect to MySQL server on 127.0.0.1" but the connection is there

Where is our problem?

Subnet ID from Team in dashboard

  • Instead of Team number (database) show the Subnet Number (network) in dashboard.
  • Port instead of service id
  • active flag_id from other teams

Editable development environment

The development environment should be editable again to speed up development, but with the 2 VM vagrant setup instead of 3. Until now we only have a sync implemented via vagrant provision.
Looks like it works with libvirt. Need to test it with VirtualBox before pushing the changes.

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.