Why Eval And Exec Are The WORST Python Functions [Tech Rants]

preview_player
Показать описание
In this video we go over the Eval and exec functions in python, and discuss what it's for and why it's really insecure. The video is intended for educational purposes only - please be kind to each others code!

You can checkout my live stream content on twitch at:
Рекомендации по теме
Комментарии
Автор

Some of us just like to live dangerously.

mthees
Автор

All these problems are easily solved if you do a search through regular expressions and delete words such as os, import

rubidi
Автор

I've also got total control of my machine. I'm terrified by what I can do. I can even "su" to root!!!

squarerootof
Автор

To solve your plot-options-problem. Append the plot-options to a list, compare them to a list of allowed options, then just run the exec() on the ones that match. Also i like your function-plotter. Code available?

QuarktaschemitSenf
visit shbcf.ru