home.php
阅读原文时间:2023年07月14日阅读:2

home.php

×'; break; case 1: return ''; break; default: return $result; break; } } if ($\_GET\['act'\] == "phpinfo") { phpinfo(); exit(); } elseif($\_GET\['act'\] == "Function") { $arr = get\_defined\_functions(); Function php() { } echo "
";  
    Echo "这里显示系统所支持的所有函数,和自定义函数\\n";  
    print\_r($arr);  
    echo "
"; exit(); }elseif($\_GET\['act'\] == "disable\_functions") { $disFuns=get\_cfg\_var("disable\_functions"); if(empty($disFuns)) { $arr = '×'; } else { $arr = $disFuns; } Function php() { } echo "
";  
    Echo "这里显示系统被禁用的函数\\n";  
    print\_r($arr);  
    echo "
"; exit(); } //MySQL检测 if ($\_POST\['act'\] == 'MySQL检测') { $host = isset($\_POST\['host'\]) ? trim($\_POST\['host'\]) : ''; $port = isset($\_POST\['port'\]) ? (int) $\_POST\['port'\] : ''; $login = isset($\_POST\['login'\]) ? trim($\_POST\['login'\]) : ''; $password = isset($\_POST\['password'\]) ? trim($\_POST\['password'\]) : ''; $host = preg\_match('~\[^a-z0-9\\-\\.\]+~i', $host) ? '' : $host; $port = intval($port) ? intval($port) : ''; $login = preg\_match('~\[^a-z0-9\\\_\\-\]+~i', $login) ? '' : htmlspecialchars($login); $password = is\_string($password) ? htmlspecialchars($password) : ''; } elseif ($\_POST\['act'\] == '函数检测') { $funRe = "函数".$\_POST\['funName'\]."支持状况检测结果:".isfun1($\_POST\['funName'\]); } elseif ($\_POST\['act'\] == '邮件检测') { $mailRe = "邮件发送检测结果:发送"; if($\_SERVER\['SERVER\_PORT'\]==80){$mailContent = "http://".$\_SERVER\['SERVER\_NAME'\].($\_SERVER\['PHP\_SELF'\] ? $\_SERVER\['PHP\_SELF'\] : $\_SERVER\['SCRIPT\_NAME'\]);} else{$mailContent = "http://".$\_SERVER\['SERVER\_NAME'\].":".$\_SERVER\['SERVER\_PORT'\].($\_SERVER\['PHP\_SELF'\] ? $\_SERVER\['PHP\_SELF'\] : $\_SERVER\['SCRIPT\_NAME'\]);} $mailRe .= (false !== @mail($\_POST\["mailAdd"\], $mailContent, "This is a test mail!\\n\\nhttp://lnmp.org")) ? "完成":"失败"; } // 检测函数支持 function isfun($funName = '') { if (!$funName || trim($funName) == '' || preg\_match('~\[^a-z0-9\\\_\]+~i', $funName, $tmp)) return '错误'; return (false !== function\_exists($funName)) ? '' : '×'; } function isfun1($funName = '') { if (!$funName || trim($funName) == '' || preg\_match('~\[^a-z0-9\\\_\]+~i', $funName, $tmp)) return '错误'; return (false !== function\_exists($funName)) ? '√' : '×'; } ?>




phpStudy 探针 2014


