Skip to content

Conversation

erdnaxe
Copy link
Member

@erdnaxe erdnaxe commented Jun 8, 2024

Rename older ECSC importer to ECSC 2021.
Add a new ECSC importer based on openECSC 2024.

@erdnaxe erdnaxe force-pushed the ecsc-importer branch 3 times, most recently from bfbacce to fb66f21 Compare June 8, 2024 13:12
@erdnaxe erdnaxe changed the title WIP: CINI (ECSC 2024) importer CINI (ECSC 2024) importer Jun 8, 2024
@JJ-8
Copy link
Collaborator

JJ-8 commented Jun 8, 2024

For archiving purposes, here is the JSON data for testing:

{
  "gamePause": {
    "paused": false
  },
  "events": [
    {
      "id": 1,
      "name": "openECSC 2024",
      "sections": [
        {
          "id": 1,
          "name": "Round 1",
          "challenges": [
            {
              "id": 6,
              "title": "Who will win the branded swag bags? :D",
              "tags": [
                "misc"
              ],
              "authors": [],
              "currentScore": 50,
              "currentGlobalSolves": 1458,
              "hidden": false
            },
            {
              "id": 1,
              "title": "Spiky Crypto",
              "tags": [
                "crypto"
              ],
              "authors": [
                "Devrar",
                "mr96"
              ],
              "currentScore": 154,
              "currentGlobalSolves": 45,
              "hidden": false
            },
            {
              "id": 7,
              "title": "Another Matrix KE",
              "tags": [
                "crypto"
              ],
              "authors": [
                "Devrar",
                "mr96"
              ],
              "currentScore": 241,
              "currentGlobalSolves": 25,
              "hidden": false
            },
            {
              "id": 12,
              "title": "Stealing Seeds",
              "tags": [
                "crypto"
              ],
              "authors": [
                "Devrar"
              ],
              "currentScore": 114,
              "currentGlobalSolves": 61,
              "hidden": false
            },
            {
              "id": 2,
              "title": "CableFish",
              "tags": [
                "misc"
              ],
              "authors": [
                "matpro"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 662,
              "hidden": false
            },
            {
              "id": 8,
              "title": "Flags distribution Inc.",
              "tags": [
                "misc"
              ],
              "authors": [
                "Alberto247"
              ],
              "currentScore": 241,
              "currentGlobalSolves": 25,
              "hidden": false
            },
            {
              "id": 13,
              "title": "ProtolessWaf",
              "tags": [
                "misc"
              ],
              "authors": [
                "giotino"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 160,
              "hidden": false
            },
            {
              "id": 3,
              "title": "No Headache",
              "tags": [
                "pwn"
              ],
              "authors": [
                "mebeim"
              ],
              "currentScore": 229,
              "currentGlobalSolves": 27,
              "hidden": false
            },
            {
              "id": 9,
              "title": "Line crosser",
              "tags": [
                "pwn"
              ],
              "authors": [
                "orsobruno96"
              ],
              "currentScore": 134,
              "currentGlobalSolves": 52,
              "hidden": false
            },
            {
              "id": 14,
              "title": "🪐RoverMaster🪐",
              "tags": [
                "pwn"
              ],
              "authors": [
                "Giulia",
                "Bonfee"
              ],
              "currentScore": 335,
              "currentGlobalSolves": 13,
              "hidden": false
            },
            {
              "id": 4,
              "title": "fsvm",
              "tags": [
                "rev"
              ],
              "authors": [
                "matpro"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 190,
              "hidden": false
            },
            {
              "id": 10,
              "title": "fsvm 2",
              "tags": [
                "rev"
              ],
              "authors": [
                "matpro"
              ],
              "currentScore": 99,
              "currentGlobalSolves": 70,
              "hidden": false
            },
            {
              "id": 15,
              "title": "back2basics",
              "tags": [
                "rev"
              ],
              "authors": [
                "mr96"
              ],
              "currentScore": 367,
              "currentGlobalSolves": 10,
              "hidden": false
            },
            {
              "id": 5,
              "title": "Perfect Shop",
              "tags": [
                "web"
              ],
              "authors": [
                "Xato"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 227,
              "hidden": false
            },
            {
              "id": 11,
              "title": "Fileshare",
              "tags": [
                "web"
              ],
              "authors": [
                "Xato"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 299,
              "hidden": false
            },
            {
              "id": 16,
              "title": "Life Quiz",
              "tags": [
                "web"
              ],
              "authors": [
                "Xato"
              ],
              "currentScore": 154,
              "currentGlobalSolves": 45,
              "hidden": false
            }
          ]
        },
        {
          "id": 2,
          "name": "Round 2",
          "challenges": [
            {
              "id": 22,
              "title": "Another round, another sanity check",
              "tags": [
                "misc"
              ],
              "authors": [],
              "currentScore": 50,
              "currentGlobalSolves": 876,
              "hidden": false
            },
            {
              "id": 17,
              "title": "Invention",
              "tags": [
                "crypto"
              ],
              "authors": [
                "Devrar"
              ],
              "currentScore": 223,
              "currentGlobalSolves": 28,
              "hidden": false
            },
            {
              "id": 24,
              "title": "MathMAC",
              "tags": [
                "crypto"
              ],
              "authors": [
                "Drago"
              ],
              "currentScore": 178,
              "currentGlobalSolves": 38,
              "hidden": false
            },
            {
              "id": 29,
              "title": "BabyFeistel",
              "tags": [
                "crypto"
              ],
              "authors": [
                "mr96"
              ],
              "currentScore": 392,
              "currentGlobalSolves": 8,
              "hidden": false
            },
            {
              "id": 18,
              "title": "Blind maze",
              "tags": [
                "misc"
              ],
              "authors": [
                "giotino"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 743,
              "hidden": false
            },
            {
              "id": 23,
              "title": "Revenge of the Blind maze",
              "tags": [
                "misc"
              ],
              "authors": [
                "giotino"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 383,
              "hidden": false
            },
            {
              "id": 25,
              "title": "Remote Diagnostics",
              "tags": [
                "misc",
                "windows"
              ],
              "authors": [
                "ly4k"
              ],
              "currentScore": 392,
              "currentGlobalSolves": 8,
              "hidden": false
            },
            {
              "id": 30,
              "title": "Random Noise",
              "tags": [
                "misc"
              ],
              "authors": [
                "drw0if"
              ],
              "currentScore": 142,
              "currentGlobalSolves": 49,
              "hidden": false
            },
            {
              "id": 19,
              "title": "The Wilderness",
              "tags": [
                "pwn"
              ],
              "authors": [
                "Giulia",
                "ly4k"
              ],
              "currentScore": 199,
              "currentGlobalSolves": 33,
              "hidden": false
            },
            {
              "id": 26,
              "title": "Yet another guessing game",
              "tags": [
                "pwn"
              ],
              "authors": [
                "Giulia"
              ],
              "currentScore": 64,
              "currentGlobalSolves": 101,
              "hidden": false
            },
            {
              "id": 31,
              "title": "Blind Writer",
              "tags": [
                "pwn"
              ],
              "authors": [
                "Lotus"
              ],
              "currentScore": 433,
              "currentGlobalSolves": 5,
              "hidden": false
            },
            {
              "id": 20,
              "title": "FPFC",
              "tags": [
                "rev"
              ],
              "authors": [
                "Alberto247"
              ],
              "currentScore": 182,
              "currentGlobalSolves": 37,
              "hidden": false
            },
            {
              "id": 27,
              "title": "arxelerated",
              "tags": [
                "rev"
              ],
              "authors": [
                "Rising"
              ],
              "currentScore": 267,
              "currentGlobalSolves": 21,
              "hidden": false
            },
            {
              "id": 32,
              "title": "Anti-rev",
              "tags": [
                "rev"
              ],
              "authors": [
                "lorenzcat"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 148,
              "hidden": false
            },
            {
              "id": 21,
              "title": "WOauth a laundry!",
              "tags": [
                "web"
              ],
              "authors": [
                "M1gnus",
                "Aquilairreale"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 255,
              "hidden": false
            },
            {
              "id": 28,
              "title": "GoSweeper",
              "tags": [
                "web"
              ],
              "authors": [
                "Xato"
              ],
              "currentScore": 345,
              "currentGlobalSolves": 12,
              "hidden": false
            },
            {
              "id": 33,
              "title": "BabyNotes",
              "tags": [
                "web"
              ],
              "authors": [
                "bonaff",
                "xatophi"
              ],
              "currentScore": 367,
              "currentGlobalSolves": 10,
              "hidden": false
            }
          ]
        },
        {
          "id": 3,
          "name": "Round 3",
          "challenges": [
            {
              "id": 39,
              "title": "We have no more creativity",
              "tags": [
                "misc"
              ],
              "authors": [],
              "currentScore": 50,
              "currentGlobalSolves": 740,
              "hidden": false
            },
            {
              "id": 34,
              "title": "LWE2048",
              "tags": [
                "crypto"
              ],
              "authors": [
                "Drago"
              ],
              "currentScore": 182,
              "currentGlobalSolves": 37,
              "hidden": false
            },
            {
              "id": 41,
              "title": "JuniorFeistel",
              "tags": [
                "crypto"
              ],
              "authors": [
                "mr96",
                "Devrar"
              ],
              "currentScore": 448,
              "currentGlobalSolves": 4,
              "hidden": false
            },
            {
              "id": 46,
              "title": "LazyDH",
              "tags": [
                "crypto"
              ],
              "authors": [
                "Devrar"
              ],
              "currentScore": 64,
              "currentGlobalSolves": 101,
              "hidden": false
            },
            {
              "id": 35,
              "title": "Deleted file",
              "tags": [
                "misc"
              ],
              "authors": [
                "Giotino"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 578,
              "hidden": false
            },
            {
              "id": 40,
              "title": "Mamma Mia",
              "tags": [
                "misc",
                "active-directory"
              ],
              "authors": [
                "ly4k"
              ],
              "currentScore": 481,
              "currentGlobalSolves": 2,
              "hidden": false
            },
            {
              "id": 47,
              "title": "eotp",
              "tags": [
                "misc"
              ],
              "authors": [
                "lorenzcat"
              ],
              "currentScore": 116,
              "currentGlobalSolves": 60,
              "hidden": false
            },
            {
              "id": 36,
              "title": "Xv6 Homework",
              "tags": [
                "pwn"
              ],
              "authors": [
                "mebeim"
              ],
              "currentScore": 316,
              "currentGlobalSolves": 15,
              "hidden": false
            },
            {
              "id": 42,
              "title": "Log4x86",
              "tags": [
                "pwn"
              ],
              "authors": [
                "orsobruno96"
              ],
              "currentScore": 247,
              "currentGlobalSolves": 24,
              "hidden": false
            },
            {
              "id": 48,
              "title": "Baby Array.xor",
              "tags": [
                "pwn"
              ],
              "authors": [
                "Bonfee"
              ],
              "currentScore": 418,
              "currentGlobalSolves": 6,
              "hidden": false
            },
            {
              "id": 37,
              "title": "livestream",
              "tags": [
                "rev"
              ],
              "authors": [
                "Rising"
              ],
              "currentScore": 267,
              "currentGlobalSolves": 21,
              "hidden": false
            },
            {
              "id": 43,
              "title": "revrev",
              "tags": [
                "rev"
              ],
              "authors": [
                "lorenzcat"
              ],
              "currentScore": 142,
              "currentGlobalSolves": 49,
              "hidden": false
            },
            {
              "id": 45,
              "title": "Cop",
              "tags": [
                "rev"
              ],
              "authors": [
                "orsobruno96"
              ],
              "currentScore": 190,
              "currentGlobalSolves": 35,
              "hidden": false
            },
            {
              "id": 38,
              "title": "Grand Resort for Pwning Cats",
              "tags": [
                "web"
              ],
              "authors": [
                "M1gnus",
                "Aquilairreale"
              ],
              "currentScore": 50,
              "currentGlobalSolves": 185,
              "hidden": false
            },
            {
              "id": 44,
              "title": "Fuper Fibernetic Interpolator",
              "tags": [
                "web"
              ],
              "authors": [
                "M1gnus",
                "Aquilairreale"
              ],
              "currentScore": 178,
              "currentGlobalSolves": 38,
              "hidden": false
            },
            {
              "id": 49,
              "title": "Notes",
              "tags": [
                "web"
              ],
              "authors": [
                "bonaff",
                "xatophi"
              ],
              "currentScore": 433,
              "currentGlobalSolves": 5,
              "hidden": false
            }
          ]
        }
      ]
    }
  ]
}

JJ-8 added 3 commits July 14, 2024 21:23
The parser was introduced in TFNS#184
but I don't think anyone will be using this parser since the project is dead for years
and ENISA is not using this gameboard in the last couple of years.
Since it conflicts with the parsing of the other CTF formats, it is better to drop it and reintroduce it when necessary.
@JJ-8 JJ-8 merged commit f618fa9 into TFNS:main Jul 14, 2024
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

Successfully merging this pull request may close these issues.

2 participants