> For the complete documentation index, see [llms.txt](https://writeups.ayweth20.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://writeups.ayweth20.com/2021/dvctf-to-join-davincicode/forensics/russian-dolls.md).

# 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
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, and the optional `goal` query parameter:

```
GET https://writeups.ayweth20.com/2021/dvctf-to-join-davincicode/forensics/russian-dolls.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
