php 文本前面被加了反斜杆,博客 – 联发多彩网页技术博客

$version=”19.08.06SF”;

date_default_timezone_set(‘Asia/Shanghai’) && error_reporting(0);

function _GET($n) { return isset($_GET[$n]) ? $_GET[$n] : NULL; }

function _SERVER($n) { return isset($_SERVER[$n]) ? $_SERVER[$n] : ‘[undefine]’; }

function memory_usage() { $memory = ( ! function_exists(‘memory_get_usage’)) ? ‘0’ : round(memory_get_usage()/1024/1024, 2).’MB’; return $memory;}

function micro_time_float() { $mtime = microtime(); $mtime = explode(‘ ‘, $mtime); return $mtime[1] + $mtime[0];}

function get_hash() {

return sha1(uniqid());

}

@session_start();

$currentTime = time();

$changeTime = 86400;

$rand = ”;

if(isset($_SESSION[‘time’]) and ($currentTime – $_SESSION[‘time’]) < $changeTime) {

$rand = $_SESSION[‘rand’];

}else{

$_SESSION[‘time’] = $currentTime;

$_SESSION[‘rand’] = $rand = get_hash();

}

@header(“content-Type: text/html; charset=utf-8″);

define(‘YES’, ‘已开启’);

define(‘NO’, ‘未开启’);

if ($_POST[‘mysqlPort’]==””) {

$host=”127.0.0.1″;

} else {

$host=”127.0.0.1:”.$_POST[‘mysqlPort’];

}

$Info = array();

$Info[‘php_ini_file’] = function_exists(‘php_ini_loaded_file’) ? php_ini_loaded_file() : ‘[undefine]’;

$mcrypt = get_extension_funcs(‘mcrypt’) ? YES : NO;

$xmlrpc = get_extension_funcs(‘xmlrpc’) ? YES : NO;

$fileinfo = get_extension_funcs(‘fileinfo’) ? YES : NO;

$ftp = get_extension_funcs(‘ftp’) ? YES : NO;

$link = @mysqli_connect($host, $_POST[‘mysqlUser’], $_POST[‘mysqlPassword’]);

$errno = mysqli_connect_errno();

$pinfo = $rand;

$up_start = micro_time_float();

if (_GET($pinfo) == ‘phpinfo’) {

if (function_exists(‘phpinfo’)) phpinfo();

else echo “PHPINFO函数已被禁用无法正常显示详细信息!”;

exit;

}

?>

-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

UPUPW PHP探针安全版

*{margin:0px;padding:0px;}

