一文看懂Python沙箱逃逸(2)
发布时间:2019-05-22 17:40 所属栏目:20 来源:Macr0phag3
导读:首先,禁用 import os 肯定是不行的,因为 importos importos importos ... 都可以。如果多个空格也过滤了,Python 能够 import 的可不止 import,还有 __import__:__import__('os'),__import__被干了还有 import
首先,禁用 import os 肯定是不行的,因为
都可以。如果多个空格也过滤了,Python 能够 import 的可不止 import,还有 __import__:__import__('os'),__import__被干了还有 importlib:importlib.import_module('os').system('ls') (编辑:ASP站长网) |
相关内容
网友评论
推荐文章
热点阅读