当前位置:网站首页>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
边栏推荐
- 华为HCIP-DATACOM-Core_03day
- 章鱼未来之星获得25万美金奖励|章鱼加速器2022夏季创业营圆满落幕
- Information Security Experiment 2: using x-scanner scanning tool
- Information Security Experiment 4: implementation of IP packet monitoring program
- In fact, it's very simple. It teaches you to easily realize the cool data visualization big screen
- flex弹性布局
- Jenkins+ant+jmeter use
- 战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
- Integer or int? How to select data types for entity classes in ORM
- 消费互联网的产业链其实是很短的,它仅仅承接平台上下游的对接和撮合的角色
猜你喜欢
[4G/5G/6G专题基础-146]: 6G总体愿景与潜在关键技术白皮书解读-1-总体愿景
Netease Cloud Wechat applet
What is MD5
4、 Fundamentals of machine learning
Jenkins+ant+jmeter use
战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
Diffusion模型详解
NATAPP内网穿透
Nested (multi-level) childrn routes, query parameters, named routes, replace attribute, props configuration of routes, params parameters of routes
[bw16 application] Anxin can realize mqtt communication with bw16 module / development board at instruction
随机推荐
sqlplus乱码问题,求解答
第一讲:包含min函数的栈
沙龙预告|GameFi 领域的瓶颈和解决方案
如何使用clipboard.js库实现复制剪切功能
[cloud native] Devops (I): introduction to Devops and use of code tool
Jenkins automated email
Jmeters use
Jenkins+ant+jmeter use
Impression notes finally support the default markdown preview mode
JS reverse tutorial second issue - Ape anthropology first question
【BW16 应用篇】安信可BW16模组/开发板AT指令实现MQTT通讯
第一讲:寻找矩阵的极小值
ViewPager2和VIewPager的区别以及ViewPager2实现轮播图
Create an int type array with a length of 6. The values of the array elements are required to be between 1-30 and are assigned randomly. At the same time, the values of the required elements are diffe
sql 里面使用中文字符判断有问题,哪位遇到过?比如value&lt;&gt;`无`
如何成为一名高级数字 IC 设计工程师(5-2)理论篇:ULP 低功耗设计技术精讲(上)
印象笔记终于支持默认markdown预览模式
flex弹性布局
VSCode+mingw64+cmake
Information Security Experiment 2: using x-scanner scanning tool