moloch-- / RootTheBox

A Game of Hackers (CTF Scoreboard & Game Manager)
http://root-the-box.com/
Apache License 2.0
932 stars 294 forks source link

Resetting a game from CLI or DB? #561

Closed PJNorrisS1 closed 1 year ago

PJNorrisS1 commented 1 year ago

Trying to automate the resetting of a game.

We have game admins who leave the RTB instance as is after a session. When others need to use it, they are concerned the box is in use. We are trying to automate a way of resetting the game instead of doing it via admin menu, reset and clear out data and players.

Have full access to db, scripts etc from a CLI on a RHEL host, and each RTB is running in it's own docker container. Welcome thoughts.

eljeffeg commented 1 year ago

I think we could add a reset option to the cli.

eljeffeg commented 1 year ago

Pushed up the change if you can test it. You'll probably need to do a --restart after to get the scoreboard to update as I didn't see a good way to update the app's in-memory gamestate from the cli.

PJNorrisS1 commented 1 year ago

Works perfectly! Thank you!