Pyjail
Cool tricks for pyjails
Unicode
If ascii function is not called on your input, you can input unicode characters. Very helpful resource for creating unicode characters: https://lingojam.com/FancyTextGenerator
Note that unicode numbers don't work, so you have to use normal ones.
Reading files
As you know, the most common way to read any file is - print(open('flag').read())
. But what if .
is not allowed? You can use print(list(open('flag')))
. If the file name is flag.txt
then you could use chr()
to get rid of the .
in flag.txt
.
This is very useful and that is why I am mentioning it here.