# Russian Dolls

{% file src="/files/LFuyyJ6HRitqSAQ4A1zn" %}

{% file src="/files/uCeP8n7EdmhAcjbAPbWi" %}

{% file src="/files/MYd6Nhh1yqN9WWRYhOQ6" %}

{% file src="/files/HvrOwAz6IedA2a6Qm0Jx" %}

**Category:** Forensics - **Points:** 10 - **Solves:** 62\
**Description:** You need to find the FLAG hidden in a .txt file among all the folders

**Infos:**

> A .zip file is provided (russian\_dolls.zip)

**Solution:**\
To solve this challenge you need to find the .txt file that contains the FLAG. So if you are a veeeeeryyyyy patient person, you can search the file manually but it is not effective and you are not sure to find that one good file. So to get around this problem, you will have to develop a small automatic script that will examine all the files contained in these folders. I choose Python because it is a very convenient and simple language to develop little scripts like that. I used the glob and open method to explore the content of the files and I put the results in a file named all.txt. When the research is done, I search the start of the FLAG as we know it (DVC{). And the FLAG is here in clear and I copied and pasted the FLAG on the CTF website.

<details>

<summary>🚩 FLAG</summary>

```
DVC{ru5514n_d0ll5}
```

</details>


---

# Agent Instructions: 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://writeups.ayweth20.com/2021/dvctf-to-join-davincicode/forensics/russian-dolls.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.
