GryphonCTF-Scoreboard
GryphonCTF-Scoreboard copied to clipboard
Scoreboard is not showing
Hi I followed the steps in the guide but the only part showing is the last submitted challenges not the scoreboard plus is there way to integrate the scoreboard with flask without the need of having 2 ports open
Hm, could you try visiting [your_ctfd_site]/top/20 (eg. https://2017.gryphonctf.com/top/20) to check whether there is any JSON response?
And yes, you can integrate the scoreboard into your own flask application without the need of opening another port. You can do this by copying out lines 14-103 from app.py: https://github.com/DISMGryphons/GryphonCTF-Scoreboard/blob/76d3442ce206922c776db5a9f3959398be4ea92f/app.py#L14-L103 into your flask app. And remember to add BASEURL = 'http://[your_ctfd_site] to the top of your program, along with the relevant imports (requests and time).
I am not sure where the integration should take place cuz the code here doesn't match app.py there If this is for CTFd I am pretty sure there is an easy way to do it or steps at least
I tried to put the code above on scoreboard.py didn't work and also in serve.py and I got the regular Scoreboard, not yous so I was wondering if u can provide me with a guide that can help me out