> For the complete documentation index, see [llms.txt](https://jedi.gitbook.io/jedi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jedi.gitbook.io/jedi/ctf-archive/wargames.my-ctf-2024/misc-the-dcm-meta-310-pts.md).

# Misc - The DCM Meta (310 pts)

### Description

\[25, 10, 0, 3, 17, 19, 23, 27, 4, 13, 20, 8, 24, 21, 31, 15, 7, 29, 6, 1, 9, 30, 22, 5, 28, 18, 26, 11, 2, 14, 16, 12]

Author: Yes

Hint : The element is the number in the list, combine for the flag. Wrap in wgmy{}

Attachment : <https://ctf2024.wargames.my/files/57fbc434501ae1caab25754bfb1f821c/challenge.dcm?token=eyJ1c2VyX2lkIjo3OCwidGVhbV9pZCI6MzQsImZpbGVfaWQiOjQ2fQ.Z3DVLg.BVDTqE0M1FqZHGQNImvXQiW6rhY>

### Solution

For this challenge, we get **challenge.dcm** file. We try to cat the inside of the file

<figure><img src="/files/o8Z8gxXnpgMcuBRWGOz2" alt="" width="443"><figcaption></figcaption></figure>

We see some suspicious character here. From the index in the description, there are 32 character in the flag. But, we only see 26 character when we cat the file. So, i try to open it wih HxD

<figure><img src="/files/rgPvBGzmzU6LLZSkHmOM" alt=""><figcaption></figcaption></figure>

We see now that the file is start with WGMY, and every 8 or 12 byte, there is a character. We can extract all of the character and print it according to the hint

```python
data = "f63acd3b78127c1d7d3e700b55665354"

indices = [25, 10, 0, 3, 17, 19, 23, 27, 4, 13, 20, 8, 24, 21, 31, 15, 7, 29, 6, 1, 9, 30, 22, 5, 28, 18, 26, 11, 2, 14, 16, 12]

result = [''] * len(indices)
for new_pos, old_pos in enumerate(indices):
    if old_pos < len(data):
        result[old_pos] = data[new_pos]

flag = 'wgmy{' + ''.join(result) + '}'
print(f"Flag: {flag}")
```

### Flag

<figure><img src="/files/ULZfOd3IqUGF0JsUebeG" alt="" width="502"><figcaption></figcaption></figure>

`wgmy{3e5a7b372766483d5c5d1c037f6b5d01}`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jedi.gitbook.io/jedi/ctf-archive/wargames.my-ctf-2024/misc-the-dcm-meta-310-pts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
