Eevee Jail - 1

We are given the jail source:

#!/usr/local/bin/python
from shell import shell

blacklist = ["flag", "locals", "vars", "\\", "{", "}"]

banner = '''
========================
=    Eevee's Jail 1    =
========================
'''

print(banner)

for _ in [shell]:
    while True:
        try:
            huh = ascii(input("[+] > "))
            if any(no in huh for no in blacklist):
                raise ValueError("[!] Mission Failed. Try again.")
            exec(eval(huh))
        except Exception as err:
            print(f"{err}")

It blacklists some of these strings as input

and later after that is uses:

It is pretty straight forward, we can import the os module and call a system shell

Flag: bbctf{is_th3r3_another_w4y_70_solv3_this?}

Last updated