ctf-resources/htb/hacktheboo2024/coding/[Very Easy] reversal/challenge/challenge.py

8 lines
159 B
Python
Raw Permalink Normal View History

2024-10-23 11:10:43 +02:00
import random
def gen_question():
with open('story.txt') as f:
text = random.choice(f.readlines()).strip()
return f'{text}', f'{text[::-1]}'