less50-54 stacked injection after order by

Source: Internet
Author: User

Less-50

Execute SQL statement We use the Mysqli_multi_query () function here, and we used the Mysqli_query (), the difference is that mysqli_multi_query () can execute multiple SQL statements, and Mysqli_ Query () executes only one SQL statement, so we can execute multiple SQL statements here to inject, which is the statcked injection we mentioned earlier.

Here we use the method is still feasible, we do not repeat here, look at the stacked injection.

We construct payload directly:

Http://127.0.0.1/sqli-labs/Less-50/index.php?sort=1;create%20table%20less50%20like%20users

To create a LESS50 table

We've been through this before. the process of stacked injection is not explained in detail here.

Less-51

The SQL statement for this pass is $sql = "SELECT * from the Users ORDER by ' $id '";

We're going to do stacked injection here, to comment out ' , the payload is given here:

http://127.0.0.1/sqli-labs/Less-51/index.php?sort=1%27;create%20table%20less51%20like%20users--+

Create a table Less51

Less-52

And Less50 is the same, but here the MySQL error will not be displayed in the foreground, but for stacked injection is the same way to use

Http://127.0.0.1/sqli-labs/Less-52/index.php?sort=1;create%20table%20less52%20like%20users

Less-53

And Less51 is the same, but here the MySQL error will not be displayed in the foreground, but for stacked injection is the same way to use

http://127.0.0.1/sqli-labs/Less-53/index.php?sort=1%27;create%20table%20less53%20like%20users--+

less50-54 stacked injection after order by

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.