ctf-resources/thm/aoc23/day16/captcha_img.py
2024-07-03 21:06:15 +02:00

13 lines
289 B
Python

#!/usr/bin/env python3
from captcha.image import ImageCaptcha
import random
amount = 99999
count = 10000
while count <= amount:
image = ImageCaptcha(width = 160, height = 60)
text = str(count)
count += 1
data = image.generate(text)
image.write(text, (text) + ".png")