Question

dis.tar.gz
dist.tar.gz

flag format: wctf{...}

Réponse

I’ll inspect both archives, identify the challenge type, and work toward recovering a flag in the wctf{...} format.

Réflexion

Inspected CTF archives, binaries, PCAPs, crypto artifacts, and web assets

Réponse

The archives contain two different challenges: a custom boot-sector binary and a packet capture of a dinosaur-themed website. I’ve reconstructed the HTTP traffic and recovered its images; I’m checking those for hidden data while analyzing the boot code.

Réflexion

Assessing challenge files

I’m treating the binary and packet capture as potentially connected challenge components. The binary appears boot-sector-like and encrypted, while the capture may contain steganographic or ordering clues that provide a missing key or flag.

Assessed challenge files

Réflexion

Analyzing boot behavior

I’m mapping the startup code: it loads a key into memory, repeatedly XORs selected disk data, and transfers execution to the decrypted region. The missing key may be recoverable from known structure in the decrypted code.

Inferring the next stage

I’m narrowing the binary’s first-stage behavior: a short key length is stored in memory, then a repeated-key XOR decrypts roughly 24 KB before execution continues. The packet capture may contain related clues, though that connection remains uncertain.

Analyzed boot behavior and inferred the next stage

Réflexion

Exploring covert channels

I’m checking whether the packet capture hides data in JPEG coefficients, image pixels, or network metadata. The filename suggests steganography, but I’m keeping header-based channels and unusual file structure in consideration too.

Explored covert channels

Réflexion

Analyzed image metadata, bootloader code, steganography, and PCAP covert channels

Réflexion

Investigating challenge context

I’m using the event context and playful filenames as clues, especially the stegosaurus reference. The most likely path remains JPEG steganography, possibly protected by a challenge-related passphrase, while network metadata is a secondary possibility.

Investigated challenge context

Searched 5 websites

Réponse

The website capture has no flag in its visible HTML or CSS, so the likely hiding place is one of the recovered JPEGs or the network metadata. The boot image also references a key.bin that wasn’t included, so I’m testing whether its encrypted payload can be recovered without that file.

Réflexion

Analyzed images, ciphertext patterns, and JPEG steganography extraction tools

Réflexion

Reassessing the objective

I’m recognizing that the immediate goal is likely to recover flags from the supplied artifacts, not merely document hypotheses. I’m prioritizing practical extraction methods for the image capture and binary, while treating earlier contextual clues as tentative.

Reassessed the objective

Searched 7 websites

Réflexion

Choosing practical extraction

I’m separating the artifacts into independent possibilities: one may require binary decryption, while the capture likely uses JPEG steganography. I’m focusing on reproducible extraction rather than assuming the files share a key or a single flag.

Extracting flags

I’m treating the files as separate challenges and prioritizing direct, reproducible extraction. The capture likely uses JPEG steganography, while the binary requires recovering or inferring its XOR key before the decrypted stage reveals useful data.

Comparing artifact roles

I’m considering whether the capture supplies the binary’s missing key, rather than representing an unrelated challenge. Repeated-key XOR, JPEG steganography, and packet-field encoding remain the main hypotheses, with cross-artifact linkage still unconfirmed.

Compared artifact roles and extracted practical flags

Searched 6 websites

Réflexion

Analyzed packet and TCP checksum anomalies for hidden data

Testing hidden channels

I’m ruling out ordinary packet checksums as meaningful because they resemble offloading artifacts. My focus is shifting toward JPEG DCT steganography, while checking whether the binary and capture intentionally provide complementary clues.

Tested hidden channels

Searching the web

Réflexion

Analyzed TCP sequence numbers and image data for hidden flags

Réponse

I’ve confirmed the packet capture is ordinary HTTP traffic with seven complete JPEG transfers, and the images do not contain an obvious plaintext flag or simple unencrypted bitstream. The boot binary uses an XOR key loaded from key.bin, so I’m checking whether there is a recoverable clue in the encrypted disk data itself.

Réflexion

Analyzed JPEG montage and scanned pixel LSBs for hidden flags

Réflexion

Searched 9 websites

Réflexion

Refining extraction

I’m treating JPEG steganography as the strongest lead after ruling out ordinary packet metadata. The remaining task is identifying the embedding method or password, while keeping the binary’s XOR stage as a separate avenue.

Refined extraction

Réflexion

Testing steganography methods

I’m narrowing the JPEG analysis to steghide-style embedding: candidate passwords determine coefficient selection and ordering, so I can test likely phrases before attempting full payload recovery.

Tested steganography methods

Réflexion

Searched 1 website

Réflexion

Inspected CTF files, source code, and dumps

Réflexion

Searched 1 website

Réflexion

Analyzed a Steghide magic extraction script

Réflexion

Searched 1 website

Réflexion

Guarded steghide script execution

Réflexion

Searched 1 website

Réflexion

Checked MHash and Mcrypt availability and inspected headers and symbols

Réflexion

Searched 5 websites

Réflexion

Analyzed cryptographic, webpage, PCAP, and steganography clues

Réponse

I decrypted the hidden JPEG payload. It contains hint.txt, which says: “Close, the flag is flown high.” That appears to point toward the flying dinosaur, Archaeopteryx, so I’m examining its image and the capture for the next layer.

Réflexion

Analyzed wordlists, PCAP traffic, image steganography, and password clues

Réflexion

Searched 8 websites

Réflexion

Prioritizing extraction

I’m comparing likely JPEG embedding methods and candidate passwords, especially for the two most relevant filenames. If those checks fail, I’ll return to the binary’s repeated-key XOR and test whether the artifacts are linked.

Prioritized extraction

Réflexion

Analyzed a Steghide magic extraction script

Réflexion

Investigated JPEG steganography and tested extraction methods

Worked for 11m 14s

Réponse

I inspected both uploaded archives:

  • dis.tar.gz contains chal.bin, an x86 boot image with an encrypted payload. Its boot code references an external key.bin that is not included.
  • dist.tar.gz contains jurassic.pcap, a network capture of a dinosaur-themed website. I reconstructed the HTTP responses and extracted seven JPEG images.

Neither archive contains a directly readable wctf{...} flag.

I found a hidden Steghide payload in stegosaurus.jpg, using an empty passphrase. Its extracted header matches Steghide’s expected signature. This identifies a concrete hiding location; I’m decoding the embedded file to recover the flag.

The second hidden payload is in archaeopteryx.jpg, protected by the passphrase wolverine. I’ve verified its Steghide signature, and this appears to be the flag-bearing file.

Recovered flag — dist.tar.gz

Verified flag [Copy]

wctf{th1s_1s_the_fl@g_trust_m3_SJGYBG}

The flag was recovered from archaeopteryx.jpg using Steghide with passphrase wolverine, then decrypted and decompressed from the embedded flag.txt.

Download the extracted flag.txt

The separate dis.tar.gz boot-image challenge remains unresolved: it references a key.bin file that was not included in the archive. I can't verify a second flag from that file.

Partager cette Q&R