file .thc dành cho 2 thử thách stego liên tiếp nha...

Creato il: 7 maggio 2026

Risposto usando GPT-5.5 Thinking da Chat01

Domanda

weird_file.thc
decoded_full.png

file .thc dành cho 2 thử thách stego liên tiếp nhau
mô tả challenge 1: Some members of the COPS We have found this file lying on a very sus USB stick. Maybe try to find something hidden in it ? Or don't, I mean nobody does steganography anyway.
mô tả challenge 2: Well, now we know for certain that something lies in this file. We have sent your image to an elite steganographer here at SNAFU.
He has since become totally insane and keeps repeating that "the music's URL is the key"... do with this as you please.
Tôi đã giải được challenge 1, flag là: THC{PNG3D}
ý tưởng của challenge 1 biểu diễn lại ảnh chứa flag bằng mã nhị phân bằng icon like và dislike thôi
hãy giúp tôi solve challenge 2
flag format: THC{...}
decoded_full.png là ảnh tôi đã decode được ở challenge 1

Pensiero

Reconstructing QR from noisy image

I’m considering different approaches to decode the QR. Using an online decoder won’t work since it only opens URLs. Instead, I could use computer vision to locate corners and warp, then apply OCR. It seems like the image is likely QR since it has three corner circles and an alignment. Maybe the thresholding from earlier isn’t great, so I’ll try denoising the image first and then running a scanner to preserve the modules.

Improving image processing with morphological operations

Since the modules might be around 20px, applying morphological opening and closing could help. I’ll inspect whether the image is sparse white-on-black or black-on-white (there seems to be 283k white pixels). Using distance transforms could help separate noise from the larger connected regions. I'll try applying these transformations with kernels between 5-15 to clean the image up and then scan.

Thought for 28m 37s

Risposta

Mình solve được challenge 2 rồi.

Cách làm

Từ decoded_full.png, mình kiểm tra các bit thấp của ảnh và thấy dữ liệu ẩn nằm ở LSB.
Cụ thể, khi lấy LSB của các kênh màu và gộp lại (lsb_any / tương đương XOR trong trường hợp này), sẽ hiện ra một mã QR đã bị làm nhiễu.

Sau đó mình xử lý nhẹ ảnh ẩn này bằng cách:

  1. invert ảnh
  2. median blur kernel 3
  3. morphological opening kernel 5
  4. **threshold = 64`

Rồi decode bằng barcode/QR reader (zxingcpp), thu được:

text
https://www.youtube.com/watch?v=lpiB2wMc49g?flqg=THC{Y'411_s0_r1Ckr0113D}

Flag

text
THC{Y'411_s0_r1Ckr0113D}

Nếu bạn muốn, mình có thể viết luôn cho bạn một script Python ngắn để tái hiện toàn bộ bước solve challenge 2 từ decoded_full.png.

Condividi questa Q&A