New MySQL Write Webshell (beta version 5.5.53)

Source: Internet
Author: User

0x01 Preface

The new version of MySQL sets the path to the exported file in My.ini and no longer uses SELECT into outfile to write a sentence

You can set the path everywhere in the My.ini under the MySQL folder

But when you take the shell, it's impossible to modify the configuration file

You can get Webshell by modifying the MySQL log file.

0x02 Process

First enter the SQL environment and execute the following SQL statement:

 like " %general% ";

Modify the value as above two places, where the address of the modified log is the PHP file under the Site directory, and then the log file is written, and the method of modification

Set =  on ; Set = "C:/phpstudy/phptutorial/MySQL/6. php";

And then execute

Select "<php echo 12344;? >"

At this point in the site directory under 6. A sentence is generated in PHP

Executed successfully.

New MySQL Write Webshell (beta version 5.5.53)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.