May-18-2018, 04:10 AM
Hm!
Eval? What if the user input is:
There is a safe way to use eval but it is a bit more coding. You have to pass a dictionary with the allowed functions and methods.
Eval? What if the user input is:
import subprocess; subprocess.run(['rm', '-rf', '/'], check=True)
?There is a safe way to use eval but it is a bit more coding. You have to pass a dictionary with the allowed functions and methods.