> 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/2022/404ctf/reverse/mot-de-passe.md).

# Mot de passe ?

**Category:** Reverse - **Points:** 100 - **Difficulty:** Intro - **Solves:** 492

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

**Description:**

Nous avons retrouvé un petit ordinateur avec un drôle de programme pour chiffrer le mot de passe administrateur. Ta mission est simple : déchiffrer ce mot de passe !

**Solution:**

For this introductory challenge, we notice a strange string when opening the Mdp.class file. You can notice that the hide function performs an ascii offset that can be simply reversed with a small python script:

```
string = "4/2@PAu<+ViNgg%^5NS`#J\u001fNK<XNW(_"
for i in range(len(string)) :
    print(chr(ord(string[i])+i), end = "")
```

<details>

<summary>🚩 FLAG</summary>

```
404CTF{C3_sYst3mE_es7_5ecUrisE}
```

</details>
