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 人民城市人民建 人民城市为人民 7904677
- 2 上海一面馆一碗面1588 收10%服务费 7809258
- 3 网红:上海政府送了我200平房子 7712732
- 4 警惕这些高温防暑误区 7619323
- 5 男婴离世家长获赔88万 律师拿走55万 7520261
- 6 父母代签孩子清华录取通知书时哭了 7424371
- 7 前央视主持人全网寻跪继父坟前的他 7328002
- 8 官方呼吁不要对16岁产妇二次伤害 7232991
- 9 警察称能从缅甸捞人 已被纪监委带走 7138124
- 10 印度大规模猥亵事件478名男性被捕 7039268