Giter Site home page Giter Site logo

Improvements? about rootthebox HOT 17 CLOSED

moloch-- avatar moloch-- commented on August 27, 2024
Improvements?

from rootthebox.

Comments (17)

moloch-- avatar moloch-- commented on August 27, 2024

We clearly think alike;

  1. The newlines are automatically inserted into the box description for you already, so add as much content as you want :)
    https://github.com/moloch--/RootTheBox/blob/master/models/Box.py#L113

  2. It's currently hardcoded, each flag looses 10% (using integer math) of it's value when captured
    https://github.com/moloch--/RootTheBox/blob/master/handlers/MissionsHandler.py#L96

but I like the idea of making it configurable.

  1. Yes I should prbly add that haha (working on this now)

from rootthebox.

SYNchroACK avatar SYNchroACK commented on August 27, 2024

4) I dont know if you didnt added this options in admin configuration zone but I think it would be great to have them:

public_teams
max_team_size
restrict_registration
use_black_market
use_bots
whitelist_box_ips

from rootthebox.

moloch-- avatar moloch-- commented on August 27, 2024

I went ahead and changed the box descriptions to use <textarea /> instead of <input type="text" /> to make it easier to put in a lot of text; the other updates will take a little more time, hehe.

from rootthebox.

SYNchroACK avatar SYNchroACK commented on August 27, 2024

1) But if I want to put the following text:

............................................
This server was compromised, use this information:
Malware: citadel
Timestamp: 12-12-2012 09:09 UTC
Report from: ISP
............................................

How can I put this text in there with new lines like you are seeing...

2) Yes yes, but what I tried to say is if Team X submit a flag and is wrong, when that team will try again and the flag now is correct, the team will not receive all the points from the flag because they tried 2 times...
Did you get my point? :S

3) Coool! In 2 hours, a lot of excellent improvements in this system...amazing!

from rootthebox.

SYNchroACK avatar SYNchroACK commented on August 27, 2024

"I went ahead and changed the box descriptions to use <textarea /> instead of to"

Great!!! I will check it ;)

Sorry if im not helping you coding...but Im not familiar with all the code...may be tommorrow. ;)

from rootthebox.

moloch-- avatar moloch-- commented on August 27, 2024

Yes excellent point on (2 we actually had an issue with this the last time we did a CTF. It's a little trickery code-wise because you have to maintain Flag states for each team, but shouldn't be too hard to implement.

from rootthebox.

SYNchroACK avatar SYNchroACK commented on August 27, 2024

yes...i saw in 'handlers/MissionsHandler.py' def attempt_capture...... you will probably need to change some core functionalities because of this...yeah :( But im sure that it will be a great functionality

from rootthebox.

moloch-- avatar moloch-- commented on August 27, 2024

For now with the formatting the descriptions you have to insert spaces " " to get the line breaks where you want them (each line is 70 chars), I can add an option later along the lines of "Autoformat" yes/no.

from rootthebox.

SYNchroACK avatar SYNchroACK commented on August 27, 2024

"For now with the formatting the descriptions you have to insert spac....." but, why you have the line:
https://github.com/moloch--/RootTheBox/blob/master/models/Box.py#L123

Of course, that options also is great but I would like to understand the reason. (learning purpose :D)

btw, I change in my installation just for testing:

  text = self._description

And it works fine....

from rootthebox.

moloch-- avatar moloch-- commented on August 27, 2024

I've added much of this to version 0.4 (see "devel" branch), hoping to have it ready sometime this weekend but it's not quite stable yet.

from rootthebox.

SYNchroACK avatar SYNchroACK commented on August 27, 2024

I would be glad!!! :)
I'm preparing a CTF in 5-7 February and of course :D I will use this amazing tool... so... I would like to use that new version :) may be test the version in this weekend (or begining of the next week) to be sure about all features ;)

from rootthebox.

moloch-- avatar moloch-- commented on August 27, 2024

Almost everything is in v0.4, still got a few loose ends to tie up
ece0a13

from rootthebox.

snake-poison avatar snake-poison commented on August 27, 2024

What is still left to implement to close out this issue?

from rootthebox.

SYNchroACK avatar SYNchroACK commented on August 27, 2024

Hello :)

Nothing, I think Its ok. :)

from rootthebox.

moloch-- avatar moloch-- commented on August 27, 2024

I've been meaning to implement a custom "step," so when a flag is captured its value goes down by n% almost everything else is in there

from rootthebox.

snake-poison avatar snake-poison commented on August 27, 2024

What do we have left? :)

Ps. I know you'd like to support, Python 3.x code based on issue #35 but I'd like to continue working on making the project more stable and refactoring code before that.

from rootthebox.

moloch-- avatar moloch-- commented on August 27, 2024

Yea, the Py3 support was basically just experimental to only real issue with supporting Py3 is that pylibmc doesn't (and I don't plan to write my own memached client, heh). So Py3 is more of a long-term goal, and I wouldn't consider it to be a high priority at the moment.

from rootthebox.

Related Issues (20)

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.