#!/usr/bin/env python3

import os
import ast

#evil_input = 'os.system("cat /etc/passwd")'
evil_input = '__import__("os").system("cat /etc/passwd")'
code = '{}'.format(evil_input)
#eval(code)
#eval(code, {})
#eval(code, {'__builtins__': {}})
ast.literal_eval(code)
