ctf-writeup/DanteCTF 2023/HellJail/HellJail.py

13 lines
308 B
Python
Raw Normal View History

2023-06-06 01:13:25 +00:00
#!/usr/bin/env python3
from string import ascii_letters
code = input('> ')
if any(c in ascii_letters for c in code):
print('You will never leave this place!')
elif any(c in '.:;,-_@"=/%\\' for c in code):
print('You will never reach this point, but still, you CANNOT leave!')
else:
exec(code)