xiaoming'}
>>> eval("__import__('os').system('uname')", {})
Linux
0
从这三段代码来看,第一个很明显做计算用,第二个把string类型数据转换成python..., 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError... 'OverflowError', 'PendingDeprecationWarning', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StandardError...most recent call last):
File "", line 1, in
File "", line 1, in
NameError...: name '__import__' is not defined
现在就是提示__import__未定义,不能成功执行了,看情况是安全了吧?