juice-shop / juicy-statistics

Scripts to collect statistics about OWASP Juice Shop
https://stats.owasp-juice.shop
MIT License
3 stars 8 forks source link

Challenge category & tag pie charts #20

Closed bkimminich closed 3 years ago

bkimminich commented 3 years ago

Currently I am running a CTFd instance with all Juice Shop challenges imported to make a screenshot every now and then of the current distribution of challenge categories. This image appears in the eBook as well as the intro presentation slides:

It would be nice to have such a pie chart on https://stats.owasp-juice.shop instead. The necessary data should be pulled from https://github.com/OWASP/www-project-juice-shop/blob/master/_data/challenges.yml - that copy of the challenges.yml from the Juice Shop main repo is updated automatically on every release.

Another chart showing challenges by their tags would also be nice to have. Important: Other than with categories challenges can have multiple tags!

bkimminich commented 3 years ago

Both the category and tag information from that https://github.com/OWASP/www-project-juice-shop/blob/master/_data/challenges.yml is already read and presented in tabular form here: https://owasp.org/www-project-juice-shop/#div-challenges - The pie-chart presentation with % instead of absolute numbers would be a nice extra general information plus a screenshot source for the ebook and intro slide deck.

the-pro commented 3 years ago

I got something like this. Is this the correct distiribution

tg

dis

bkimminich commented 3 years ago

Google has a wonky way of ordring the slices, but the Top 5 match in % value at least. Well done! 👍