# Behind the Scenes

I got a program file.

With 'strings' there was nothing useful to be seen.

In Ghidra I opened the main function. There was a loop that only throws exceptions at the end. But clearly there was more code to be seen on the left after the main. Clicking on the InvalidInstructionException, i saw the UD2 Assembler call. I googled it and knew it was a type of exception. I selected all code after that and decompiled it with “d”. Then I saw the stringcompares, containing the flag.In Ghidra I opened the main function. There was a loop that only throws exceptions at the end. But clearly there was more code to be seen on the left after the main. Clicking on the InvalidInstructionException, i saw the UD2 Assembler call. I googled it and knew it was a type of exception. I selected all code after that and decompiled it with “d”. Then I saw the stringcompares, containing the flag.

There you can see that stringcompares are done and the Password, which is the flag, is asked in packs of 3 chars:

<figure><img src="/files/PwFCTlOjIcZdOkvPABmz" alt=""><figcaption></figcaption></figure>


---

# 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://shibudocs.gitbook.io/htb-writeups/challenges/temp.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.
