下面给个php木马查找工具,直接放到你站点根目录
<div class="codetitle"><a style="CURSOR: pointer" data="26216" class="copybut" id="copybut26216" onclick="doCopy('code26216')"> 代码如下:<div class="codebody" id="code26216"><?php
/**PHP Web木马扫描器****/
/ [+] 作者: alibaba /
/ [+] MSN: weeming21@hotmail.com /
/ [+] 首发: t00ls.net,转载请注明t00ls /
/ [+] 版本: v1.0 /
/ [+] 功能: web版php木马扫描工具/
/ [+] 注意: 扫描出来的文件并不一定就是后门,/
/ 请自行判断、审核、对比原文件。/
/ 如果你不确定扫出来的文件是否为后门,/
/ 欢迎你把该文件发给我进行分析。/
/***/
ob_start();
set_time_limit(0);
$username = "t00ls"; //设置用户名
$password = "t00ls"; //设置密码
$md5 = md5(md5($username).md5($password));
$version = "PHP Web木马扫描器v1.0";
PHP Web 木马扫描器
$realpath = realpath('./');
$selfpath = $_SERVER['PHP_SELF'];
$selfpath = substr($selfpath,strrpos($selfpath,'/'));
define('REALPATH',str_replace('//','/',str_replace('',substr($realpath,strlen($realpath) - strlen($selfpath)))));
define('MYFILE',basename(FILE));
define('MYPATH',dirname(FILE)).'/');
define('MYFULLPATH',(FILE)));
define('HOST',"http://".$_SERVER['HTTP_HOST']);
?>
密码:
';
}
elseif(isset($_POST['username']) && isset($_POST['password']) && (md5(md5($_POST['username']).md5($_POST['password']))==$md5))
{
setcookie("t00ls",$md5,time()+60*60*24*365,"/");
echo "登陆成功!";
header( 'refresh: 1; url='.MYFILE.'?action=scan' );
exit();
}
else
{
setcookie("t00ls","/");
$setting = getSetting();
$action = isset($_GET['action'])?$_GET['action']:"";
if($action=="logout")
{
setcookie ("t00ls","",time() - 3600);
Header("Location: ".MYFILE);
exit();
}
if($action=="download" && isset($_GET['file']) && trim($_GET['file'])!="")
{
$file = $_GET['file'];
ob_clean();
if (@file_exists($file)) {
header("Content-type: application/octet-stream");
header("Content-Disposition: filename="".basename($file).""");
echo file_get_contents($file);
}
exit();
}
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|