body {background-color:#FFFFFF;color:#000000;margin:0px;font-family:”\5fae\8f6f\96c5\9ed1″,tahoma,arial,sans-serif;}

input {text-align:center;width:200px;height:20px;padding:5px;}

a:link {color:green; text-decoration:none;}

a:visited {color:green;text-decoration:none;}

a:active {color:green;text-decoration:none;}

a:hover {color:#ed776b;text-decoration:none;}

table {border-collapse:collapse;margin:10px 0px;clear:both;}

.inp tr th, td {padding:2px 5px 2px 5px;vertical-align:center;text-align:center;height:30px; border:1px #FFFFFF solid;}

.head1 {background-color:#2c3e50;width:100%;font-size:36px;color:#ffffff; padding-top: 10px; text-align: center; font-family: Georgia, “Times New Roman”, Times, serif; font-weight: bold; }

.head2 {background-color:#1abc9c;width:100%;font-size:18px;height:18px;color:#ffffff;}

.el {text-align: center; background-color: #d3e1e5; }

.er {text-align: right; background-color: #d3e1e5; }

.ec {text-align: center; background-color: #1abc9c; font-weight: bold; color: #FFFFFF;}

.fl {text-align: left; background-color: #ecf0f1; color: #505050; }

.fr {text-align:right;background-color:#eeeeee;color:#505050;}

.fc {text-align: center; background-color: #ecf0f1; color: #505050; }

.ft {text-align:center;background-color: #D9F9DE;color:#060;}

a.arrow {font-family:webdings,sans-serif;font-size:10px;}

a.arrow:hover {color:#ff0000;text-decoration:none;}

–>

服务器信息PHP功能组件开启状态
服务器域名=_SERVER(‘SERVER_NAME’)?>MySQLi Client组件=get_extension_funcs(‘mysqli’) ? YES : NO ?>
服务器端口

=($link)?_SERVER(‘SERVER_ADDR’).’:’._SERVER(‘SERVER_PORT’):”数据库连接测试错误拒绝显示”?>

else echo “数据库连接测试成功后显示”;

?>

cURL组件=get_extension_funcs(‘curl’) ? YES : NO ?>
服务器环境=stripos(_SERVER(‘SERVER_SOFTWARE’), ‘PHP’)?_SERVER(‘SERVER_SOFTWARE’):_SERVER(‘SERVER_SOFTWARE’)?>GD library组件=get_extension_funcs(‘gd’) ? YES : NO ?>
PHP运行环境=PHP_SAPI .’ PHP/’.PHP_VERSION?>EXIF信息查看组件=get_extension_funcs(‘exif’) ? YES : NO ?>
PHP配置文件<?php if(isset($_POST[‘act’])) {?>

=($link)?htmlentities($Info[‘php_ini_file’]):”数据库连接测试错误拒绝显示”?>

else echo “数据库连接测试成功后显示”;

?>

OpenSSL协议组件=get_extension_funcs(‘openssl’) ? YES : NO ?>
当前网站目录<?php if(isset($_POST[‘act’])) {?>

=($link)?htmlentities(_SERVER(‘DOCUMENT_ROOT’)):”数据库连接测试错误拒绝显示”?>

else echo “数据库连接测试成功后显示”;

?>

if(version_compare(PHP_VERSION,’7.0.0′, ‘

echo “

Mcrypt加密处理组件”.$mcrypt.””;

}else{

echo “

FTP组件”.$ftp.””;

}?>

服务器标准时

=gmdate(‘Y-m-d H:i:s’, time() + 3600 * 8)?>

if(version_compare(PHP_VERSION,’5.3.0′, ‘

echo “

XML-RPC组件”.$xmlrpc.””;

}else{

echo “

FileInfo组件”.$fileinfo.””;

}?>

便捷管理入口<?php if(isset($_POST[‘act’])) {?>

=($link)?”PHPINFO详细信息”:”数据库连接测试错误拒绝显示”?>

else echo “数据库连接测试成功后显示”;

?>

Mbstring组件=get_extension_funcs(‘mbstring’) ? YES : NO ?>
PHP Zend解密组件PHP 缓存优化组件
Zend OptimizerZend GuardLoaderionCubeLoaderSourceGuardianWinCacheZend OPcacheRedisMemcache
=get_extension_funcs(‘Zend Optimizer’) ? YES.’ / ‘.OPTIMIZER_VERSION : NO ?>=get_extension_funcs(‘Zend Guard Loader’) ? YES : NO ?>=get_extension_funcs(‘ionCube Loader’) ? YES : NO ?>=get_extension_funcs(‘SourceGuardian’) ? YES : NO ?>=get_extension_funcs(‘WinCache’) ? YES : NO ?>=get_extension_funcs(‘Zend OPcache’) ? YES : NO ?>=phpversion(‘redis’) ? YES : NO ?>=get_extension_funcs(‘memcache’) ? YES : NO ?>
=PHP_SAPI .’ PHP/’.PHP_VERSION?>不完全包括以上组件,不同PHP版本能适配的外部扩展不同,为了性能以上组件除网站特别要求外没必要全开启!
PHP重要参数检测
Memory限制Upload限制POST限制Execution超时Input超时Socket超时
=ini_get(‘memory_limit’)?>=ini_get(‘upload_max_filesize’)?>=ini_get(‘post_max_size’)?>=ini_get(‘max_execution_time’).’s’?>=ini_get(‘max_input_time’).’s’?>=ini_get(‘default_socket_timeout’).’s’?>
PHP已编译模块检测

$able=get_loaded_extensions();

foreach ($able as $key=>$value) {

if ($key!=0 && $key%13==0) {

echo ‘
’;

}

echo “$value    ”;

}

?>

”>
数据库连接测试
请及时登录phpMyAdmin修改数据库默认用户名和密码
数据库服务器数据库端口
数据库用户名数据库用户密码
数据库测试结果

if ($link) $str1 = ‘连接正常 (‘.mysqli_get_server_info($link).’)’;

else $str1 = ‘连接错误
’.mysqli_connect_error();

?>

=$host?>=$str1?>

<?php $up_time = sprintf(‘%0.6f’, micro_time_float() – $up_start);?>UPUPW探针版本:<?php echo $version?>   页面执行时间 <?php echo $up_time?> 秒   消耗内存 <?php echo memory_usage();?>


© <?php echo date(“Y”)?> UPUPW PHP探针安全版,站点内容与本程序无关。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值