> For the complete documentation index, see [llms.txt](https://shsbt.gitbook.io/hack-the-ctf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shsbt.gitbook.io/hack-the-ctf/the-challenges/hard-chals/code-breaker.md).

# Code Breaker

{% hint style="info" %}

#### REVERSE ENGINEERING | *figure out how things work, then break those things* | HARD

{% endhint %}

This flag is about knowing a concept such as brute-forcing (see <https://en.wikipedia.org/wiki/Brute-force_attack>). The first part is that you have to understand how to send an unlock code. The second is to speed up the process of breaking the code.

<details>

<summary>Hints</summary>

ChatGPT is pretty good at writing Python code. If you ask it to write you a program that attempts all possible combinations and sends them to that URL while printing the result, you will probably get a working solution.

Be careful: the endpoint may have rate-limiting enable to slow down other types of attacks. You may also have to slow your code down just a little to deal with this.

Now you just have to find a place to run your Python code.

</details>

<details>

<summary>Solutions</summary>

<https://www.youtube.com/watch?v=rUbn3GNNVI8&list=PLFuCtJnW6S5iSDjIFa2QAjWi7BcKJBJhm>

</details>
