📄 phpcheck.php
字号:
<?
/*####################################*/
/*# 泽舟PHP探针 V1.3 #*/
/*# 作者:怀才不遇 #*/
/*# 泽舟 http://XUYIZHI.Y365.COM #*/
/*# 电子邮件 xyzhtml@163.com #*/
/*#编写时参考了其他一些探针 #*/
/*#在此向其作者表示感谢 #*/
/*# 转载本程序时请保留这些信息 #*/
/*#使用方法:直接上传即可 #*/
/*####################################*/
$dbhost="localhost";
if($ft=='fphp'){
phpinfo();
break;
}
function temp($temp){
if($temp==1){echo'<td><font color=green><b>√</b></font></td>';}
else{echo'<td><font color=red><b>×</b></font></td>';}
}
/*获取服务器信息*/
$info[1][0] = $SERVER_NAME;//主机名
$info[2][0] = getenv(SERVER_ADDR); //服务器IP
$info[3][0] = getenv(SERVER_PORT);//端口
$info[4][0] = PHP_OS; //服务器操作系统
$info[5][0] = date("n月j日H点i分s秒"); //服务器时间
$info[6][0] = $DOCUMENT_ROOT. "<br>".$PATH_INFO; //绝对路径
$info[7][0] = PHP_VERSION.$SERVER_SOFTWARE; //php及web服务器版本
$info[8][0] = intval(diskfreespace(".") / (1024 * 1024).'M'); //服务器空间大小
$test[1][0] = $_SERVER[SERVER_NAME]; //服务器域名
$test[2][0] = get_cfg_var("memory_limit")?get_cfg_var("memory_limit"):"无"; //单个脚本运行时可占用的最大内存
$test[3][0] = get_cfg_var("upload_max_filesize")?get_cfg_var("upload_max_filesize"):"不允许上传附件"; //用PHP脚本上传文件大小限制
$test[4][0] = get_cfg_var("disable_functions")?get_cfg_var("disable_functions"):"无"; //被屏蔽的函数
$test[5][0] = get_cfg_var("post_max_size"); //post方法提交内容限制
$test[6][0] = get_cfg_var("max_execution_time"); //脚本超时时间
$test[7][0] = getenv("HTTP_ACCEPT_LANGUAGE"); //服务器语种
$test[8][0] = get_current_user(); //用户
$sql[1][0] = function_exists("mysql_close"); //mysql数据库
$sql[2][0] = function_exists("ora_close"); //ora数据库
$sql[3][0] = function_exists("odbc_close"); //odbc数据库
$sql[4][0] = function_exists("OCILogOff");//Oracle 8 数据库
$sql[5][0] = function_exists("mssql_close");//SQL Server数据库
$sql[6][0] = function_exists("msql_close");//msql数据库
$sql[7][0] = function_exists("hw_close");//Hyperwave数据库
$sql[8][0] = function_exists("dbase_close");//dbase数据库
$obj[1][0] = get_magic_quotes_runtime("Client API version");//Client API version
$obj[2][0] = get_magic_quotes_gpc("smtp");//SMTP
$obj[3][0] = get_cfg_var("safe_mode"); //PHP安全模式(Safe_mode)
$obj[4][0] = get_magic_quotes_gpc("XML Support");//XML 支持
$obj[5][0] = get_magic_quotes_gpc("FTP support");//FTP 支持
$obj[6][0] = get_magic_quotes_gpc("Internal Sendmail Support for Windows 4");//Sendmial
$obj[7][0] = get_cfg_var("display_errors"); //显示错误信息
$obj[8][0] = get_cfg_var("allow_url_fopen");//允许使用URL打开文件
$qobj[1][0] = function_exists("gzclose"); //压缩文件支持(Zlib)
$qobj[2][0] = function_exists("session_start"); //Session支持
$qobj[3][0] = function_exists("fsockopen"); //Socket支持
$qobj[4][0] = function_exists("preg_match");//PREL相容语法 PCRE
$qobj[5][0] = function_exists("imageline");//图形处理 GD Library
$qobj[6][0] = function_exists("FDF_close");//FDF表单资料格式
$qobj[7][0] = function_exists("zend_version");//ZEND支持
$qobj[8][0] = function_exists("snmpget");//SNMP网络管理协议
/*参数名*/
$info[1][1] = "主机名";
$info[2][1] = "服务器IP";
$info[3][1] = "端口";
$info[4][1] = "服务器操作系统";
$info[5][1] = "服务器时间";
$info[6][1] = "绝对路径";
$info[7][1] = "php及web服务器版本";
$info[8][1] = "服务器空间大小";
$test[1][1] = "服务器域名";
$test[2][1] = "脚本运行时可占最大内存";
$test[3][1] = "脚本上传文件大小限制";
$test[4][1] = "被屏蔽的函数";
$test[5][1] = "post方法提交内容限制";
$test[6][1] = "脚本超时时间";
$test[7][1] = "服务器语种";
$test[8][1] = "计算机用户";
$sql[1][1] = "mysql数据库";
$sql[2][1] = "Oracle数据库";
$sql[3][1] = "OBDC数据库";
$sql[4][1] = "Oracle 8 数据库";
$sql[5][1] = "SQL Server数据库";
$sql[6][1] = "msql数据库";
$sql[7][1] = "Hyperwave数据库";
$sql[8][1] = "dbase数据库";
$obj[1][1] = "Client API version";
$obj[2][1] = "SMTP";
$obj[3][1] = "PHP安全模式(Safe_mode)";
$obj[4][1] = "XML 支持";
$obj[5][1] = "FTP 支持";
$obj[6][1] = "Sendmial";
$obj[7][1] = "显示错误信息";
$obj[8][1] = "允许使用URL打开文件";
$qobj[1][1] = "压缩文件支持(Zlib)";
$qobj[2][1] = "Session支持";
$qobj[3][1] = "Socket支持";
$qobj[4][1] = "PREL相容语法 PCRE";
$qobj[5][1] = "图形处理 GD Library";
$qobj[6][1] = "FDF表单资料格式";
$qobj[7][1] = "ZEND支持";
$qobj[8][1] = "SNMP网络管理协议";
//脚本运行时间
if($ft=='cost'){
for($i=0;$i<4;$i++){
$nowtime = explode(" ", microtime());
$starttime = $nowtime[1] + $nowtime[0];
{
for($c=0;$c<=100000;$c++)
{
$g=1+1;
}
$nowtime = explode(" ", microtime());
$endtime = $nowtime[1] + $nowtime[0];
$totaltime = ($endtime - $starttime);
$costtime[$i] = number_format($totaltime, 7).'秒';
}}}
$time=$costtime[1]+$costtime[2]+$costtime[3]+$costtime[4]+$costtime[5];
$ttime=number_format($time/5, 7).'秒';
if($ft=='cost2')
{
for($i=0;$i<4;$i++){
$nowtime2 = explode(" ", microtime());
$starttime2 = $nowtime2[1] + $nowtime2[0];
{
for($d=0;$d<=100000;$d++)
{
$g=2;
sqrt($g);
}
$nowtime2 = explode(" ", microtime());
$endtime2 = $nowtime2[1] + $nowtime2[0];
$totaltime2 = ($endtime2 - $starttime2);
$costtime2[$i] = number_format($totaltime2, 7).'秒';
}}}
$time2=$costtime2[1]+$costtime2[2]+$costtime2[3]+$costtime2[4]+$costtime2[5];
$ttime2=number_format($time2/5, 7).'秒';
if($ft=='cost3'){
for($i=0;$i<4;$i++){
$nowtime3 = explode(" ", microtime());
$starttime3 = $nowtime3[1] + $nowtime3[0];
{
$fp=fopen("phpcheck.php","r");
for($d=0;$d<=10000;$d++)
{
fread($fp,10240);
rewind($fp);
}
$nowtime3 = explode(" ", microtime());
$endtime3 = $nowtime3[1] + $nowtime3[0];
$totaltime3 = ($endtime3 - $starttime3);
$costtime3[$i] = number_format($totaltime3, 7).'秒';
}}}
$time3=$costtime3[1]+$costtime3[2]+$costtime3[3]+$costtime3[4]+$costtime3[5];
$ttime3=number_format($time3/5, 7).'秒';
//检测zend版本
if($qobj[7][0]==1){
$qobj[7][1] = $qobj[7][1].' <font color=red>版本号('.zend_version().')</font>';
}
?>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>泽舟网PHP探针V1.3-怀才不遇http://xuyizhi.y365.com</TITLE>
<style>
<!--
BODY
{
FONT-FAMILY: 宋体;
FONT-SIZE: 9pt
}
TD
{
FONT-SIZE: 9pt;
}
A
{
COLOR: #000000;
TEXT-DECORATION: none
}
A:hover
{
COLOR: #3F8805;
TEXT-DECORATION: underline
}
.input
{
BORDER: #111111 1px solid;
FONT-SIZE: 9pt;
BACKGROUND-color: #F8FFF0
}
.backs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -