Tags: misc
Rating: 5.0
Wet - Misc - 500 points
This message was printed and got wet on a lousy mexican rain. Help us recover the flag.
After downloading the the `wet` file we got warped QR Code

I tried all sorts of dewarping functions in Gimp etc, but none of that seems to work.
So I opened beer and vim window and started retyping the QR code into python array, it was tidious work but was done after ~7minutes, this is the code for generating normal version of this QR Code.
```
qrcode = [
[0,0,0,1,1,1,1,0,1,1,1,1,0,1,1,0,1,1,1],
[1,1,0,1,1,1,0,1,0,1,1,1,0,1,0,0,1,1,1],
[1,0,1,0,1,0,1,0,0,1,0,0,0,1,0,1,0,0,1],
[1,1,0,1,1,0,1,1,0,1,0,1,0,0,0,0,0,1,0],
[0,1,1,1,1,1,0,0,0,1,1,0,0,1,0,0,0,1,1],
[0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,1,1,0],
[0,1,1,0,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1],
[0,0,0,0,1,1,0,1,1,1,1,1,0,1,0,1,0,0,0],
[1,0,0,0,0,1,0,1,0,0,0,1,0,1,1,1,1,1,0],
[0,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0],
[0,0,1,1,0,1,0,1,0,0,0,1,0,1,1,0,0,1,0],
[0,1,1,0,1,1,0,1,1,1,1,1,0,1,1,0,0,1,0],
[0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0],
[1,1,1,0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1],
[1,1,1,0,1,1,1,1,1,0,1,1,0,0,0,1,0,0,0],
[0,1,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0],
[1,1,1,0,0,1,1,0,0,0,1,1,1,0,0,1,0,1,0],
[0,1,0,1,0,0,0,0,1,0,1,1,1,1,0,1,1,1,0],
[0,1,0,1,0,1,0,0,0,0,0,1,0,1,1,0,0,1,0]
]
from PIL import Image
import numpy as np
buff = np.zeros((19, 19), dtype=np.uint8)
for x in range(len(qrcode)):
for y in range(len(qrcode[x])):
if qrcode[x][y] == 0:
buff[x][y] = 255
else:
buff[x][y] = 0
image = Image.fromarray(buff)
image.show()
```
Which outputs this:

After scanning the code we got the flag
```
EKO{tirate_un_flag}
```