当前位置:网站首页>Thinkphp3.2 information disclosure
Thinkphp3.2 information disclosure
2022-07-07 09:40:00 【qq_ forty-two million three hundred and seven thousand five hun】
Log information disclosure
thinkphp In the open debug In the case of Runtime Directory generation log , If debug The mode is not off , You can directly enter the input force to cause directory traversal
Thinkphp3.2 structure :\Application\Runtime\Logs\Home\22_07_05.log
Thinkphp3.1:\Runtime\Logs\Home\22_07_05.log
index.php Turn on debug Pattern
<?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]>
// +----------------------------------------------------------------------
// Application entry file
// testing PHP Environmental Science
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
// Turn on debugging mode Suggest to start the development phase Deployment phase comment or set to false
define('APP_DEBUG',True);
// Define the web address
define('SITE_URL','http://www.tp.com:8080/index.php');
// Define the application directory
define('APP_PATH','./Application/');
// introduce ThinkPHP Entrance file
require './ThinkPHP/ThinkPHP.php';
// Pro - ^_^ There is no need for any code later It's so simple
Cache leaks
F Method
S Method
<?php
namespace Home\Controller;
use Think\Controller;
class TestController extends Controller {
public function index(){
F("data","<?php phpinfo() ?>");// Fast cache , This method can be used in /Data/ Generate under directory data.php The content of the document is phpinfo()
S("data","123456");// Using this method will be in Temp Create one in the directory md5 A file with a filename
}
public function login(){
$this->display();
}
}
Enable debugging trace
\Application\Home\Conf\config.php
边栏推荐
- Variable parameter of variable length function
- Pick up the premise idea of programming
- scrapy爬虫mysql,Django等
- Niuke - Huawei question bank (61~70)
- In fact, it's very simple. It teaches you to easily realize the cool data visualization big screen
- 二叉树高频题型
- How to solve the problem of golang select mechanism and timeout
- Loxodonframework quick start
- 战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
- 超十万字_超详细SSM整合实践_手动实现权限管理
猜你喜欢
Elaborate on MySQL mvcc multi version control
stm32和电机开发(从单机版到网络化)
信息安全实验四:Ip包监视程序实现
Where is the answer? action config/Interceptor/class/servlet
The configuration and options of save actions are explained in detail, and you won't be confused after reading it
Netease cloud wechat applet
How to use clipboard JS library implements copy and cut function
How will fashion brands enter the meta universe?
4、 Fundamentals of machine learning
嵌套(多级)childrn路由,query参数,命名路由,replace属性,路由的props配置,路由的params参数
随机推荐
CMD startup software passes in parameters with spaces
# Arthas 简单使用说明
答案在哪里?action config/Interceptor/class/servlet
flinkcdc采集oracle在snapshot阶段一直失败,这个得怎么调整啊?
Lesson 1: finding the minimum of a matrix
JS inheritance prototype
sql 里面使用中文字符判断有问题,哪位遇到过?比如value&lt;&gt;`无`
Unity shader (learn more about vertex fragment shaders)
Schema-validation: wrong column type encountered in column XXX in table XXX
How to solve the problem of golang select mechanism and timeout
用flinksql的方式 写进 sr的表,发现需要删除的数据没有删除,参照文档https://do
Integer or int? How to select data types for entity classes in ORM
Add new item after the outbound delivery order of SAP mm sto document is created?
Elaborate on MySQL mvcc multi version control
Interface test API case, data and interface separation
浏览器中如何让视频倍速播放
SAP MM STO单据的外向交货单创建后新加ITEM?
Unity shader (to achieve a simple material effect with adjustable color attributes only)
Dynamics 365Online ApplicationUser创建方式变更
Connecting mobile phone with ADB