API

For some tasks, it is necessary to interact with the game via the API which is described here.

Authentication

The JSON APIs need HTTP Basic Auth

Flag Format

FLG[0-9a-zA-Z]{29}

Flag Submision

The flag submission API will be available as an HTML form (for manual submission) and as a JSON endpoint (for automated submission, content type is "application/json").

JSON

POST: https://scoreboard.ctf.cinsects.de/ctf/submit_flag/

{'flags': ['flag1xxxxxxxxxx', 'flg2xxxxxxx']}

Response:

{
'ok': ['flag1xxxxxxxxxx', 'flg3xxxxxxxxx'],
'old': ['flg2xxxxxxx'],
 }

Possible flag response values: 'ok', 'old', 'invalid', 'own'. A flag submitted more than one time by one team is also 'invalid'

{'detail'; 'json encodingerror'}
{'error'; 'errordiscription'}

Get Other Teams Host List

GET: https://scoreboard.ctf.cinsects.de/ctf/targets/

{
    "service-1": {
        "team1": [
            "<IP>",
            "<Hint>"
        ]
    },
    "service-2": {}
}