本文介绍了现在rexec已经不见了......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 既然rexec已经不存在了,那么在受限制的环境中执行Python的 上是否有任何代码或信息?在我推出自己的 解决方案之前,确切地说rexec中的安全漏洞究竟在哪里? (我知道获得限制环境的一种方法:屠夫Python 解释器通过删除所有甚至远程危险的解释器,使用 Python仅用于限制执行,并在C ++中执行其他所有操作 嵌入了Python解释器的程序。出于显而易见的原因,我想避免这样做。$ - Rainer Deyke - ra*****@eldwood.com - http://eldwood.com 解决方案 建议你google去年使用clpy来获取''rexec' 。还可以查看去年秋天的 py-dev摘要,讨论为什么要删除。 TJR Rainer Deyke < RA ***** @ eldwood.com>写道: 我可以安排这个。 ;-) - Barry Warsaw& Fred Drake Now that rexec is gone, is there any code or information available onexecuting Python in a restricted environment? And before I roll my ownsolution, exactly where the security holes in rexec anyway?(I know one way of getting a restricted environment: butcher the Pythoninterpreter by removing everything that''s even remotely dangerous, usePython only for restricted execution, and do everything else in a C++program that embeds the butchered Python interpreter. I''d like to avoiddoing that, for obvious reasons.)--Rainer Deyke - ra*****@eldwood.com - http://eldwood.com 解决方案Suggest you google last year of c.l.py for ''rexec''. Also check outpy-dev summaries of last fall for discussion of why removed.TJRI can arrange for this. ;-) -- Barry Warsaw & Fred Drake 这篇关于现在rexec已经不见了......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
06-10 00:50