50 shades of stephane legar
Mis à jour
Mis à jour
from PIL import Image
from os.path import join
BASE = r"path_to_folder"
for i in range(27):
img = Image.open(join(BASE, f"image{i}.png"))
print(img.getpixel((0, 0)))
# (99, 121, 98, 120)
# (110, 123, 51, 127)
# [...]
# (108, 109, 52, 214)
# (48, 125, 0, 236)from PIL import Image
from os.path import join
BASE = r"path_to_folder"
flag = ""
for i in range(27):
img = Image.open(join(BASE, f"image{i}.png"))
r, g, b, a = img.getpixel((0, 0))
flag += chr(r) + chr(g) + chr(b)
print(flag)
# cybn{3n_vr41_1l_d4n5417_p45_51_b13n_qu3_c4_1l_f3r4_m13ux_l4_pr0ch41n3_f015_lm40}