cve-2024-38477/burp_random.py
2025-06-05 15:09:30 +02:00

13 lines
320 B
Python

#!/usr/bin/env python3
import random
import string
f = open("random.txt", "w")
for i in range(0, 100):
# Add [0], otherwise TypeError exception triggered
r = ''.join(random.choices(string.ascii_lowercase + string.digits + string.punctuation)[0] for _ in range(10))
print(r)
f.write(f"{r}\n")
f.close()