# 09 - mistake

## The Challenge

We all make mistakes, let's move on. (don't take this too seriously, no fancy hacking skill is required at all)

This task is based on real event, Thanks to dhmonkey.

hint: operator priority

ssh <mistake@pwnable.kr> -p2222 (pw:guest)

## The Solution

As the hint suggests the problem lies in the operator priority.

![](/files/-MHeSjc768SgYOW3rPjZ)

The file "password" opens successfully, but the file descriptor is larger than 0, so the equasion will evaluate to false (0). now that the file descriptor is STDIN we can provide the right input. We used "BBBBBBBBBB" and "CCCCCCCCCC".


---

# 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://nickbhe.gitbook.io/shikata-ga-nai/pwnable.kr/09-mistake.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.
