当前位置:网站首页>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
边栏推荐
- H5网页播放器EasyPlayer.js如何实现直播视频实时录像?
- VSCode+mingw64
- Impression notes finally support the default markdown preview mode
- How will fashion brands enter the meta universe?
- Variable parameter of variable length function
- 消费互联网的产业链其实是很短的,它仅仅承接平台上下游的对接和撮合的角色
- How to become a senior digital IC Design Engineer (5-3) theory: ULP low power design technology (Part 2)
- 战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
- Unittest simple project
- Difference between interface iterator and iteratable
猜你喜欢
随机推荐
La différence entre viewpager 2 et viewpager et la mise en œuvre de la rotation viewpager 2
第一讲:包含min函数的栈
JS inheritance prototype
CMD startup software passes in parameters with spaces
二叉树高频题型
Difference between interface iterator and iteratable
(3/8)枚举的不当用法 之 方法参数(二)
[4g/5g/6g topic foundation -147]: Interpretation of the white paper on 6G's overall vision and potential key technologies -2-6g's macro driving force for development
Oracle安装增强功能出错
Final keyword
NATAPP内网穿透
Variable parameter of variable length function
Install pyqt5 and Matplotlib module
[4G/5G/6G专题基础-147]: 6G总体愿景与潜在关键技术白皮书解读-2-6G发展的宏观驱动力
sqlplus乱码问题,求解答
Using JWT to realize login function
Dynamics 365online applicationuser creation method change
csdn涨薪技术-浅学Jmeter的几个常用的逻辑控制器使用
What is MD5
Arthas simple instructions









