当前位置:网站首页>thinkphp3.2信息泄露
thinkphp3.2信息泄露
2022-07-07 07:00:00 【qq_42307546】
日志信息泄露
thinkphp在开启debug的情况下会在Runtime目录生成日志,如果debug模式不关,可以直接输入输入路劲造成目录遍历
Thinkphp3.2结构:\Application\Runtime\Logs\Home\22_07_05.log
Thinkphp3.1:\Runtime\Logs\Home\22_07_05.log
index.php开启debug模式
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------
// 应用入口文件
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',True);
//定义网址
define('SITE_URL','http://www.tp.com:8080/index.php');
// 定义应用目录
define('APP_PATH','./Application/');
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';
// 亲^_^ 后面不需要任何代码了 就是如此简单
缓存泄露
F方法
S方法
<?php
namespace Home\Controller;
use Think\Controller;
class TestController extends Controller {
public function index(){
F("data","<?php phpinfo() ?>");//快速缓存,利用这个方法可以在/Data/目录下生成data.php文件内容就是 phpinfo()
S("data","123456");//利用这个方法会在Temp目录下生成一个md5为文件名的文件
}
public function login(){
$this->display();
}
}
开启调试追踪
\Application\Home\Conf\config.php
边栏推荐
- Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute
- MySql数据库-索引-学习笔记
- (3/8) method parameters of improper use of enumeration (2)
- flinkcdc 用sqlclient可以指定mysqlbinlog id执行任务吗
- 华为HCIP-DATACOM-Core_03day
- [bw16 application] Anxin can realize mqtt communication with bw16 module / development board at instruction
- [4g/5g/6g topic foundation-146]: Interpretation of white paper on 6G overall vision and potential key technologies-1-overall vision
- 信息安全实验一:DES加密算法的实现
- 如何成为一名高级数字 IC 设计工程师(5-2)理论篇:ULP 低功耗设计技术精讲(上)
- Unity shader (pass user data to shader)
猜你喜欢

Unity shader (learn more about vertex fragment shaders)

How to use clipboard JS library implements copy and cut function

Pycharm create a new file and add author information

js逆向教程第二发-猿人学第一题

flex弹性布局

答案在哪里?action config/Interceptor/class/servlet

正则匹配以XXX开头的,XXX结束的

章鱼未来之星获得25万美金奖励|章鱼加速器2022夏季创业营圆满落幕

iNFTnews | 时尚品牌将以什么方式进入元宇宙?

H5 web player easyplayer How does JS realize live video real-time recording?
随机推荐
NATAPP内网穿透
答案在哪里?action config/Interceptor/class/servlet
超十万字_超详细SSM整合实践_手动实现权限管理
Mysql database lock learning notes
Leetcode daily questions (2316. count unreachable pairs of nodes in an undirected graph)
Unity shader (data type in cghlsl)
shake数据库中怎么使用Mongo-shake实现MongoDB的双向同步啊?
Connecting mobile phone with ADB
Huawei HCIP - datacom - Core 03 jours
沙龙预告|GameFi 领域的瓶颈和解决方案
Using JWT to realize login function
Difference between interface iterator and iteratable
Over 100000 words_ Ultra detailed SSM integration practice_ Manually implement permission management
【BW16 应用篇】安信可BW16模组/开发板AT指令实现MQTT通讯
Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute
Impression notes finally support the default markdown preview mode
MongoDB怎么实现创建删除数据库、创建删除表、数据增删改查
Cesium load vector data
四、机器学习基础
Jenkins+ant+jmeter use