如何禁止用户使用雅黑php探针使用教程

php探针,在phpinfo()函数被禁用的情况下
header("content-Type: text/ charset=utf-8");
header("Cache-Control: no-cache,
must-revalidate");&&
header("Pragma: no-cache");
error_reporting(0);
ob_end_flush();
&!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&
&html xmlns="http://www.w3.org/1999/xhtml"&
&meta http-equiv="Pragma" content="No-cache" /&
&meta http-equiv="Expires" content="0" /&
&meta http-equiv="cache-control" content="private" /&
&meta http-equiv="Content-Type" content="text/
charset=utf-8"
/&//[color=red]加了这句,看看能不能解决linux下显示乱码的问题?[/color]
&title&PHP 探针 v1.0&/title&
&style type="text/css"&
body{text-align:margin-top:20background-color:#a9b674;}
#overview{width:700margin:0text-align:}
a{text-decoration:color:#992700;}
.strong{color:#992700;}
.basew{width:300}
&div id="overview"&
&div id="copyright"&版权信息
href="hello.php?typ=baseinfo"&[基本信息]&/a&&&a
href="hello.php?typ=superinfo"&[高级信息]&/a&
if (function_exists("phpinfo")){
&&&&echo'&a
href="hello.php?typ=phpinfo"&[phpinfo]&/a&';}
echo'&br /&php探针v1.0 by MKDuse(blueidea-id)&br
/&此程序代码,可免费使用;但不得用于商业用途;完全转载或使用此代码,请保留版权信息;&br
/&欢迎指正错误提建议,QQ:&/div&';
if (empty($_GET['typ'])){
&&&&baseinfo();}
switch ($_GET['typ']){
case 'phpinfo':
phpinfoview();
case 'superinfo':
superinfo();
case 'baseinfo':
baseinfo();
baseinfo();}
function getime()
&&$t = gettimeofday();
&&return (float)($t['sec'] +
$t['usec']/1000000);
function baseinfo(){
echo '&h1&基本信息&/h1&';
$arr[]=array("Current PHP version:",phpversion());
$arr[]=array("Zend engine version:",zend_version());
$arr[]=array("服务器版本",$_SERVER['SERVER_SOFTWARE']);
$arr[]=array("ip地址",$_SERVER['REMOTE_HOST']);//ip
$arr[]=array("域名",$_SERVER['HTTP_HOST']);
$arr[]=array("协议端口",$_SERVER['SERVER_PROTOCOL'].'&&'.$_SERVER['SERVER_PORT']);
$arr[]=array("站点根目录",$_SERVER['PATH_TRANSLATED']);
$arr[]=array("服务器时间",date('Y年m月d日,H:i:s,D'));
$arr[]=array("当前用户",get_current_user());
$arr[]=array("操作系统",php_uname('s').php_uname('r').php_uname('v'));
$arr[]=array("include_path",ini_get('include_path'));
$arr[]=array("Server API",php_sapi_name());
$arr[]=array("error_reporting
level",ini_get("display_errors"));
$arr[]=array("POST提交限制",ini_get('post_max_size'));
$arr[]=array("upload_max_filesize",ini_get('upload_max_filesize'));
$arr[]=array("脚本超时时间",ini_get('max_execution_time').'秒');
if (ini_get("safe_mode")==0){
$arr[]=array("PHP安全模式(Safe_mode)",'off');}
$arr[]=array("PHP安全模式(Safe_mode)",'on');}
if (function_exists('memory_get_usage')){
$arr[]=array("memory_get_usage",ini_get('memory_get_usage'));}
//$arr[]=array("可用空间",intval(diskfreespace('/')/(1024 *
1024))."M");
echo'&table&';
for($i=0;$i&count($arr);$i++)
&&&&$overview='&tr&&td
class="basew"&'.$arr[$i][0].'&/td&&td&'.$arr[$i][1].'&/td&&/tr&';
echo'&/table&';
echo '&h2&服务器性能测试&/h2&';
echo'&table&&tr&&td&服务器&/td&&td&整数运算&br
/&50万次加法(1+1)&/td&&td&浮点运算&br
/&50万次平方根(3.14开方)&/td&&/tr&';
echo'&tr&&td&MKDuse的机子(P4 1.5G 256DDR winxp
sp2)&/td&&td&465.08ms&/td&&td&466.66ms&/td&&/tr&';
$time_start=getime();
for($i=0;$i&=500000;$i++);
{$count=1+1;}
$timea=round((getime()-$time_start)*1000,2);
class="strong"&&td&当前服务器&/td&&td&'.$timea.'ms&/td&';
$time_start=getime();
for($i=0;$i&=500000;$i++);
{sqrt(3.14);}
$timea=round((getime()-$time_start)*1000,2);
'&td&'.$timea.'ms&/td&&/tr&&/table&';
&script language="javascript" type="text/javascript"&
function gettime()
&&time=new Date();
time.getTime();&&
start_time=gettime();
echo '&h2&带宽测试&/h2&';
for ($i=0;$i&100;$i++){
"&!--#########0#########0#########0#########0#########0#########0#########0#########012345--&";}
&p id="dk"&&/p&
&script language="javascript" type='text/javascript'&
timea=gettime()-start_
netspeed=Math.round(10/timea*1000);
document.getElementByIdx("dk").innerHTML="向客户端发送10KB数据,耗时"+timea+"ms&br
/&您与此服务器的连接速度为"+netspeed+"kb/s";
echo'&h2&已加载的扩展库(enable)&/h2&&div&';
$arr =get_loaded_extensions();
foreach($arr as $value){
$value.'&br /&';}
echo'&/div&&h2&禁用的函数&/h2&&p&';
$disfun=ini_get('disable_functions');
if (empty($disfun)){
&&&&echo'没有禁用&/p&';}
echo ini_get('disable_functions').'&/p&';}
function superinfo(){
echo'&h1&高级信息&/h1&&p&PHP_INI_USER 1
配置选项可用在用户的 PHP 脚本或Windows 注册表中&br&
PHP_INI_PERDIR 2 配置选项可在 php.ini, .htaccess 或 httpd.conf
中设置 &br&PHP_INI_SYSTEM 4 配置选项可在 php.ini or
httpd.conf 中设置 &br&PHP_INI_ALL 7
配置选项可在各处设置&/p&';
$arr1=ini_get_all();
for ($i=0;$i&count($arr1);$i++)
$arr2=array_slice($arr1,$i,1);
print_r($arr2);
echo '&br /&';
function phpinfoview(){
&&&&phpinfo();
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。服务器参数
服务器域名/IP地址
.cn(183.60.106.33)
服务器标识
.cn 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT
服务器操作系统
Linux &内核版本:2.6.18-194.el5
服务器解译引擎
服务器语言
服务器端口
服务器主机名
/data/www/newphpcms
管理员邮箱
/data/www/newphpcms/p.php
服务器实时数据
服务器当前时间
服务器已运行时间
183.944&GB
CPU型号 [4核]
Intel(R) Xeon(R) CPU
@ 2.66GHz | 频率: | 二级缓存:3072 KB
| Bogomips:5320.00 ×4
内存使用状况
物理内存:共
<font color='#CC GB
Cache化内存为 2.745 GB
% | Buffers缓冲为
真实内存使用
, 真实内存空闲
SWAP区:共
系统平均负载
0.03 0.01 0.00 1/117
网络使用状况
已接收 : 0.00698 GB
已发送 : 0.00698 GB
已接收 : 13.05577 GB
已发送 : 153.7316 GB
已接收 : 0 GB
已发送 : 0 GB
已接收 : 0 GB
已发送 : 0 GB
PHP已编译模块检测
Core&&date&&ereg&&libxml&&openssl&&pcre&&sqlite3&&zlib&&ctype&&curl&&dom&&fileinfo&&filter&&ftp&&gd&&gettext&&hash&&iconv&&json&&mbstring&&mcrypt&&mysql&&SPL&&mysqli&&PDO&&pdo_sqlite&&session&&posix&&Reflection&&standard&&SimpleXML&&sockets&&SQLite&&Phar&&tokenizer&&xml&&xmlreader&&xmlwriter&&cgi-fcgi&&memcache&&XCache&&
PHP相关参数
PHP信息(phpinfo):
PHP版本(php_version):
PHP运行方式:
脚本占用最大内存(memory_limit):
PHP安全模式(safe_mode):
POST方法提交最大限制(post_max_size):
上传文件最大限制(upload_max_filesize):
浮点型数据显示的有效位数(precision):
脚本超时时间(max_execution_time):
socket超时时间(default_socket_timeout):
PHP页面根目录(doc_root):
用户根目录(user_dir):
dl()函数(enable_dl):
指定包含文件目录(include_path):
显示错误信息(display_errors):
自定义全局变量(register_globals):
数据反斜杠转义(magic_quotes_gpc):
"&?...?&"短标签(short_open_tag):
"&% %&"ASP风格标记(asp_tags):
忽略重复错误信息(ignore_repeated_errors):
忽略重复的错误源(ignore_repeated_source):
报告内存泄漏(report_memleaks):
自动字符串转义(magic_quotes_gpc):
外部字符串自动转义(magic_quotes_runtime):
打开远程文件(allow_url_fopen):
声明argv和argc变量(register_argc_argv):
Cookie 支持:
拼写检查(ASpell Library):
高精度数学运算(BCMath):
PREL相容语法(PCRE):
PDF文档支持:
SNMP网络管理协议:
VMailMgr邮件处理:
Curl支持:
SMTP支持:
SMTP地址:
默认支持函数(enable_functions):
被禁用的函数(disable_functions):
passthru&&exec&&system&&popen&&chroot&&escapeshellcmd&&escapeshellarg&&shell_exec&&proc_open&&proc_get_status&&
XML解析支持:
Session支持:
Socket支持:
Calendar支持
允许URL打开文件:
GD库支持:
bundled (2.0.34 compatible)
压缩文件支持(Zlib):
IMAP电子邮件系统函数库:
历法运算函数库:
正则表达式函数库:
WDDX支持:
Iconv编码转换:
mbstring:
高精度数学运算:
LDAP目录协议:
MCrypt加密处理:
哈稀计算:
第三方组件
ZendGuardLoader[启用]
eAccelerator
数据库支持
MySQL 数据库:
ODBC 数据库:
Oracle 数据库:
SQL Server 数据库:
dBASE 数据库:
mSQL 数据库:
SQLite 数据库:
√ SQLite3 Ver 3.7.7.1
Hyperwave 数据库:
Postgre SQL 数据库:
Informix 数据库:
DBA 数据库:
DBM 数据库:
FilePro 数据库:
SyBase 数据库:
MySQL数据库连接检测
请输入您要检测的函数:
邮件发送检测
请输入您要检测的邮件地址:服务器参数
服务器域名/IP地址
.cn(127.0.0.1)
服务器标识
.cn 2.6.32-504.16.2.el6.x86_64 #1 SMP Wed Apr 22 06:48:29 UTC
服务器操作系统
Linux &内核版本:2.6.32-504.16.2.el6.x86_64
服务器解译引擎
服务器语言
服务器端口
服务器主机名
/home/wwwroot/sft
管理员邮箱
/home/wwwroot/sft/p.php
服务器实时数据
服务器当前时间
服务器已运行时间
CPU型号 [2核]
Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz | 频率: | 二级缓存:15360 KB
| Bogomips:4200.00 ×2
内存使用状况
物理内存:共
<font color='#CC GB
Cache化内存为 1.149 GB
% | Buffers缓冲为
真实内存使用
, 真实内存空闲
SWAP区:共
系统平均负载
0.00 0.00 0.00 1/258
网络使用状况
已接收 : 18.15641 GB
已发送 : 18.15641 GB
已接收 : 3.15193 GB
已发送 : 23.9365 GB
已接收 : 0.00947 GB
已发送 : 0 GB
PHP已编译模块检测
Core&&date&&ereg&&libxml&&openssl&&pcre&&sqlite3&&zlib&&bcmath&&ctype&&curl&&dom&&filter&&ftp&&gd&&gettext&&hash&&iconv&&json&&mbstring&&mcrypt&&SPL&&session&&standard&&mysqlnd&&PDO&&pdo_mysql&&pdo_sqlite&&Phar&&posix&&Reflection&&mysqli&&shmop&&SimpleXML&&soap&&sockets&&SQLite&&mysql&&sysvsem&&tokenizer&&xml&&xmlreader&&xmlrpc&&xmlwriter&&zip&&apache2handler&&mhash&&Zend Guard Loader&&
PHP相关参数
PHP信息(phpinfo):
PHP版本(php_version):
PHP运行方式:
APACHE2HANDLER
脚本占用最大内存(memory_limit):
PHP安全模式(safe_mode):
POST方法提交最大限制(post_max_size):
上传文件最大限制(upload_max_filesize):
浮点型数据显示的有效位数(precision):
脚本超时时间(max_execution_time):
socket超时时间(default_socket_timeout):
PHP页面根目录(doc_root):
用户根目录(user_dir):
dl()函数(enable_dl):
指定包含文件目录(include_path):
显示错误信息(display_errors):
自定义全局变量(register_globals):
数据反斜杠转义(magic_quotes_gpc):
"&?...?&"短标签(short_open_tag):
"&% %&"ASP风格标记(asp_tags):
忽略重复错误信息(ignore_repeated_errors):
忽略重复的错误源(ignore_repeated_source):
报告内存泄漏(report_memleaks):
自动字符串转义(magic_quotes_gpc):
外部字符串自动转义(magic_quotes_runtime):
打开远程文件(allow_url_fopen):
声明argv和argc变量(register_argc_argv):
Cookie 支持:
拼写检查(ASpell Library):
高精度数学运算(BCMath):
PREL相容语法(PCRE):
PDF文档支持:
SNMP网络管理协议:
VMailMgr邮件处理:
Curl支持:
SMTP支持:
SMTP地址:
默认支持函数(enable_functions):
被禁用的函数(disable_functions):
passthru&&exec&&system&&chroot&&scandir&&chgrp&&chown&&shell_exec&&proc_open&&proc_get_status&&popen&&ini_alter&&ini_restore&&dl&&openlog&&syslog&&readlink&&symlink&&popepassthru&&stream_socket_server&&
XML解析支持:
Session支持:
Socket支持:
Calendar支持
允许URL打开文件:
GD库支持:
bundled (2.1.0 compatible)
压缩文件支持(Zlib):
IMAP电子邮件系统函数库:
历法运算函数库:
正则表达式函数库:
WDDX支持:
Iconv编码转换:
mbstring:
高精度数学运算:
LDAP目录协议:
MCrypt加密处理:
哈稀计算:
第三方组件
ZendGuardLoader[启用]
eAccelerator
数据库支持
MySQL 数据库:
ODBC 数据库:
Oracle 数据库:
SQL Server 数据库:
dBASE 数据库:
mSQL 数据库:
SQLite 数据库:
√ SQLite3 Ver 3.7.7.1
Hyperwave 数据库:
Postgre SQL 数据库:
Informix 数据库:
DBA 数据库:
DBM 数据库:
FilePro 数据库:
SyBase 数据库:
MySQL数据库连接检测
请输入您要检测的函数:
邮件发送检测
请输入您要检测的邮件地址:}

我要回帖

更多关于 雅黑php探针使用教程 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信