设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 运营中心 > 建站资源 > 策划 > 正文

一文看懂Python沙箱逃逸(2)

发布时间:2019-05-22 17:40 所属栏目:20 来源:Macr0phag3
导读:首先,禁用 import os 肯定是不行的,因为 importos importos importos ... 都可以。如果多个空格也过滤了,Python 能够 import 的可不止 import,还有 __import__:__import__('os'),__import__被干了还有 import

首先,禁用 import os 肯定是不行的,因为

  1. import  os 
  2. import   os 
  3. import    os 
  4. ... 

都可以。如果多个空格也过滤了,Python 能够 import 的可不止 import,还有 __import__:__import__('os'),__import__被干了还有 importlib:importlib.import_module('os').system('ls')

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读