easyctf-2017/self-modifier/flag_genner.py
John W 8507334251 Fixed an issue with the Morphin problem
Forgot to note the sig figs
2017-03-14 02:33:34 -05:00

12 lines
260 B
Python

# Generates random flag thing
import random
flag_temp = '{%s}'
def gen_flag(len):
val = ''
for x in range(len):
val += random.choice(list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'))
return flag_temp % val
print(gen_flag((4*3)-2))