# 2. Great Snakes

## Challenge Description:

Modern cryptography involves code, and code involves coding. CryptoHack provides a good opportunity to sharpen your skills.\
\
Of all modern programming languages, Python 3 stands out as ideal for quickly writing cryptographic scripts and attacks. For more information about why we think Python is so great for this, please see the [FAQ](https://cryptohack.org/faq#python3).\
\
Run the attached Python script and it will output your flag.\
\
Challenge files:\
&#x20; \- [great\_snakes.py](https://cryptohack.org/static/challenges/great_snakes_35381fca29d68d8f3f25c9fa0a9026fb.py)\
\
Resources:\
&#x20; \- [Downloading Python](https://wiki.python.org/moin/BeginnersGuide/Download)

## My Solution:

We will download that great snakes file and inspect it:

```python
#!/usr/bin/env python3

import sys
# import this

if sys.version_info.major == 2:
    print("You are running Python 2, which is no longer supported. Please update to Python 3.")

ords = [81, 64, 75, 66, 70, 93, 73, 72, 1, 92, 109, 2, 84, 109, 66, 75, 70, 90, 2, 92, 79]

print("Here is your flag:")
print("".join(chr(o ^ 0x32) for o in ords))
```

The only thing we should do here is to run this python script.

## The Flag:

```bash
crypto{z3n_0********}
```
