> 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/progra/snoops-mission.md).

# Snoop's Mission

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

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

**Category:** Progra - **Points:** 16 - **Solves:** 29\
**Description:** I'm too high to remember the code of my weed stash. Can you help me remember?

**Infos:**

> <http://davincicode.fr:6969/>\
> The PIN is composed by 4 digits

**Solution:**\
To solve this challenge you need to find the PIN to access the secret portal.\
To find the PIN you need to test all combinations.\
So if you are veeeeeryyyyy patient, you can test PIN manually but it is not effective and you are not sure to find the good PIN.\
So to get around this problem, you will have to develop a small automatic script that will test all PINs from 0000 to 9999.\
I choose Python because is a very pratic and simple language to develop little scripts like that.\
I used the *requests* library to send requests to the server.\
When the PIN is good, the python program stops and writes in .txt file the information with the PIN and the FLAG.\
\&#xNAN;*The PIN is **4420***\
So if you don't want to enter the PIN on the website connect screen, you can copy the FLAG.\
But if you test to enter the PIN on the website, you go to a web page that display the FLAG.

<details>

<summary>🚩 FLAG</summary>

```
DVC{bl4ze_1t}
```

</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/progra/snoops-mission.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.
