ctf-resources/thm/aoc23/day16/captcha_img.py

14 lines
289 B
Python
Raw Normal View History

2024-07-03 21:06:15 +02:00
#!/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")