Tags: pil python 

Rating:

On connection to the host address 41.231.53.40:9090 we are greeted by a base64 dump of an image.

The decoded image is different each time but looks like the following:



The image is 200x200px with each section 10px in width. So using the python image library we can untwist it to look like the following:



Then we can use pytesser to OCR the text from the image and send it back to the host to get the flag. 
I also converted the pytesser output to uppercase as it read some chars as lowercase. 
Here is the full python:

http://pastebin.com/6aN4D4qj

Pirate