{
  "id": 344043,
  "title": "Submission score does not change",
  "url": "/competitions/ai-village-ctf/discussion/344043",
  "author_name": "Attila Ambrus",
  "post_date": "2022-08-13T17:28:50.270000",
  "votes": 1,
  "comment_count": 14,
  "views": 0,
  "content": "<p>The forensics challenge is simple. I send the token and my submission score still does not increase. Why? I replaced the () characters with {} in the flag submission. So it looks like the example: FLAG{TOKEN}. I have more token for the other challenges, but none of them raise my score. What could be the problem?</p>\n<p><img src=\"https://i.ibb.co/Ht8bLx4/IMG-20220813-192702.jpg\" alt=\"Submission Score\"></p>\n<p><strong>I solved it. The token is only the 128 length string. The pattern should not be followed. The FLAG{} part is not needed!</strong></p>",
  "messages": [
    {
      "id": 1897382,
      "postDate": "2022-08-13T17:28:50.270Z",
      "content": "<p>The forensics challenge is simple. I send the token and my submission score still does not increase. Why? I replaced the () characters with {} in the flag submission. So it looks like the example: FLAG{TOKEN}. I have more token for the other challenges, but none of them raise my score. What could be the problem?</p>\n<p><img src=\"https://i.ibb.co/Ht8bLx4/IMG-20220813-192702.jpg\" alt=\"Submission Score\"></p>\n<p><strong>I solved it. The token is only the 128 length string. The pattern should not be followed. The FLAG{} part is not needed!</strong></p>",
      "rawMarkdown": "The forensics challenge is simple. I send the token and my submission score still does not increase. Why? I replaced the () characters with {} in the flag submission. So it looks like the example: FLAG{TOKEN}. I have more token for the other challenges, but none of them raise my score. What could be the problem?\n\n![Submission Score](https://i.ibb.co/Ht8bLx4/IMG-20220813-192702.jpg)\n\n**I solved it. The token is only the 128 length string. The pattern should not be followed. The FLAG{} part is not needed!**",
      "votes": 1
    },
    {
      "id": 1906165,
      "postDate": "2022-08-19T16:27:36.693Z",
      "content": "<p>I have the same issue the submission template is not clear, it says FLAG{PLACEHOLDER} making you think that the flag should go into the placeholder but you have to replace all.</p>",
      "rawMarkdown": "I have the same issue the submission template is not clear, it says FLAG{PLACEHOLDER} making you think that the flag should go into the placeholder but you have to replace all.",
      "votes": 2
    },
    {
      "id": 1897385,
      "postDate": "2022-08-13T17:34:12.717Z",
      "content": "<p>Once you get a flag, and save it with add_flag(), you still need to click Submit on the right. <img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2052853%2Fec0374313ccb5d4e4d5ef917b6471936%2F86010DEB-D61F-4DE4-90B3-AC6A22D16B7A.jpeg?generation=1660412045616219&amp;alt=media\" alt=\"\"></p>\n<p>Your csv should contain rows like:</p>\n<p>math_1,random_128_character_string</p>",
      "rawMarkdown": "Once you get a flag, and save it with add_flag(), you still need to click Submit on the right. ![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2052853%2Fec0374313ccb5d4e4d5ef917b6471936%2F86010DEB-D61F-4DE4-90B3-AC6A22D16B7A.jpeg?generation=1660412045616219&alt=media)\n\nYour csv should contain rows like:\n\nmath_1,random_128_character_string",
      "replies": [
        {
          "id": 1897402,
          "postDate": "2022-08-13T17:43:26.050Z",
          "content": "<p>I use the kaggle API to upload my submission.csv. But the score is unchanged. Do you have another idea?</p>",
          "rawMarkdown": "I use the kaggle API to upload my submission.csv. But the score is unchanged. Do you have another idea?"
        },
        {
          "id": 1897407,
          "postDate": "2022-08-13T17:47:41.827Z",
          "content": "<p>Did you put the \"FLAG{XYZ}\" in the csv, or did you use the call to get a 128 char string and put that in the csv?</p>",
          "rawMarkdown": "Did you put the \"FLAG{XYZ}\" in the csv, or did you use the call to get a 128 char string and put that in the csv?"
        },
        {
          "id": 1897412,
          "postDate": "2022-08-13T17:51:50.593Z",
          "content": "<p>Flags have a period at the end of the sentence. Have you removed the periods and only copied the 128 characters into your submission CSV? Run the code below with your submission.csv file</p>\n<pre><code>import pandas as pd\nsub = pd.read_csv('submission.csv')\nsub.flag.str.len()\n</code></pre>\n<p>Do you see <code>128</code> for all the puzzles you solved?</p>",
          "rawMarkdown": "Flags have a period at the end of the sentence. Have you removed the periods and only copied the 128 characters into your submission CSV? Run the code below with your submission.csv file\n\n    import pandas as pd\n    sub = pd.read_csv('submission.csv')\n    sub.flag.str.len()\n\nDo you see `128` for all the puzzles you solved?"
        },
        {
          "id": 1897417,
          "postDate": "2022-08-13T17:53:54.343Z",
          "content": "<p>I use pandas to put the token to the csv. I dont't used the add_flag function. The kaggle submission system accepts the upload and evaluates it, but it does not increase my points.</p>",
          "rawMarkdown": "I use pandas to put the token to the csv. I dont't used the add_flag function. The kaggle submission system accepts the upload and evaluates it, but it does not increase my points."
        },
        {
          "id": 1897423,
          "postDate": "2022-08-13T17:57:55.987Z",
          "content": "<p>Yes. Most tokens are 128 characters long. The token of the model in the h5 file is not 128 characters long, it is the name of the model for the forensics challenge.  I removed the dot from behind the other tokens, of course.</p>",
          "rawMarkdown": "Yes. Most tokens are 128 characters long. The token of the model in the h5 file is not 128 characters long, it is the name of the model for the forensics challenge.  I removed the dot from behind the other tokens, of course."
        },
        {
          "id": 1897428,
          "postDate": "2022-08-13T18:00:51.277Z",
          "content": "<p>Yes, you have to take that model name and pass it to the API in the notebook to get the 128 char key for the csv</p>",
          "rawMarkdown": "Yes, you have to take that model name and pass it to the API in the notebook to get the 128 char key for the csv"
        },
        {
          "id": 1897432,
          "postDate": "2022-08-13T18:03:20.120Z",
          "rawMarkdown": "",
          "isDeleted": true
        },
        {
          "id": 1897435,
          "postDate": "2022-08-13T18:05:26.370Z",
          "content": "<p>Okey. Thank you! I will do it.</p>\n<p>But the other 128 length tokens don't increase my score either. :(</p>",
          "rawMarkdown": "Okey. Thank you! I will do it.\n\nBut the other 128 length tokens don't increase my score either. :("
        },
        {
          "id": 1897440,
          "postDate": "2022-08-13T18:09:47.107Z",
          "content": "<p>I wonder if flags expire over time (or can only be submitted to Kaggle once each). Perhaps before each submission we need (run our code again) to get all new flags from the API. But i'm not sure since I have not submitted my flags yet.</p>",
          "rawMarkdown": "I wonder if flags expire over time (or can only be submitted to Kaggle once each). Perhaps before each submission we need (run our code again) to get all new flags from the API. But i'm not sure since I have not submitted my flags yet."
        },
        {
          "id": 1897461,
          "postDate": "2022-08-13T18:35:12.407Z",
          "content": "<p>Tokens do not expire. I solved the problem.</p>",
          "rawMarkdown": "Tokens do not expire. I solved the problem.",
          "votes": 1
        },
        {
          "id": 1897549,
          "postDate": "2022-08-13T21:38:58.530Z",
          "content": "<p>I haven't tested local submissions through the Kaggle API by uploading a csv. You have the right column headers?</p>",
          "rawMarkdown": "I haven't tested local submissions through the Kaggle API by uploading a csv. You have the right column headers?"
        },
        {
          "id": 1897550,
          "postDate": "2022-08-13T21:44:16.940Z",
          "content": "<p>Yes. I use good header. I have already solved the problem. The token format was wrong.</p>",
          "rawMarkdown": "Yes. I use good header. I have already solved the problem. The token format was wrong.",
          "votes": 1
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 1906165,
      "author_name": "CucaSF",
      "author_url": "",
      "post_date": "2022-08-19T16:27:36.693000",
      "content": "<p>I have the same issue the submission template is not clear, it says FLAG{PLACEHOLDER} making you think that the flag should go into the placeholder but you have to replace all.</p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 1897385,
      "author_name": "Joe Lucas",
      "author_url": "",
      "post_date": "2022-08-13T17:34:12.717000",
      "content": "<p>Once you get a flag, and save it with add_flag(), you still need to click Submit on the right. <img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2052853%2Fec0374313ccb5d4e4d5ef917b6471936%2F86010DEB-D61F-4DE4-90B3-AC6A22D16B7A.jpeg?generation=1660412045616219&amp;alt=media\" alt=\"\"></p>\n<p>Your csv should contain rows like:</p>\n<p>math_1,random_128_character_string</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1897402,
          "author_name": "Attila Ambrus",
          "author_url": "",
          "post_date": "2022-08-13T17:43:26.050000",
          "content": "<p>I use the kaggle API to upload my submission.csv. But the score is unchanged. Do you have another idea?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897407,
          "author_name": "chris",
          "author_url": "",
          "post_date": "2022-08-13T17:47:41.827000",
          "content": "<p>Did you put the \"FLAG{XYZ}\" in the csv, or did you use the call to get a 128 char string and put that in the csv?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897412,
          "author_name": "Chris Deotte",
          "author_url": "",
          "post_date": "2022-08-13T17:51:50.593000",
          "content": "<p>Flags have a period at the end of the sentence. Have you removed the periods and only copied the 128 characters into your submission CSV? Run the code below with your submission.csv file</p>\n<pre><code>import pandas as pd\nsub = pd.read_csv('submission.csv')\nsub.flag.str.len()\n</code></pre>\n<p>Do you see <code>128</code> for all the puzzles you solved?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897417,
          "author_name": "Attila Ambrus",
          "author_url": "",
          "post_date": "2022-08-13T17:53:54.343000",
          "content": "<p>I use pandas to put the token to the csv. I dont't used the add_flag function. The kaggle submission system accepts the upload and evaluates it, but it does not increase my points.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897423,
          "author_name": "Attila Ambrus",
          "author_url": "",
          "post_date": "2022-08-13T17:57:55.987000",
          "content": "<p>Yes. Most tokens are 128 characters long. The token of the model in the h5 file is not 128 characters long, it is the name of the model for the forensics challenge.  I removed the dot from behind the other tokens, of course.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897428,
          "author_name": "chris",
          "author_url": "",
          "post_date": "2022-08-13T18:00:51.277000",
          "content": "<p>Yes, you have to take that model name and pass it to the API in the notebook to get the 128 char key for the csv</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897432,
          "author_name": "",
          "author_url": "",
          "post_date": "2022-08-13T18:03:20.120000",
          "content": "",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897435,
          "author_name": "Attila Ambrus",
          "author_url": "",
          "post_date": "2022-08-13T18:05:26.370000",
          "content": "<p>Okey. Thank you! I will do it.</p>\n<p>But the other 128 length tokens don't increase my score either. :(</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897440,
          "author_name": "Chris Deotte",
          "author_url": "",
          "post_date": "2022-08-13T18:09:47.107000",
          "content": "<p>I wonder if flags expire over time (or can only be submitted to Kaggle once each). Perhaps before each submission we need (run our code again) to get all new flags from the API. But i'm not sure since I have not submitted my flags yet.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897461,
          "author_name": "Attila Ambrus",
          "author_url": "",
          "post_date": "2022-08-13T18:35:12.407000",
          "content": "<p>Tokens do not expire. I solved the problem.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1897549,
          "author_name": "Joe Lucas",
          "author_url": "",
          "post_date": "2022-08-13T21:38:58.530000",
          "content": "<p>I haven't tested local submissions through the Kaggle API by uploading a csv. You have the right column headers?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1897550,
          "author_name": "Attila Ambrus",
          "author_url": "",
          "post_date": "2022-08-13T21:44:16.940000",
          "content": "<p>Yes. I use good header. I have already solved the problem. The token format was wrong.</p>",
          "votes": 1,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1897382": "The forensics challenge is simple. I send the token and my submission score still does not increase. Why? I replaced the () characters with {} in the flag submission. So it looks like the example: FLAG{TOKEN}. I have more token for the other challenges, but none of them raise my score. What could be the problem?\n\n![Submission Score](https://i.ibb.co/Ht8bLx4/IMG-20220813-192702.jpg)\n\n**I solved it. The token is only the 128 length string. The pattern should not be followed. The FLAG{} part is not needed!**",
    "1906165": "I have the same issue the submission template is not clear, it says FLAG{PLACEHOLDER} making you think that the flag should go into the placeholder but you have to replace all.",
    "1897385": "Once you get a flag, and save it with add_flag(), you still need to click Submit on the right. ![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F2052853%2Fec0374313ccb5d4e4d5ef917b6471936%2F86010DEB-D61F-4DE4-90B3-AC6A22D16B7A.jpeg?generation=1660412045616219&alt=media)\n\nYour csv should contain rows like:\n\nmath_1,random_128_character_string"
  }
}