python eval in unsafe function test

A content, view files in the system directory

View the file directory contents

Second, view disk usage

Disk Usage

Third, you can even change the content of the document

Change the file contents

Fourth, the delete operation

Delete Files

to sum up:

  • eval can be used to execute any script has execute permissions, there is a huge security issue, must be used with caution

Guess you like

Origin blog.51cto.com/14612701/2452494