# BE02 - 100pts

## Briefing

> Download the file and find a way to get the flag. Contents: rot13

Challenge Files:

* [be02.zip](https://github.com/HHousen/NCS-Competition/tree/e3a1ab990b675bd865fdddd9e5fa5cd7895b3b02/Binary/BE02/be02.zip)

## Solution

1. We could decompile the binary using Ghidra to understand how it works, but trial and error is faster for this challenge.
2. Sending a large number of characters as input (a >32 character string) causes a segmentation fault and prints the flag.
3. We can use 33 `a`'s as input to get the flag: `python -c "print('a'*33)" | ./rot13`.

### Flag

`luckyNumber13`


---

# 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://ncs2021.haydenhousen.com/binary/be02.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.
