{
  "id": 346194,
  "title": "Honorstudent (id: honorstudent) Image source",
  "url": "/competitions/ai-village-ctf/discussion/346194",
  "author_name": "",
  "post_date": "2022-08-18T10:51:53.453254100Z",
  "votes": 1,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Since the server endpoint expects a datafile and not an array, I tried saving images (<em>f.png</em>) in the working directory and then sending those images data files to the server. I am trying this way since I do not konw how to change the bytes in a <em>_io.BufferedReader</em> on the fly (at least yet). However when saving the original image (without any modifications) and sending the new data file to the server, the output is : <strong>I think you tampered with this report card</strong>.</p>\n<p>My question is: for this challenge, do we need to change bytes from the original image or the method I described above could in theory work (and I am doing something wrong somewhere) ?</p>",
  "messages": [
    {
      "id": "1904615",
      "postDate": "08/18/2022 10:51:53",
      "content": "<p>Since the server endpoint expects a datafile and not an array, I tried saving images (<em>f.png</em>) in the working directory and then sending those images data files to the server. I am trying this way since I do not konw how to change the bytes in a <em>_io.BufferedReader</em> on the fly (at least yet). However when saving the original image (without any modifications) and sending the new data file to the server, the output is : <strong>I think you tampered with this report card</strong>.</p>\n<p>My question is: for this challenge, do we need to change bytes from the original image or the method I described above could in theory work (and I am doing something wrong somewhere) ?</p>",
      "rawMarkdown": "Since the server endpoint expects a datafile and not an array, I tried saving images (*f.png*) in the working directory and then sending those images data files to the server. I am trying this way since I do not konw how to change the bytes in a *_io.BufferedReader* on the fly (at least yet). However when saving the original image (without any modifications) and sending the new data file to the server, the output is : **I think you tampered with this report card**.\n\nMy question is: for this challenge, do we need to change bytes from the original image or the method I described above could in theory work (and I am doing something wrong somewhere) ?",
      "votes": null
    },
    {
      "id": "1904625",
      "postDate": "08/18/2022 11:04:52",
      "content": "<p>You don't have to change anything in the buffer, that is just for transmission.<br>\nModifying the image and saving it is totally fine<br>\nThe \"tampering message\" just means, that your faked 'A' isn't believable enough.<br>\nTherefore you have to create a more realistic one.</p>",
      "rawMarkdown": "You don't have to change anything in the buffer, that is just for transmission.\nModifying the image and saving it is totally fine\nThe \"tampering message\" just means, that your faked 'A' isn't believable enough.\nTherefore you have to create a more realistic one.",
      "votes": null
    },
    {
      "id": "1904628",
      "postDate": "08/18/2022 11:08:23",
      "content": "<p>Thank you for your answer.<br>\nI just found it weird that feeding the original image from a different source yielded a different output message.</p>",
      "rawMarkdown": "Thank you for your answer.\nI just found it weird that feeding the original image from a different source yielded a different output message.",
      "votes": null
    },
    {
      "id": "1910917",
      "postDate": "08/23/2022 19:24:04",
      "content": "<p>Exactly , i loaded the image , saved the same image again and uploaded it as a file and got the message <strong>I think you tampered with this report card.</strong> . But when i do it as per the template , i get a different message - **There's no way you're going to homecoming with those grades. ** . That got me thinking if saving the file isn't the way to go</p>",
      "rawMarkdown": "Exactly , i loaded the image , saved the same image again and uploaded it as a file and got the message **I think you tampered with this report card.** . But when i do it as per the template , i get a different message - **There's no way you're going to homecoming with those grades. ** . That got me thinking if saving the file isn't the way to go",
      "votes": null
    },
    {
      "id": "1910951",
      "postDate": "08/23/2022 19:56:00",
      "content": "<p>Okay. I had similar problems with hotterdog, where saving image with Gimp as PNG let to different classifications (JPG fixed it). Probably you shouldn't save the image in this case.</p>",
      "rawMarkdown": "Okay. I had similar problems with hotterdog, where saving image with Gimp as PNG let to different classifications (JPG fixed it). Probably you shouldn't save the image in this case.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1904625,
      "author_name": "cepheidq",
      "author_url": "",
      "post_date": "08/18/2022 11:04:52",
      "content": "<p>You don't have to change anything in the buffer, that is just for transmission.<br>\nModifying the image and saving it is totally fine<br>\nThe \"tampering message\" just means, that your faked 'A' isn't believable enough.<br>\nTherefore you have to create a more realistic one.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1904628,
          "author_name": "fournierp",
          "author_url": "",
          "post_date": "08/18/2022 11:08:23",
          "content": "<p>Thank you for your answer.<br>\nI just found it weird that feeding the original image from a different source yielded a different output message.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1910917,
          "author_name": "rama3282",
          "author_url": "",
          "post_date": "08/23/2022 19:24:04",
          "content": "<p>Exactly , i loaded the image , saved the same image again and uploaded it as a file and got the message <strong>I think you tampered with this report card.</strong> . But when i do it as per the template , i get a different message - **There's no way you're going to homecoming with those grades. ** . That got me thinking if saving the file isn't the way to go</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1910951,
          "author_name": "cepheidq",
          "author_url": "",
          "post_date": "08/23/2022 19:56:00",
          "content": "<p>Okay. I had similar problems with hotterdog, where saving image with Gimp as PNG let to different classifications (JPG fixed it). Probably you shouldn't save the image in this case.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1904615": "Since the server endpoint expects a datafile and not an array, I tried saving images (*f.png*) in the working directory and then sending those images data files to the server. I am trying this way since I do not konw how to change the bytes in a *_io.BufferedReader* on the fly (at least yet). However when saving the original image (without any modifications) and sending the new data file to the server, the output is : **I think you tampered with this report card**.\n\nMy question is: for this challenge, do we need to change bytes from the original image or the method I described above could in theory work (and I am doing something wrong somewhere) ?",
    "1904625": "You don't have to change anything in the buffer, that is just for transmission.\nModifying the image and saving it is totally fine\nThe \"tampering message\" just means, that your faked 'A' isn't believable enough.\nTherefore you have to create a more realistic one.",
    "1904628": "Thank you for your answer.\nI just found it weird that feeding the original image from a different source yielded a different output message.",
    "1910917": "Exactly , i loaded the image , saved the same image again and uploaded it as a file and got the message **I think you tampered with this report card.** . But when i do it as per the template , i get a different message - **There's no way you're going to homecoming with those grades. ** . That got me thinking if saving the file isn't the way to go",
    "1910951": "Okay. I had similar problems with hotterdog, where saving image with Gimp as PNG let to different classifications (JPG fixed it). Probably you shouldn't save the image in this case."
  },
  "source": "meta"
}