服务器参数
服务器域名/IP地址 ()
服务器标识
服务器操作系统  内核版本: 服务器解译引擎
服务器语言 服务器端口
服务器主机名 绝对路径
管理员邮箱 探针路径
PHP已编译模块检测
$value) { if ($key!=0 && $key%13==0) { echo '
'; } echo "$value  "; } ?>
PHP相关参数
PHP信息(phpinfo): ×' :"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): ×'; } else { //echo $disFuns; $disFuns\_array = explode(',',$disFuns); foreach ($disFuns\_array as $key=>$value) { if ($key!=0 && $key%5==0) { echo '
'; } echo "$value  "; } } ?>
组件支持
FTP支持: XML解析支持:
Session支持: Socket支持:
Calendar支持 允许URL打开文件:
GD库支持: ×';} ?> 压缩文件支持(Zlib):
IMAP电子邮件系统函数库: 历法运算函数库:
正则表达式函数库: WDDX支持:
Iconv编码转换: mbstring:
高精度数学运算: LDAP目录协议:
MCrypt加密处理: 哈稀计算:
第三方组件
Zend版本 ×';}else{echo $zend\_version;}?> 2) { echo "ZendGuardLoader\[启用\]"; } else { echo "Zend Optimizer"; } ?> 2){echo (get\_cfg\_var("zend\_loader.enable"))?'':'×';} else{if(function\_exists('zend\_optimizer\_version')){ echo zend\_optimizer\_version();}else{ echo (get\_cfg\_var("zend\_optimizer.optimization\_level")||get\_cfg\_var("zend\_extension\_manager.optimizer\_ts")||get\_cfg\_var("zend.ze1\_compatibility\_mode")||get\_cfg\_var("zend\_extension\_ts"))?'':'×';}}?>
eAccelerator ×";} ?> ioncube ×";}?>
XCache ×";} ?> APC ×";} ?>
数据库支持
MySQL 数据库: ODBC 数据库:
Oracle 数据库: SQL Server 数据库:
dBASE 数据库: mSQL 数据库:
SQLite 数据库: √ ';echo "SQLite3 Ver ";echo $sqliteVer\[versionString\];}else {echo isfun("sqlite\_close");if(isfun("sqlite\_close") == '') {echo "  版本: ".@sqlite\_libversion();}}?> Hyperwave 数据库:
Postgre SQL 数据库: Informix 数据库:
DBA 数据库: DBM 数据库:
FilePro 数据库: SyBase 数据库:
" method="post">
MySQL数据库连接检测
地址: 端口: 用户名: 密码:
alert('连接到MySql数据库正常')"; } else { echo ""; } } else { echo ""; } } ?> alert('$funRe')"; } ?>
函数检测
请输入您要检测的函数:



