The RingZer0 CTF is exposing the following APIs
URL - Arguments | Description - Returns |
---|---|
https://ringzer0ctf.com/api/categories |
Return all categories (id, title, numberOfChallenges) Return example: { "success":1, "data":{ "users":[], "categories":[ { "category":{ "id":"1", "title":"Category 1", "numberOfChallenges":"32" } }, "..." ] } } |
https://ringzer0ctf.com/api/category/info/(categoryId) Argument: categoryId |
Return the category's information Return example: { "success":1, "data":{ "users":[], "categories":[ { "category":{ "id":"1", "title":"Category 1", "numberOfChallenges":"32" } } ] } } |
https://ringzer0ctf.com/api/category/challenges/(categoryId) Argument: categoryId |
Return the challenge's information with all challenges from that category Return example: { "success":1, "data":{ "users":[], "categories":[ { "category":{ "id":"1", "title":"Category 1", "numberOfChallenges":"32", "challenges":[ { "challenge":{ "id":"1", "title":"Challenge 1", "points":"1", "author":"Author Name", "publishDate":"2014-02-10 15:52:02" } }, "..." ] } } ] } } |
https://ringzer0ctf.com/api/challenge/info/(challengeId) Argument: challengeId |
Return the challenge's information Return example: { "success":1, "data":{ "users":[], "categories":[ { "category":{ "id":"1", "title":"Category 1", "challenges":[ { "challenge":{ "id":"1", "title":"Challenge 1", "points":"1", "author":"Author Name", "publishDate":"2014-02-10 15:52:02", "numberOfWriteUps":"334", "numberOfSolves":"7862", "lastSubmitDate":"2020-06-14 15:06:31", "lastSubmitUserName":"username" } } ] } } ] } } |
https://ringzer0ctf.com/api/challenge/users/(challengeId)/(limit) Argument 1: challengeId Argument 2: limit - Number of last who solved a challange's returned. |
Return who solved a challenge's Return example: { "success":1, "data":{ "users":[ { "user":{ "id":"1", "username":"Username", "isRCEH":false "country":"Canada" } }, "..." ], "categories":[ { "category":{ "id":"1", "title":"Category 1", "challenges":[ { "challenge":{ "id":"1", "title":"Challenge 1", "Solvers":[ { "Solver":{ "userId":"1", "validation_time":"2019-03-01 06:12:28", } }, "..." ] } } ] } } ] } } |
https://ringzer0ctf.com/api/challenge/writeups/(challengeId)/(limit) Argument 1: challengeId Argument 2: limit - Number of write ups returned. |
Return the challenge's write ups Return example: { "success":1, "data":{ "users":[ { "user":{ "id":"1", "username":"Username", "isRCEH":false, "country":"Canada" } }, "..." ], "categories":[ { "category":{ "id":"1", "title":"Category 1", "challenges":[ { "challenge":{ "id":"1", "title":"Challenge 1", "writeUps":[ { "writeUp":{ "id":"1", "userId":"1", "receivedTime":"2019-03-01 06:12:28", "isSpecialMention":true } }, "..." ] } } ] } } ] } } |
https://ringzer0ctf.com/api/user/info/(userId|username) Argument: userId or username |
Return the user's information. Return example: { "success":1, "data":{ "users":[ { "user":{ "id":"1", "username":"username", "points":"1000", "maxpoints":"1499", "rank":"1", "totalPlayers":"35678", "coins":"900", "isRCEH":true, "specialmentions":"10", "memberSince":"2014-02-09 13:33:05", "country":"Canada", "lastFlag":"2014-03-17 10:39:42" } } ], "categories":[ { "category":{ "id":"1", "title":"SQL Injection", "numberOfSolved":"32", "numberOfChallenges":"32" } }, "..." ] } } |
https://ringzer0ctf.com/api/user/category/(userId|username)/(categoryId) Argument 1: userId or username Argument 2: categoryId |
Return the specified category with all challenges from that category. Return example: { "success":1, "data":{ "users":[ { "user":{ "id":"1", "username":"username", "isRCEH":true, "country":"Canada" } } ], "categories":[ { "category":{ "id":"1", "title":"Category 1", "challenges":[ { "challenge":{ "id":"1", "title":"Challenge 1", "points":"1", "solved":true, "validationTime":"2020-01-01 00:00:00" } }, "..." ] } } ] } } |
https://ringzer0ctf.com/api/user/challenge/(userId|username)/(challengeId) Argument 1: userId or username Argument 2: challengeId |
Return the specified challenge with a parameter "solved". Return example: { "success":1, "data":{ "users":[ { "user":{ "id":"1", "username":"username", "isRCEH":true, "country":"Canada" } } ], "categories":[ { "category":{ "id":"1", "title":"Category 1", "challenges":[ { "challenge":{ "id":"1", "title":"Challenge 1", "points":"1", "solved":true, "validationTime":"2020-01-01 00:00:00" } } ] } } ] } } |
https://ringzer0ctf.com/api/user/writeups/(userId|username) Argument: userId or username |
Return write-up's made by a user. Return example: { "success":1, "data":{ "users":[ { "user":{ "id":"1", "username":"username", "isRCEH":true, "country":"Canada" } } ], "categories":[ { "category":{ "id":"1", "title":"Category 1", "challenges":[ { "challenge":{ "id":"1", "title":"Challenge 1", "writeUp":[ { "docId":"1", "solvedTime":"2018-01-01 00:00:00", "receivedTime":"2018-01-01 01:00:00", "approved":true, "isSpecialMention":false }, ] } }, "..." ] } }, "..." ] } } |
https://ringzer0ctf.com/api/user/specialmentions/(userId|username) Argument: userId or username |
Return the user's special mentions write ups. Return example: { "success":1, "data":{ "users":[ { "user":{ "id":"1", "username":"username", "isRCEH":true, "country":"Canada" } } ], "categories":[ { "category":{ "id":"1", "title":"Category 1", "challenges":[ { "challenge":{ "id":"1", "title":"Challenge 1", "writeUps":[ { "writeUp":{ "id":"1", "userId":"1", "receivedTime":"2018-03-23 12:06:41", "isSpecialMention":true } }, "..." ] } }, "..." ] } }, "..." ] } } |