-1 || strpos($name,'%00') > -1 || strpos($name,'/') > -1) { echo '特征 '.$path.''; flush(); ob_flush(); } else { if(!preg_match($exs,$name)) continue; if(filesize($path) > 10000000) continue; $fp = fopen($path,'r'); $code = fread($fp,filesize($path)); fclose($fp); if(empty($code)) continue; foreach($matches as $matche) { $array = array(); preg_match($matche,$code,$array); if(!$array) continue; if(strpos($array[0],"x24x74x68x69x73x2dx3e")) continue; $len = strlen($array[0]); if($len > 6 && $len '.$path.''; flush(); ob_flush(); break; } } unset($code,$array); } } closedir($handle); return true; } function strdir($str) { return str_replace(array('\','//','//'),array('/','/','/'),chop($str)); } echo '
';
if(file_exists($_POST['dir']) && $_POST['exs']) {
$dir = strdir($_POST['dir'].'/');
$exs = '/('.str_replace('.','\.',$_POST['exs']).')/i';
echo antivirus($dir,$exs,$matches) ? '
扫描完毕' : '
扫描中断';
}
?>
留言评论(旧系统):
文章来源于lcx.cc:完美扫描PHP特殊一句话后门
- 左青龙
- 微信扫一扫
- 右白虎
- 微信扫一扫
评论