我们还有关于此的马脚,就以一次CTF的标题来说(源码如下):
- <?php
- class fiter{
- var $str;
- var $order;
- function sql_clean($str){
- if(is_array($str)){
- echo "<script> alert('not array!!@_@');parent.location.href='index.php'; </script>";exit;
- }
- $filter = "/ |\*|#|,|union|like|regexp|for|and|or|file|--|\||`|&|".urldecode('%09')."|".urldecode("%0a")."|".urldecode("%0b")."|".urldecode('%0c')."|".urldecode('%0d')."/i";
- if(preg_match($filter,$str)){
- echo "<script> alert('illegal character!!@_@');parent.location.href='index.php'; </script>";exit;
- }else if(strrpos($str,urldecode("%00"))){
- echo "<script> alert('illegal character!!@_@');parent.location.href='index.php'; </script>";exit;
- }
- return $this->str=$str;
- }
- function ord_clean($ord){
- $filter = " |bash|perl|nc|java|php|>|>>|wget|ftp|python|sh";
- if (preg_match("/".$filter."/i",$ord) == 1){
- return $this->order = "";
- }
- return $this->order = $ord;
推荐阅读
如不雅体系已经连接到互联网,那么进入“Update”标签页,选择“Installed Updates”,之后“Install All Updates”。 在vSphere 6.5中,VMware改换了 vCe>>>详细阅读
本文标题:MySQL注入攻击与防御
地址:http://www.17bianji.com/lsqh/35071.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示