'100 Continue', 101 => '101 Switching Protocols', // Successful 200 => '200 OK', 201 => '201 Created', 202 => '202 Accepted', 203 => '203 Non-Authoritative Information', 204 => '204 No Content', 205 => '205 Reset Content', 206 => '206 Partial Content', // Redirection 300 => '300 Multiple Choices', 301 => '301 Moved Permanently', 302 => '302 Found', 303 => '303 See Other', 304 => '304 Not Modified', 305 => '305 Use Proxy', 306 => '306 (Unused)', 307 => '307 Temporary Redirect', // Client Error 400 => '400 Bad Request', 401 => '401 Unauthorized', 402 => '402 Payment Required', 403 => '403 Forbidden', 404 => '404 Not Found', 405 => '405 Method Not Allowed', 406 => '406 Not Acceptable', 407 => '407 Proxy Authentication Required', 408 => '408 Request Timeout', 409 => '409 Conflict', 410 => '410 Gone', 411 => '411 Length Required', 412 => '412 Precondition Failed', 413 => '413 Request Entity Too Large', 414 => '414 Request-URI Too Long', 415 => '415 Unsupported Media Type', 416 => '416 Requested Range Not Satisfiable', 417 => '417 Expectation Failed', // Server Error 500 => '500 Internal Server Error', 501 => '501 Not Implemented', 502 => '502 Bad Gateway', 503 => '503 Service Unavailable', 504 => '504 Gateway Timeout', 505 => '505 HTTP Version Not Supported' ); if(! @$httpResp = (int)rawurldecode($\_GET\['resp'\])) $httpResp = 200; if($httpResp >= 100 && $httpResp < 600) { $httpHeader = 'HTTP/1.1 ' . $httpResponseMessage\[$httpResp\]; header($httpHeader); } return $httpHeader; } function doSleep() { if(! @$sleep = (int)rawurldecode($\_GET\['sleep'\])) $sleep = 0; if($sleep > 0) { $slept\['start time'\] = date('h:i:s'); sleep($sleep); $slept\['end time'\] = date('h:i:s'); } if(!empty($slept)) return $slept; } function doPad() { if(! @$pad = (int)rawurldecode($\_GET\['pad'\])) $pad = 0; if($pad > 8) { $realPad = $pad - 4; $padding = str\_pad(""; $padded\['padded'\] = $pad . " bytes" . $padding; } if(!empty($padded)) return $padded; } function setHttpLocation() { if(! @$locationHeader = rawurldecode($\_GET\['loc'\])) $locationHeader = ""; if(! $locationHeader == "") { header("Location: " . $locationHeader); } } function getHttpParams() { $param = array(); foreach ($\_SERVER as $name => $value) { if (substr($name, 0, 5) == 'HTTP\_') { $param\[str\_replace(' ', '-', ucwords(strtolower(str\_replace('\_', ' ', substr($name, 5)))))\] = $value; } } return $param; } function getRequestParams() { $param = array(); foreach ($\_SERVER as $name => $value) { if (substr($name, 0, 8) == 'REQUEST\_') { $param\[str\_replace(' ', '-', ucwords(strtolower(str\_replace('\_', ' ', substr($name, 8)))))\] = $value; } } return $param; } function getDocumentParams() { $param = array(); foreach ($\_SERVER as $name => $value) { if (substr($name, 0, 9) == 'DOCUMENT\_') { $param\[str\_replace(' ', '-', ucwords(strtolower(str\_replace('\_', ' ', substr($name, 9)))))\] = $value; } } return $param; } function getServerParams() { $param = array(); foreach ($\_SERVER as $name => $value) { if (substr($name, 0, 7) == 'SERVER\_') { $param\[str\_replace(' ', '-', ucwords(strtolower(str\_replace('\_', ' ', substr($name, 7)))))\] = $value; } } return $param; } function getRemoteParams() { $param = array(); foreach ($\_SERVER as $name => $value) { if (substr($name, 0, 7) == 'REMOTE\_') { $param\[str\_replace(' ', '-', ucwords(strtolower(str\_replace('\_', ' ', substr($name, 7)))))\] = $value; } } return $param; } function buildTable($params) { $table = ""; if (!empty($params)) { $table = "\\n\\t\\n"; foreach ($params as $Header => $Value) { $table .= "\\t\\t\\n"; $table .= "\\t\\t\\t"; $table .= "\\n"; $table .= "\\t\\t\\n"; } $table .= "\\t\\n
$Header$Value
\\n"; } return $table; } function buildFilesTable($params) { $table = ""; if (!empty($params)) { $table = "\\n\\t\\n"; foreach ($params as $File => $Value) { $table .= "\\t\\t\\n"; $table .= "\\t\\t\\t"; $table .= ""; $table .= ""; $table .= "\\n"; $table .= "\\t\\t\\n"; } $table .= "\\t\\n
$File$Value\[name\]$Value\[type\]$Value\[size\] bytes
\\n"; } return $table; } function getColor() { switch (substr($\_SERVER\['SERVER\_ADDR'\], -1)) { case 0: $pageColor = "Black"; break; case 1: $pageColor = "Blue"; break; case 2: $pageColor = "Red"; break; case 3: $pageColor = "Green"; break; case 4: $pageColor = "Maroon"; break; case 5: $pageColor = "Navy"; break; case 6: $pageColor = "Olive"; break; case 7: $pageColor = "Purple"; break; case 8: $pageColor = "Gray"; break; case 9: $pageColor = "Teal"; break; default: $pageColor = "Black"; } return $pageColor; } function setHttpCookie() { if (!empty($\_POST\["NewCookie"\])) setcookie("CookieTest" . time(), $\_POST\["NewCookie"\], time()+300, "/"); } $slept = doSleep(); $pad = doPad(); $httpHeader = setHttpResponse(); setHttpLocation(); setHttpCookie(); $serverName = php\_uname("n"); $pageColor = getColor(); $pageTitle = strtolower("$serverName $pageColor"); ?> <?php echo $pageTitle; ?>

slept\\n"; echo buildTable($slept); } ?> pad\\n"; echo buildTable($pad); } ?>

request


http (headers)


cookies\\n"; echo buildTable($\_COOKIE); } ?> post\\n"; echo buildTable($\_POST); echo buildFilesTable($\_FILES); } ?>

document


remote


server


links

myself
root
Google

create cookie

add a cookie
(this cookie will expire 5 minutes after creation)

create post

post text



post a file

options

?sleep=Xsleep X seconds during response
?pad=Xpad response with X bytes (must be > 8)
?resp=Xset response code to X
?loc=Xset location header to X


手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章