GryphonCTF-Scoreboard icon indicating copy to clipboard operation
GryphonCTF-Scoreboard copied to clipboard

Scoreboard is not showing

Open g33kroid opened this issue 7 years ago • 3 comments

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

g33kroid avatar Nov 27 '17 06:11 g33kroid

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).

Optixal avatar Nov 27 '17 12:11 Optixal

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

g33kroid avatar Nov 30 '17 09:11 g33kroid

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

g33kroid avatar Nov 30 '17 10:11 g33kroid