#PicoCTF2014 Backend
cd PicoCTF2014/
sudo npm install
node app.js
(note that xxx.xxx.xxx.xxx refers to host ip.)
- Get team info : http://xxx.xxx.xxx.xxx:3000/team?tid=?
- Get problem info : http://xxx.xxx.xxx.xxx:3000/problem?pid=?
- Get achievement info : http://xxx.xxx.xxx.xxx:3000/achievement?aid=?
using POST instead of GET, see client.js for instance.
- Problem solved : http://xxx.xxx.xxx.xxx:3000/problemsolved
- Achievement unlocked : http://xxx.xxx.xxx.xxx:3000/achievementunlocked
- Problem displayed : http://xxx.xxx.xxx.xxx:3000/problemdisplayed
- Achievement displayed : http://xxx.xxx.xxx.xxx:3000/achievementdisplayed
- Add team : http://xxx.xxx.xxx.xxx:3000/newteam
- Remove team : http://xxx.xxx.xxx.xxx:3000/removeteam?tid=?
- Team list : http://xxx.xxx.xxx.xxx:3000/teamlist
- Clear team records : http://xxx.xxx.xxx.xxx:3000/clearrecords?tid=?
- Add problem : http://xxx.xxx.xxx.xxx:3000/newproblem
- Remove problem : http://xxx.xxx.xxx.xxx:3000/removeproblem?pid=?
- Problem list : http://xxx.xxx.xxx.xxx:3000/problemlist
- Add achievement : http://xxx.xxx.xxx.xxx:3000/newachievement
- Remove achievement : http://xxx.xxx.xxx.xxx:3000/removeachievement?aid=?
- Achievement list : http://xxx.xxx.xxx.xxx:3000/achievementlist
(note that it's NOT a auto-incrementing field for problem id/team id/achievement id, The reason is that I think you might not want the ids to be sequential and somehow use it as a unique username. So you might have to specify the id and dublicate ids are not allowed.)