Tags: python reversing 

Rating:

# Snakes over cheese

We're given a `.pyc` file to reverse this time. These are compiled Python files.

Let's go ahead and import them into Python, and then display and investigate all functions and variables using `dir()`.

```
$ python2
>> import reversing2
>> dir(reversing2)
```

![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/Snakes-over-cheese.png)

We found 2 interesting variables in the program, `Fqaa` and `XidT`. Upon further inspection, I suspected them of being ord arrays of some sort of string. Upon converting the first one to a string, the flag was found.

Original writeup (https://github.com/shawnduong/ctf-writeups/blob/master/2019-TAMU/Reversing/Snakes-over-cheese.md).