disable_functions Bypass:突破disable_functions达到命令执行的Shell
disable_functions
为了安全,运维人员会禁用PHP的一些“危险”函数,例如:
dl,eval,exec,system,passthru,popen,proc_open,pcntl_exec,shell_exec,mail,imap_open,imap_mail,putenv,ini_set,apache_setenv,symlink,link 等
将其写在php.ini
配置文件中,就是我们所说的disable functions
了。
Bypass disable_functions Shell
Bypass涉及禁用函数列表:
dl,exec,system,passthru,popen,proc_open,pcntl_exec,shell_exec,mail,imap_open,imap_mail,putenv,ini_set,apache_setenv,symlink,link
shell绕过已实现的方式:
- 常规绕过: exec、shell_exec、system、passthru、popen、proc_open
- ld_preload绕过: mail、imap_mail、error_log、mb_send_mail
- pcntl_exec
- imap_open
- fastcgi
- com
- apache mod-cgi
- env - docker环境, 用于测试各类绕过exp
- papar - bypass原理
- exp - bypass脚本
disable_functions
并执行系统命令。
适用版本
- 7.1 - all versions to date
- 7.2 < 7.2.19 (released: 30 May 2019)
- 7.3 < 7.3.6 (released: 30 May 2019)
关注公众号:拾黑(shiheibook)了解更多
[广告]赞助链接:
四季很好,只要有你,文娱排行榜:https://www.yaopaiming.com/
让资讯触达的更精准有趣:https://www.0xu.cn/

随时掌握互联网精彩
赞助链接
排名
热点
搜索指数
- 1 习近平同普京出席红场阅兵式 7904313
- 2 普京警卫携带的黑色手提箱抢镜 7808723
- 3 5月10日起结婚离婚不需要户口本 7713167
- 4 “中国排面”一步一帅 7617989
- 5 巴基斯坦称已摧毁77架印度无人机 7522778
- 6 华春莹丁真同框 7427230
- 7 贵州发现罕见幽灵之花 7332260
- 8 存款利率全面迈向“1时代” 7231618
- 9 何超莲回复窦骁生日祝福 7142696
- 10 经济大省挑大梁 7040381