# No Step On Snek

## Challenge

I heard you guys like python pwnables

nc umbccd.io 4000

Author: trashcanna

## Solution

A different board is shown every time.

![](/files/-M_EEey_dq637tiYrh9Q)

`move = input("Make your move: ")`

The output shows us that Python 2 is used -- the code tries to evaluate the input.

![](/files/-M_EEjwShsjC88SdIBfA)

We can pass in `eval(open('flag.txt').read())` as the input. In the traceback, we get the flag.

![](/files/-M_EEneSDDpuqdyfC_tf)


---

# 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://ctf.zeyu2001.com/2021/dawgctf-2021/no-step-on-snek.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.
