tp的秘密

时间:2023-03-09 15:22:17
tp的秘密
入口文件index.php  define('APP_DEBUG',True);  改为false
* memory_get_usage 获取本套系统目前内存
* tp框架中ThinkPHP\Library\Think\App.class.php中:
* 93-96行严重影响性能建议注释掉
* 211行注释
*ThinkPHP\Library\Think\Dispatcher.class.php 232行有防xss攻击
*ThinkPHP\common\functions.php 1538行 重写安全防范代码
*
* 百度搜索inurl:index.php/article
* 点击味精渣这个网站我们把 ThinkPHP\Library\Think\app.class.php 93行MD5字符串复制,
* 如:
* http://www.meihuagrp.com/index.php/4e5e5d7364f443e28fbf0d3ae744a59a/24.html
* 奇迹出来了,tp泄露了。
* // 设置系统时区
date_default_timezone_set(C('DEFAULT_TIMEZONE'));
// 注册AUTOLOAD方法
spl_autoload_register('Think\Think::autoload');
// 设定错误和异常处理
register_shutdown_function('Think\Think::fatalError');
set_error_handler('Think\Think::appError');
set_exception_handler('Think\Think::appException');
true and 1 条件成立执行1
!true or 1 条件不成立执行1
* */