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