> For the complete documentation index, see [llms.txt](https://ctf.zeyu2001.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ctf.zeyu2001.com/2021/dawgctf-2021/no-step-on-snek.md).

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