可我浪费着我寒冷的年华

发现Select等注入语句自动跳转Code

CODE区域:

<?php
    $str = $_GET["keyword"];
    $str00 = strtolower($str); //strtolower 变为小写函数
    $s = stripos("s", $str00); //定位字符串第一次出现的位置
    $e = stripos("e", $str00);
    $l = stripos("l", $str00);
    $c = stripos("c", $str00);
    $t = stripos("t", $str00);
    $and = stripos("and", $str00);
    if ($s and $e and $l and $c and $t and $and){
        header("Location: http://172.0.0.1");    
    }else{
        header("Location: http://172.0.0.1");
    }
>

你想想,如果通过注入拿下了一个站,然后用这个代码挂上去。有木有很BEAUTIFUL

posted @ 2016-11-23 13:14  珍惜少年时  阅读(260)  评论(0编辑  收藏  举报
可我浪费着我寒冷的年华