Nakiami / mellivora

Mellivora is a CTF engine written in PHP
GNU General Public License v3.0
441 stars 171 forks source link

User_type Enhancement #95

Open offsecginger opened 7 years ago

offsecginger commented 7 years ago

Nakiami,

First of all, I'm an avid user of Mellivora. I've kind of hacked my way into this enhancement and I'd love it to be properly added to the baseline.

What I've done is add to the categories table in mysql a "user_type" column in which I've added drop downs to the edit and new category forms that are linked to the user_type table in mysql. I've also added code to scores.php and challenges.php to only show categories based on what user type is logged in.

The reason I did this is to allow the CTF I'm building to have a "learners" section at the same time as a competition section, without the categories getting too cluttered. Like I said, I hacked my way around this, and I know that there's a way to get around what I've done regardless of the user_type logged in, but maybe a more professional look at this implementation would be more effective. Let me know your thoughts!