Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scoreboard is not showing #2

Open
g33kroid opened this issue Nov 27, 2017 · 3 comments
Open

Scoreboard is not showing #2

g33kroid opened this issue Nov 27, 2017 · 3 comments

Comments

@g33kroid
Copy link

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

@Optixal
Copy link
Contributor

Optixal commented Nov 27, 2017

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

@g33kroid
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants