Transmission
MISC EASY - 278 points
The image given was a row of pixels with different RGB values so the my first idea was to extract each color and try to convert it to a readable format.
The only format I could think of was hex naturally and so I made this script:
from PIL import Image
# open image
im = Image.open("beamoflight.png")
# get ascii values from pixels
pixels = list(im.getdata())
# convert to hex
hexList = []
for pixel in pixels:
hex = ""
for i in pixel:
hex += i.to_bytes(1, byteorder='big').hex()
hexList.append(hex)
with open("hex.txt", "w") as f:
for hex in hexList:
f.write(hex + " ")
Now that I had the hex values of the image, I could convert it to ascii I used https://www.rapidtables.com/ to convert it to ascii.
The text I got had the flag in it.
Last updated
Was this helpful?