> For the complete documentation index, see [llms.txt](https://zwique.gitbook.io/zwique_notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zwique.gitbook.io/zwique_notes/writeups/random-ctf-writeup/local/klaun.md).

# Klaun

## Problem

We're given a RAR archive data v5 file.

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

I tried to extract using this platform by entering any password to see the result. However, it asked me for a password to download **Klaun.png**. Another file, **Wordlist.txt**, was available for download.

### Bruteforcing Technique

{% stepper %}
{% step %}

### Extracting password hashes from RAR files

rar2john ./Klaun.rar > hash
{% endstep %}

{% step %}

### Cracking the hash using Hashcat

hashcat -a 0 -m 13000 hash Wordlist.txt

{% hint style="info" %}
hash-type(13000) can be found from [sample hashes](https://hashcat.net/wiki/doku.php?id=example_hashes).
{% endhint %}
{% endstep %}
{% endstepper %}

#### Output

```basic
$rar5$16$66b921062f7fbcf42a7c3bb35e127db3$15$1260ae075dd992e9af0d9db82c2e2741$8$613acf0df906e777:goodiegoodie
```

After entering the password, you will be able to get **Klaun.png** file. Use the strings command to get the flag.

```bash
strings Klaun.png
```

`FLAG IS : Y2NzQ1RGe1czTExfRDBOM19NWV9GUjEzTkR9`

Decode it from base64. CyberChef recipe is [here](https://gchq.github.io/CyberChef/#recipe=From_Base64\('A-Za-z0-9%2B/%3D',true,false\)\&input=WTJOelExUkdlMWN6VEV4ZlJEQk9NMTlOV1Y5R1VqRXpUa1I5\&oeol=FF).

```bash
ccsCTF{W3LL_D0N3_MY_FR13ND}
```


---

# 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:

```
GET https://zwique.gitbook.io/zwique_notes/writeups/random-ctf-writeup/local/klaun.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.
