发现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

原文地址:https://www.cnblogs.com/xishaonian/p/6093265.html